src/share/vm/ci/ciObjectFactory.cpp

changeset 1572
97125851f396
parent 1515
7c57aead6d3e
child 1573
dd57230ba8fe
equal deleted inserted replaced
1571:4b84186a8248 1572:97125851f396
151 get(SystemDictionary::class_klass()) 151 get(SystemDictionary::class_klass())
152 ->as_instance_klass(); 152 ->as_instance_klass();
153 ciEnv::_ClassCastException = 153 ciEnv::_ClassCastException =
154 get(SystemDictionary::ClassCastException_klass()) 154 get(SystemDictionary::ClassCastException_klass())
155 ->as_instance_klass(); 155 ->as_instance_klass();
156 if (EnableInvokeDynamic) {
157 ciEnv::_InvokeDynamic =
158 get(SystemDictionary::InvokeDynamic_klass())->as_instance_klass();
159 }
156 ciEnv::_Object = 160 ciEnv::_Object =
157 get(SystemDictionary::object_klass()) 161 get(SystemDictionary::object_klass())
158 ->as_instance_klass(); 162 ->as_instance_klass();
159 ciEnv::_Throwable = 163 ciEnv::_Throwable =
160 get(SystemDictionary::throwable_klass()) 164 get(SystemDictionary::throwable_klass())
338 objArrayHandle h_oa(THREAD, (objArrayOop)o); 342 objArrayHandle h_oa(THREAD, (objArrayOop)o);
339 return new (arena()) ciObjArray(h_oa); 343 return new (arena()) ciObjArray(h_oa);
340 } else if (o->is_typeArray()) { 344 } else if (o->is_typeArray()) {
341 typeArrayHandle h_ta(THREAD, (typeArrayOop)o); 345 typeArrayHandle h_ta(THREAD, (typeArrayOop)o);
342 return new (arena()) ciTypeArray(h_ta); 346 return new (arena()) ciTypeArray(h_ta);
347 } else if (o->is_constantPoolCache()) {
348 constantPoolCacheHandle h_cpc(THREAD, (constantPoolCacheOop) o);
349 return new (arena()) ciCPCache(h_cpc);
343 } 350 }
344 351
345 // The oop is of some type not supported by the compiler interface. 352 // The oop is of some type not supported by the compiler interface.
346 ShouldNotReachHere(); 353 ShouldNotReachHere();
347 return NULL; 354 return NULL;

mercurial