@@ -2328,11 +2328,11 @@ address TemplateInterpreterGenerator::generate_trace_code(TosState state) {
23282328 // Support short-cut for TraceBytecodesAt.
23292329 // Don't call into the VM if we don't want to trace to speed up things.
23302330 Label Lskip_vm_call;
2331- if (TraceBytecodesAt > 0 && TraceBytecodesAt < max_intx ) {
2331+ if (TraceBytecodesAt > 0 ) {
23322332 int offs1 = __ load_const_optimized (R11_scratch1, (address) &TraceBytecodesAt, R0, true );
23332333 int offs2 = __ load_const_optimized (R12_scratch2, (address) &BytecodeCounter::_counter_value, R0, true );
23342334 __ ld (R11_scratch1, offs1, R11_scratch1);
2335- __ lwa (R12_scratch2, offs2, R12_scratch2);
2335+ __ ld (R12_scratch2, offs2, R12_scratch2);
23362336 __ cmpd (CR0, R12_scratch2, R11_scratch1);
23372337 __ blt (CR0, Lskip_vm_call);
23382338 }
@@ -2346,7 +2346,7 @@ address TemplateInterpreterGenerator::generate_trace_code(TosState state) {
23462346 __ mtlr (R31);
23472347 __ pop (state);
23482348
2349- if (TraceBytecodesAt > 0 && TraceBytecodesAt < max_intx ) {
2349+ if (TraceBytecodesAt > 0 ) {
23502350 __ bind (Lskip_vm_call);
23512351 }
23522352 __ blr ();
@@ -2356,9 +2356,9 @@ address TemplateInterpreterGenerator::generate_trace_code(TosState state) {
23562356
23572357void TemplateInterpreterGenerator::count_bytecode () {
23582358 int offs = __ load_const_optimized (R11_scratch1, (address) &BytecodeCounter::_counter_value, R12_scratch2, true );
2359- __ lwz (R12_scratch2, offs, R11_scratch1);
2359+ __ ld (R12_scratch2, offs, R11_scratch1);
23602360 __ addi (R12_scratch2, R12_scratch2, 1 );
2361- __ stw (R12_scratch2, offs, R11_scratch1);
2361+ __ std (R12_scratch2, offs, R11_scratch1);
23622362}
23632363
23642364void TemplateInterpreterGenerator::histogram_bytecode (Template* t) {
@@ -2407,7 +2407,7 @@ void TemplateInterpreterGenerator::stop_interpreter_at() {
24072407 int offs1 = __ load_const_optimized (R11_scratch1, (address) &StopInterpreterAt, R0, true );
24082408 int offs2 = __ load_const_optimized (R12_scratch2, (address) &BytecodeCounter::_counter_value, R0, true );
24092409 __ ld (R11_scratch1, offs1, R11_scratch1);
2410- __ lwa (R12_scratch2, offs2, R12_scratch2);
2410+ __ ld (R12_scratch2, offs2, R12_scratch2);
24112411 __ cmpd (CR0, R12_scratch2, R11_scratch1);
24122412 __ bne (CR0, L);
24132413 __ illtrap ();
0 commit comments