Mercurial > hg > graal-jvmci-8
comparison src/share/vm/c1x/c1x_CodeInstaller.cpp @ 1942:00bc9eaf0e24
Support for -XX:+UseFastLocking flag. Fixed monitor enter XIR template for correct debug info at the runtime call.
author | Thomas Wuerthinger <wuerthinger@ssw.jku.at> |
---|---|
date | Wed, 29 Dec 2010 20:06:41 +0100 |
parents | 79d04223b8a5 |
children | 9c96c873c42b |
comparison
equal
deleted
inserted
replaced
1941:79d04223b8a5 | 1942:00bc9eaf0e24 |
---|---|
557 case 'a': { | 557 case 'a': { |
558 address operand = Assembler::locate_operand(instruction, Assembler::imm_operand); | 558 address operand = Assembler::locate_operand(instruction, Assembler::imm_operand); |
559 Handle obj = CiConstant::object(constant); | 559 Handle obj = CiConstant::object(constant); |
560 | 560 |
561 if (obj->is_a(HotSpotTypeResolved::klass())) { | 561 if (obj->is_a(HotSpotTypeResolved::klass())) { |
562 assert(!obj.is_null(), ""); | |
562 *((jobject*) operand) = JNIHandles::make_local(java_lang_Class::as_klassOop(HotSpotTypeResolved::javaMirror(obj))); | 563 *((jobject*) operand) = JNIHandles::make_local(java_lang_Class::as_klassOop(HotSpotTypeResolved::javaMirror(obj))); |
563 _instructions->relocate(instruction, oop_Relocation::spec_for_immediate(), Assembler::imm_operand); | 564 _instructions->relocate(instruction, oop_Relocation::spec_for_immediate(), Assembler::imm_operand); |
564 TRACE_C1X_3("relocating (HotSpotType) at %016x/%016x", instruction, operand); | 565 TRACE_C1X_3("relocating (HotSpotType) at %016x/%016x", instruction, operand); |
565 } else { | 566 } else { |
566 jobject value; | 567 jobject value; |