src/hotspot/share/ci/ciEnv.hpp
changeset 47887 e20d8f168bb6
parent 47216 71c04702a3d5
child 49480 d7df2dd501ce
equal deleted inserted replaced
47882:a93ce8f7bddb 47887:e20d8f168bb6
     1 /*
     1 /*
     2  * Copyright (c) 1999, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1999, 2017, 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.
   185     } else {
   185     } else {
   186       return _factory->get_metadata(o);
   186       return _factory->get_metadata(o);
   187     }
   187     }
   188   }
   188   }
   189 
   189 
   190   void ensure_metadata_alive(ciMetadata* m) {
       
   191     _factory->ensure_metadata_alive(m);
       
   192   }
       
   193 
       
   194   ciInstance* get_instance(oop o) {
   190   ciInstance* get_instance(oop o) {
   195     if (o == NULL) return NULL;
   191     if (o == NULL) return NULL;
   196     return get_object(o)->as_instance();
   192     return get_object(o)->as_instance();
   197   }
   193   }
   198   ciObjArrayKlass* get_obj_array_klass(Klass* o) {
   194   ciObjArrayKlass* get_obj_array_klass(Klass* o) {