Mercurial > hg > graal-jvmci-8
comparison src/cpu/zero/vm/cppInterpreter_zero.cpp @ 2376:c7f3d0b4570f
7017732: move static fields into Class to prepare for perm gen removal
Reviewed-by: kvn, coleenp, twisti, stefank
author | never |
---|---|
date | Fri, 18 Mar 2011 16:00:34 -0700 |
parents | f95d63e2154a |
children | 4b95bbb36464 e1162778c1c8 |
comparison
equal
deleted
inserted
replaced
2375:d673ef06fe96 | 2376: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 |