Index: src/arm/stub-cache-arm.cc |
diff --git a/src/arm/stub-cache-arm.cc b/src/arm/stub-cache-arm.cc |
index 694a4ed68f25b81d144555a961f6fba6b5676f26..dd60cc97997e0893d787ef8820c47b162f2ffec4 100644 |
--- a/src/arm/stub-cache-arm.cc |
+++ b/src/arm/stub-cache-arm.cc |
@@ -788,6 +788,7 @@ static void GenerateFastApiCall(MacroAssembler* masm, |
Handle<Map> receiver_map, |
Register receiver, |
Register scratch_in, |
+ bool is_store, |
int argc, |
Register* values) { |
ASSERT(!receiver.is(scratch_in)); |
@@ -854,7 +855,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); |
} |
@@ -1080,7 +1081,7 @@ void LoadStubCompiler::GenerateLoadCallback( |
Handle<Map> receiver_map) { |
GenerateFastApiCall( |
masm(), call_optimization, receiver_map, |
- receiver(), scratch3(), 0, NULL); |
+ receiver(), scratch3(), false, 0, NULL); |
} |
@@ -1271,7 +1272,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); |