Index: src/a64/stub-cache-a64.cc |
diff --git a/src/a64/stub-cache-a64.cc b/src/a64/stub-cache-a64.cc |
index 19f9dd604330173f84e8af65794471f141d014fa..adb835506a0dfad3dfdbae7efd217eb9612b9d99 100644 |
--- a/src/a64/stub-cache-a64.cc |
+++ b/src/a64/stub-cache-a64.cc |
@@ -750,6 +750,7 @@ static void GenerateFastApiCall(MacroAssembler* masm, |
Handle<Map> receiver_map, |
Register receiver, |
Register scratch, |
+ bool is_store, |
int argc, |
Register* values) { |
ASSERT(!AreAliased(receiver, scratch)); |
@@ -815,7 +816,7 @@ static void GenerateFastApiCall(MacroAssembler* masm, |
__ Mov(api_function_address, Operand(ref)); |
// Jump to stub. |
- CallApiFunctionStub stub(true, call_data_undefined, argc); |
+ CallApiFunctionStub stub(is_store, call_data_undefined, argc); |
__ TailCallStub(&stub); |
} |
@@ -1047,7 +1048,8 @@ void LoadStubCompiler::GenerateLoadCallback( |
const CallOptimization& call_optimization, |
Handle<Map> receiver_map) { |
GenerateFastApiCall( |
- masm(), call_optimization, receiver_map, receiver(), scratch3(), 0, NULL); |
+ masm(), call_optimization, receiver_map, |
+ receiver(), scratch3(), false, 0, NULL); |
} |
@@ -1540,7 +1542,7 @@ Handle<Code> StoreStubCompiler::CompileStoreCallback( |
Register values[] = { value() }; |
GenerateFastApiCall(masm(), call_optimization, handle(object->map()), |
- receiver(), scratch3(), 1, values); |
+ receiver(), scratch3(), true, 1, values); |
// Return the generated code. |
return GetCode(kind(), Code::FAST, name); |