equal
deleted
inserted
replaced
396 |
396 |
397 void LIR_Assembler::jobject2reg(jobject o, Register reg) { |
397 void LIR_Assembler::jobject2reg(jobject o, Register reg) { |
398 if (o == NULL) { |
398 if (o == NULL) { |
399 __ set(NULL_WORD, reg); |
399 __ set(NULL_WORD, reg); |
400 } else { |
400 } else { |
|
401 #ifdef ASSERT |
|
402 { |
|
403 ThreadInVMfromNative tiv(JavaThread::current()); |
|
404 assert(Universe::heap()->is_in_reserved(JNIHandles::resolve(o)), "should be real oop"); |
|
405 } |
|
406 #endif |
401 int oop_index = __ oop_recorder()->find_index(o); |
407 int oop_index = __ oop_recorder()->find_index(o); |
402 assert(Universe::heap()->is_in_reserved(JNIHandles::resolve(o)), "should be real oop"); |
|
403 RelocationHolder rspec = oop_Relocation::spec(oop_index); |
408 RelocationHolder rspec = oop_Relocation::spec(oop_index); |
404 __ set(NULL_WORD, reg, rspec); // Will be set when the nmethod is created |
409 __ set(NULL_WORD, reg, rspec); // Will be set when the nmethod is created |
405 } |
410 } |
406 } |
411 } |
407 |
412 |