comparison src/share/vm/graal/graalCodeInstaller.cpp @ 19595:b6beb2161e7a

Move stack monitor value into api.code
author Tom Rodriguez <tom.rodriguez@oracle.com>
date Wed, 25 Feb 2015 19:02:00 -0800
parents dd8989d5547f
children d0b4f9771622
comparison
equal deleted inserted replaced
19594:81a4eeea0264 19595:b6beb2161e7a
363 ShouldNotReachHere(); 363 ShouldNotReachHere();
364 return NULL; 364 return NULL;
365 } 365 }
366 366
367 MonitorValue* CodeInstaller::get_monitor_value(oop value, int total_frame_size, GrowableArray<ScopeValue*>* objects, OopRecorder* oop_recorder) { 367 MonitorValue* CodeInstaller::get_monitor_value(oop value, int total_frame_size, GrowableArray<ScopeValue*>* objects, OopRecorder* oop_recorder) {
368 guarantee(value->is_a(HotSpotMonitorValue::klass()), "Monitors must be of type MonitorValue"); 368 guarantee(value->is_a(StackLockValue::klass()), "Monitors must be of type MonitorValue");
369 369
370 ScopeValue* second = NULL; 370 ScopeValue* second = NULL;
371 ScopeValue* owner_value = get_scope_value(HotSpotMonitorValue::owner(value), total_frame_size, objects, second, oop_recorder); 371 ScopeValue* owner_value = get_scope_value(StackLockValue::owner(value), total_frame_size, objects, second, oop_recorder);
372 assert(second == NULL, "monitor cannot occupy two stack slots"); 372 assert(second == NULL, "monitor cannot occupy two stack slots");
373 373
374 ScopeValue* lock_data_value = get_scope_value(HotSpotMonitorValue::slot(value), total_frame_size, objects, second, oop_recorder); 374 ScopeValue* lock_data_value = get_scope_value(StackLockValue::slot(value), total_frame_size, objects, second, oop_recorder);
375 assert(second == lock_data_value, "monitor is LONG value that occupies two stack slots"); 375 assert(second == lock_data_value, "monitor is LONG value that occupies two stack slots");
376 assert(lock_data_value->is_location(), "invalid monitor location"); 376 assert(lock_data_value->is_location(), "invalid monitor location");
377 Location lock_data_loc = ((LocationValue*)lock_data_value)->location(); 377 Location lock_data_loc = ((LocationValue*)lock_data_value)->location();
378 378
379 bool eliminated = false; 379 bool eliminated = false;
380 if (HotSpotMonitorValue::eliminated(value)) { 380 if (StackLockValue::eliminated(value)) {
381 eliminated = true; 381 eliminated = true;
382 } 382 }
383 383
384 return new MonitorValue(owner_value, lock_data_loc, eliminated); 384 return new MonitorValue(owner_value, lock_data_loc, eliminated);
385 } 385 }