src/cpu/zero/vm/cppInterpreter_zero.cpp

changeset 2658
c7f3d0b4570f
parent 2314
f95d63e2154a
child 2762
4b95bbb36464
child 2781
e1162778c1c8
equal deleted inserted replaced
2657:d673ef06fe96 2658:c7f3d0b4570f
1 /* 1 /*
2 * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2003, 2011, Oracle and/or its affiliates. All rights reserved.
3 * Copyright 2007, 2008, 2009, 2010 Red Hat, Inc. 3 * Copyright 2007, 2008, 2009, 2010 Red Hat, Inc.
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * 5 *
6 * This code is free software; you can redistribute it and/or modify it 6 * This code is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License version 2 only, as 7 * under the terms of the GNU General Public License version 2 only, as
279 void *env = thread->jni_environment(); 279 void *env = thread->jni_environment();
280 *(dst++) = &env; 280 *(dst++) = &env;
281 281
282 if (method->is_static()) { 282 if (method->is_static()) {
283 istate->set_oop_temp( 283 istate->set_oop_temp(
284 method->constants()->pool_holder()->klass_part()->java_mirror()); 284 method->constants()->pool_holder()->java_mirror());
285 mirror = istate->oop_temp_addr(); 285 mirror = istate->oop_temp_addr();
286 *(dst++) = &mirror; 286 *(dst++) = &mirror;
287 } 287 }
288 288
289 intptr_t *src = locals; 289 intptr_t *src = locals;
665 if (method->is_synchronized()) { 665 if (method->is_synchronized()) {
666 BasicObjectLock *monitor = 666 BasicObjectLock *monitor =
667 (BasicObjectLock *) stack->alloc(monitor_words * wordSize); 667 (BasicObjectLock *) stack->alloc(monitor_words * wordSize);
668 oop object; 668 oop object;
669 if (method->is_static()) 669 if (method->is_static())
670 object = method->constants()->pool_holder()->klass_part()->java_mirror(); 670 object = method->constants()->pool_holder()->java_mirror();
671 else 671 else
672 object = (oop) locals[0]; 672 object = (oop) locals[0];
673 monitor->set_obj(object); 673 monitor->set_obj(object);
674 } 674 }
675 675

mercurial