@@ -2328,11 +2328,11 @@ address TemplateInterpreterGenerator::generate_trace_code(TosState state) {
2328
2328
// Support short-cut for TraceBytecodesAt.
2329
2329
// Don't call into the VM if we don't want to trace to speed up things.
2330
2330
Label Lskip_vm_call;
2331
- if (TraceBytecodesAt > 0 && TraceBytecodesAt < max_intx ) {
2331
+ if (TraceBytecodesAt > 0 ) {
2332
2332
int offs1 = __ load_const_optimized (R11_scratch1, (address) &TraceBytecodesAt, R0, true );
2333
2333
int offs2 = __ load_const_optimized (R12_scratch2, (address) &BytecodeCounter::_counter_value, R0, true );
2334
2334
__ ld (R11_scratch1, offs1, R11_scratch1);
2335
- __ lwa (R12_scratch2, offs2, R12_scratch2);
2335
+ __ ld (R12_scratch2, offs2, R12_scratch2);
2336
2336
__ cmpd (CR0, R12_scratch2, R11_scratch1);
2337
2337
__ blt (CR0, Lskip_vm_call);
2338
2338
}
@@ -2346,7 +2346,7 @@ address TemplateInterpreterGenerator::generate_trace_code(TosState state) {
2346
2346
__ mtlr (R31);
2347
2347
__ pop (state);
2348
2348
2349
- if (TraceBytecodesAt > 0 && TraceBytecodesAt < max_intx ) {
2349
+ if (TraceBytecodesAt > 0 ) {
2350
2350
__ bind (Lskip_vm_call);
2351
2351
}
2352
2352
__ blr ();
@@ -2356,9 +2356,9 @@ address TemplateInterpreterGenerator::generate_trace_code(TosState state) {
2356
2356
2357
2357
void TemplateInterpreterGenerator::count_bytecode () {
2358
2358
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);
2360
2360
__ addi (R12_scratch2, R12_scratch2, 1 );
2361
- __ stw (R12_scratch2, offs, R11_scratch1);
2361
+ __ std (R12_scratch2, offs, R11_scratch1);
2362
2362
}
2363
2363
2364
2364
void TemplateInterpreterGenerator::histogram_bytecode (Template* t) {
@@ -2407,7 +2407,7 @@ void TemplateInterpreterGenerator::stop_interpreter_at() {
2407
2407
int offs1 = __ load_const_optimized (R11_scratch1, (address) &StopInterpreterAt, R0, true );
2408
2408
int offs2 = __ load_const_optimized (R12_scratch2, (address) &BytecodeCounter::_counter_value, R0, true );
2409
2409
__ ld (R11_scratch1, offs1, R11_scratch1);
2410
- __ lwa (R12_scratch2, offs2, R12_scratch2);
2410
+ __ ld (R12_scratch2, offs2, R12_scratch2);
2411
2411
__ cmpd (CR0, R12_scratch2, R11_scratch1);
2412
2412
__ bne (CR0, L);
2413
2413
__ illtrap ();
0 commit comments