Index: src/ic/x87/ic-x87.cc |
diff --git a/src/ic/x87/ic-x87.cc b/src/ic/x87/ic-x87.cc |
index ef088d5f62b2eff3c5f5a57a1cae95971f127154..83015888cdc80b14630ac791a854db912cc528c8 100644 |
--- a/src/ic/x87/ic-x87.cc |
+++ b/src/ic/x87/ic-x87.cc |
@@ -8,6 +8,7 @@ |
#include "src/codegen.h" |
#include "src/ic/ic.h" |
+#include "src/ic/ic-compiler.h" |
#include "src/ic/stub-cache.h" |
namespace v8 { |
@@ -778,7 +779,7 @@ void KeyedStoreIC::GenerateGeneric(MacroAssembler* masm, |
// Slow case: call runtime. |
__ bind(&slow); |
- GenerateRuntimeSetProperty(masm, strict_mode); |
+ PropertyICCompiler::GenerateRuntimeSetProperty(masm, strict_mode); |
// Extra capacity case: Check if there is extra capacity to |
// perform the store and update the length. Used for adding one |
@@ -1007,40 +1008,6 @@ void StoreIC::GenerateNormal(MacroAssembler* masm) { |
} |
-void StoreIC::GenerateRuntimeSetProperty(MacroAssembler* masm, |
- StrictMode strict_mode) { |
- // Return address is on the stack. |
- DCHECK(!ebx.is(ReceiverRegister()) && !ebx.is(NameRegister()) && |
- !ebx.is(ValueRegister())); |
- __ pop(ebx); |
- __ push(ReceiverRegister()); |
- __ push(NameRegister()); |
- __ push(ValueRegister()); |
- __ push(Immediate(Smi::FromInt(strict_mode))); |
- __ push(ebx); // return address |
- |
- // Do tail-call to runtime routine. |
- __ TailCallRuntime(Runtime::kSetProperty, 4, 1); |
-} |
- |
- |
-void KeyedStoreIC::GenerateRuntimeSetProperty(MacroAssembler* masm, |
- StrictMode strict_mode) { |
- // Return address is on the stack. |
- DCHECK(!ebx.is(ReceiverRegister()) && !ebx.is(NameRegister()) && |
- !ebx.is(ValueRegister())); |
- __ pop(ebx); |
- __ push(ReceiverRegister()); |
- __ push(NameRegister()); |
- __ push(ValueRegister()); |
- __ push(Immediate(Smi::FromInt(strict_mode))); |
- __ push(ebx); // return address |
- |
- // Do tail-call to runtime routine. |
- __ TailCallRuntime(Runtime::kSetProperty, 4, 1); |
-} |
- |
- |
void KeyedStoreIC::GenerateMiss(MacroAssembler* masm) { |
// Return address is on the stack. |
StoreIC_PushArgs(masm); |