hotspot/src/share/vm/opto/parse3.cpp
changeset 8676 9098d4e927e1
parent 7397 5b173b4ca846
child 8725 8c1e3dd5fe1b
equal deleted inserted replaced
8675:e9fef2a9bef7 8676:9098d4e927e1
     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