@@ -2981,8 +2981,8 @@ void TemplateTable::putfield_or_static_helper(int byte_no, bool is_static, Rewri
2981
2981
do_oop_store (_masm, field, rax);
2982
2982
__ jmp (rewrite_inline);
2983
2983
__ bind (is_flat);
2984
- pop_and_check_object (r8 );
2985
- __ write_flat_field (rcx, r9, rscratch2, r8 , rbx, rax);
2984
+ pop_and_check_object (rscratch2 );
2985
+ __ write_flat_field (rcx, r8, rscratch1, rscratch2 , rbx, rax);
2986
2986
__ bind (rewrite_inline);
2987
2987
if (rc == may_rewrite) {
2988
2988
patch_bytecode (Bytecodes::_fast_vputfield, bc, rbx, true , byte_no);
@@ -3218,8 +3218,8 @@ void TemplateTable::fast_storefield_helper(Address field, Register rax, Register
3218
3218
__ jmp (done);
3219
3219
__ bind (is_flat);
3220
3220
__ load_field_entry (r8, r9);
3221
- __ movptr (r9 , rcx); // re-shuffle registers because of VM call calling convention
3222
- __ write_flat_field (r8, rscratch1, rscratch2, r9 , rbx, rax);
3221
+ __ movptr (rscratch2 , rcx); // re-shuffle registers because of VM call calling convention
3222
+ __ write_flat_field (r8, rscratch1, r9, rscratch2 , rbx, rax);
3223
3223
__ bind (done);
3224
3224
}
3225
3225
break ;
0 commit comments