Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 51e77069b223461ca2533760c79011fdbd13e7fc..31debe8a14f4b319789a378fab35a5fe2ca8a1e4 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -7785,6 +7785,7 @@ bool HOptimizedGraphBuilder::TryInlineApiCall(Handle<JSFunction> function, |
} |
bool drop_extra = false; |
+ bool is_store = false; |
switch (call_type) { |
case kCallApiFunction: |
case kCallApiMethod: |
@@ -7811,6 +7812,7 @@ bool HOptimizedGraphBuilder::TryInlineApiCall(Handle<JSFunction> function, |
break; |
case kCallApiSetter: |
{ |
+ is_store = true; |
// Receiver and prototype chain cannot have changed. |
ASSERT_EQ(1, argc); |
ASSERT_EQ(NULL, receiver); |
@@ -7856,7 +7858,7 @@ bool HOptimizedGraphBuilder::TryInlineApiCall(Handle<JSFunction> function, |
CallInterfaceDescriptor* descriptor = |
isolate()->call_descriptor(Isolate::ApiFunctionCall); |
- CallApiFunctionStub stub(true, call_data_is_undefined, argc); |
+ CallApiFunctionStub stub(is_store, call_data_is_undefined, argc); |
Handle<Code> code = stub.GetCode(isolate()); |
HConstant* code_value = Add<HConstant>(code); |