Commit dbf2fcef authored by Jaideep Bajwa's avatar Jaideep Bajwa Committed by Commit Bot

PPC/S390: fix test-compiler/InvocationCount on BE

R=joransiu@ca.ibm.com, jyan@ca.ibm.com
BUG=
LOG=N

Change-Id: Ic3d594bd69d6979aeab46a655cfa4ef530d80d57
Reviewed-on: https://chromium-review.googlesource.com/661477Reviewed-by: 's avatarJunliang Yan <jyan@ca.ibm.com>
Commit-Queue: Jaideep Bajwa <bjaideep@ca.ibm.com>
Cr-Commit-Position: refs/heads/master@{#47959}
parent d415be61
......@@ -931,10 +931,12 @@ void Builtins::Generate_InterpreterEntryTrampoline(MacroAssembler* masm) {
__ bind(&bytecode_array_loaded);
// Increment invocation count for the function.
__ LoadP(r8, FieldMemOperand(feedback_vector,
FeedbackVector::kInvocationCountOffset));
__ LoadWord(
r8,
FieldMemOperand(feedback_vector, FeedbackVector::kInvocationCountOffset),
r0);
__ addi(r8, r8, Operand(1));
__ StoreP(
__ StoreWord(
r8,
FieldMemOperand(feedback_vector, FeedbackVector::kInvocationCountOffset),
r0);
......
......@@ -931,10 +931,10 @@ void Builtins::Generate_InterpreterEntryTrampoline(MacroAssembler* masm) {
__ bind(&bytecode_array_loaded);
// Increment invocation count for the function.
__ LoadP(r1, FieldMemOperand(feedback_vector,
__ LoadW(r1, FieldMemOperand(feedback_vector,
FeedbackVector::kInvocationCountOffset));
__ AddP(r1, r1, Operand(1));
__ StoreP(r1, FieldMemOperand(feedback_vector,
__ StoreW(r1, FieldMemOperand(feedback_vector,
FeedbackVector::kInvocationCountOffset));
// Check function data field is actually a BytecodeArray object.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment