comparison src/share/vm/graal/graalCodeInstaller.cpp @ 6539:2463eb24b644

Cleanup of Graal API: Rename methods so that it follows the getXxx naming convention and so that they are similar to the names of the java.lang.reflect classes. Remove unused methods.
author Christian Wimmer <christian.wimmer@oracle.com>
date Tue, 09 Oct 2012 15:23:38 -0700
parents 2a0c9f20baa1
children d5f7e737827f
comparison
equal deleted inserted replaced
6538:d1ba5ba4f484 6539:2463eb24b644
102 } 102 }
103 103
104 // TODO: finish this - graal doesn't provide any scope values at the moment 104 // TODO: finish this - graal doesn't provide any scope values at the moment
105 static ScopeValue* get_hotspot_value(oop value, int total_frame_size, GrowableArray<ScopeValue*>* objects, ScopeValue* &second) { 105 static ScopeValue* get_hotspot_value(oop value, int total_frame_size, GrowableArray<ScopeValue*>* objects, ScopeValue* &second) {
106 second = NULL; 106 second = NULL;
107 if (value == Value::IllegalValue()) { 107 if (value == Value::ILLEGAL()) {
108 return new LocationValue(Location::new_stk_loc(Location::invalid, 0)); 108 return new LocationValue(Location::new_stk_loc(Location::invalid, 0));
109 } 109 }
110 110
111 BasicType type = GraalCompiler::kindToBasicType(Kind::typeChar(Value::kind(value))); 111 BasicType type = GraalCompiler::kindToBasicType(Kind::typeChar(Value::kind(value)));
112 Location::Type locationType = Location::normal; 112 Location::Type locationType = Location::normal;
497 } else { 497 } else {
498 monitors->append(get_monitor_value(value, _total_frame_size, objects)); 498 monitors->append(get_monitor_value(value, _total_frame_size, objects));
499 } 499 }
500 if (second != NULL) { 500 if (second != NULL) {
501 i++; 501 i++;
502 assert(i < values->length(), "double-slot value not followed by Value.IllegalValue"); 502 assert(i < values->length(), "double-slot value not followed by Value.ILLEGAL");
503 assert(((oop*) values->base(T_OBJECT))[i] == Value::IllegalValue(), "double-slot value not followed by Value.IllegalValue"); 503 assert(((oop*) values->base(T_OBJECT))[i] == Value::ILLEGAL(), "double-slot value not followed by Value.ILLEGAL");
504 } 504 }
505 } 505 }
506 506
507 _debug_recorder->dump_object_pool(objects); 507 _debug_recorder->dump_object_pool(objects);
508 508