Index: src/x87/stub-cache-x87.cc |
diff --git a/src/x87/stub-cache-x87.cc b/src/x87/stub-cache-x87.cc |
index fbd8a2b2ed7538717abc283e226564e7acaefd60..8a5f36d4737436c3ac6750fc90bb85c50a8bc654 100644 |
--- a/src/x87/stub-cache-x87.cc |
+++ b/src/x87/stub-cache-x87.cc |
@@ -1299,20 +1299,24 @@ Register* KeyedLoadStubCompiler::registers() { |
Register StoreStubCompiler::value() { |
- return eax; |
+ return StoreIC::ValueRegister(); |
} |
Register* StoreStubCompiler::registers() { |
// receiver, name, scratch1, scratch2, scratch3. |
- static Register registers[] = { edx, ecx, ebx, edi, no_reg }; |
+ Register receiver = StoreIC::ReceiverRegister(); |
+ Register name = StoreIC::NameRegister(); |
+ static Register registers[] = { receiver, name, ebx, edi, no_reg }; |
return registers; |
} |
Register* KeyedStoreStubCompiler::registers() { |
// receiver, name, scratch1, scratch2, scratch3. |
- static Register registers[] = { edx, ecx, ebx, edi, no_reg }; |
+ Register receiver = KeyedStoreIC::ReceiverRegister(); |
+ Register name = KeyedStoreIC::NameRegister(); |
+ static Register registers[] = { receiver, name, ebx, edi, no_reg }; |
return registers; |
} |