hotspot/src/cpu/zero/vm/cppInterpreter_zero.cpp
changeset 8725 8c1e3dd5fe1b
parent 7397 5b173b4ca846
child 9176 42d9d1010f38
child 9136 94ebba447157
equal deleted inserted replaced
8724:693c6b883b54 8725:8c1e3dd5fe1b
     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