Mercurial > hg > truffle
comparison src/share/vm/opto/parse3.cpp @ 2357:8033953d67ff
7012648: move JSR 292 to package java.lang.invoke and adjust names
Summary: package and class renaming only; delete unused methods and classes
Reviewed-by: twisti
author | jrose |
---|---|
date | Fri, 11 Mar 2011 22:34:57 -0800 |
parents | f95d63e2154a |
children | c7f3d0b4570f |
comparison
equal
deleted
inserted
replaced
2356:72dee110246f | 2357:8033953d67ff |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 1998, 2010, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 1998, 2011, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | 4 * |
5 * This code is free software; you can redistribute it and/or modify it | 5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as | 6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
141 // final static field | 141 // final static field |
142 if (push_constant(field->constant_value())) | 142 if (push_constant(field->constant_value())) |
143 return; | 143 return; |
144 } | 144 } |
145 else { | 145 else { |
146 // final non-static field of a trusted class ({java,sun}.dyn | 146 // final non-static field of a trusted class (classes in |
147 // classes). | 147 // java.lang.invoke and sun.invoke packages and subpackages). |
148 if (obj->is_Con()) { | 148 if (obj->is_Con()) { |
149 const TypeOopPtr* oop_ptr = obj->bottom_type()->isa_oopptr(); | 149 const TypeOopPtr* oop_ptr = obj->bottom_type()->isa_oopptr(); |
150 ciObject* constant_oop = oop_ptr->const_oop(); | 150 ciObject* constant_oop = oop_ptr->const_oop(); |
151 ciConstant constant = field->constant_value_of(constant_oop); | 151 ciConstant constant = field->constant_value_of(constant_oop); |
152 | 152 |