Index: src/ic/ia32/access-compiler-ia32.cc |
diff --git a/src/ic/ia32/access-compiler-ia32.cc b/src/ic/ia32/access-compiler-ia32.cc |
index 3219f3d1cb31006f9d5af7519f66aad129c2e141..411c74465987e4b0eaf09d036edac5eb13d60eaa 100644 |
--- a/src/ic/ia32/access-compiler-ia32.cc |
+++ b/src/ic/ia32/access-compiler-ia32.cc |
@@ -16,22 +16,21 @@ void PropertyAccessCompiler::GenerateTailCall(MacroAssembler* masm, |
__ jmp(code, RelocInfo::CODE_TARGET); |
} |
- |
-Register* PropertyAccessCompiler::load_calling_convention() { |
- // receiver, name, scratch1, scratch2, scratch3. |
+void PropertyAccessCompiler::InitializePlatformSpecific( |
+ AccessCompilerData* data) { |
Register receiver = LoadDescriptor::ReceiverRegister(); |
Register name = LoadDescriptor::NameRegister(); |
- static Register registers[] = {receiver, name, ebx, eax, edi}; |
- return registers; |
-} |
+ // Load calling convention. |
+ // receiver, name, scratch1, scratch2, scratch3. |
+ Register load_registers[] = {receiver, name, ebx, eax, edi}; |
-Register* PropertyAccessCompiler::store_calling_convention() { |
+ // Store calling convention. |
// receiver, name, scratch1, scratch2. |
- Register receiver = StoreDescriptor::ReceiverRegister(); |
- Register name = StoreDescriptor::NameRegister(); |
- static Register registers[] = {receiver, name, ebx, edi}; |
- return registers; |
+ Register store_registers[] = {receiver, name, ebx, edi}; |
+ |
+ data->Initialize(arraysize(load_registers), load_registers, |
+ arraysize(store_registers), store_registers); |
} |
#undef __ |