comparison src/share/vm/graal/graalCompiler.cpp @ 3565:b3f0f8a01ca2

remove some ci-dependencies
author Lukas Stadler <lukas.stadler@jku.at>
date Wed, 31 Aug 2011 09:58:35 +0200
parents 22d11b3bc561
children b0d192f86f34
comparison
equal deleted inserted replaced
3561:bea018622324 3565:b3f0f8a01ca2
125 // Print compilation timers and statistics 125 // Print compilation timers and statistics
126 void GraalCompiler::print_timers() { 126 void GraalCompiler::print_timers() {
127 TRACE_graal_1("GraalCompiler::print_timers"); 127 TRACE_graal_1("GraalCompiler::print_timers");
128 } 128 }
129 129
130 oop GraalCompiler::get_RiType(ciType *type, KlassHandle accessor, TRAPS) { 130 oop GraalCompiler::get_RiType(KlassHandle klass, KlassHandle accessor, TRAPS) {
131 if (type->is_loaded()) { 131 assert(instanceKlass::cast(klass())->is_initialized(), "unexpected unresolved klass");
132 if (type->is_primitive_type()) { 132 Handle name = VmIds::toString<Handle>(klass->name(), THREAD);
133 return VMExits::createRiTypePrimitive((int) type->basic_type(), THREAD); 133 return createHotSpotTypeResolved(klass, name, CHECK_NULL);
134 }
135
136 oop GraalCompiler::get_RiType(ciType *type, KlassHandle accessor, TRAPS) {
137 if (type->is_loaded()) {
138 if (type->is_primitive_type()) {
139 return VMExits::createRiTypePrimitive((int) type->basic_type(), THREAD);
140 }
141 KlassHandle klass = (klassOop) type->get_oop();
142 Handle name = VmIds::toString<Handle>(klass->name(), THREAD);
143 return createHotSpotTypeResolved(klass, name, CHECK_NULL);
144 } else {
145 Symbol* name = ((ciKlass *) type)->name()->get_symbol();
146 return VMExits::createRiTypeUnresolved(VmIds::toString<Handle>(name, THREAD), THREAD);
134 } 147 }
135 KlassHandle klass = (klassOop) type->get_oop();
136 Handle name = VmIds::toString<Handle>(klass->name(), THREAD);
137 return createHotSpotTypeResolved(klass, name, CHECK_NULL);
138 } else {
139 Symbol* name = ((ciKlass *) type)->name()->get_symbol();
140 return VMExits::createRiTypeUnresolved(VmIds::toString<Handle>(name, THREAD), THREAD);
141 }
142 } 148 }
143 149
144 oop GraalCompiler::get_RiField(ciField *field, ciInstanceKlass* accessor_klass, KlassHandle accessor, Bytecodes::Code byteCode, TRAPS) { 150 oop GraalCompiler::get_RiField(ciField *field, ciInstanceKlass* accessor_klass, KlassHandle accessor, Bytecodes::Code byteCode, TRAPS) {
145 int offset; 151 int offset;
146 if (byteCode != Bytecodes::_illegal) { 152 if (byteCode != Bytecodes::_illegal) {