OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #if V8_TARGET_ARCH_IA32 | 5 #if V8_TARGET_ARCH_IA32 |
6 | 6 |
7 #include "src/ic/access-compiler.h" | 7 #include "src/ic/access-compiler.h" |
8 | 8 |
9 namespace v8 { | 9 namespace v8 { |
10 namespace internal { | 10 namespace internal { |
11 | 11 |
12 #define __ ACCESS_MASM(masm) | 12 #define __ ACCESS_MASM(masm) |
13 | 13 |
14 void PropertyAccessCompiler::GenerateTailCall(MacroAssembler* masm, | 14 void PropertyAccessCompiler::GenerateTailCall(MacroAssembler* masm, |
15 Handle<Code> code) { | 15 Handle<Code> code) { |
16 __ jmp(code, RelocInfo::CODE_TARGET); | 16 __ jmp(code, RelocInfo::CODE_TARGET); |
17 } | 17 } |
18 | 18 |
19 | 19 void PropertyAccessCompiler::InitializePlatformSpecific( |
20 Register* PropertyAccessCompiler::load_calling_convention() { | 20 AccessCompilerData* data) { |
21 // receiver, name, scratch1, scratch2, scratch3. | |
22 Register receiver = LoadDescriptor::ReceiverRegister(); | 21 Register receiver = LoadDescriptor::ReceiverRegister(); |
23 Register name = LoadDescriptor::NameRegister(); | 22 Register name = LoadDescriptor::NameRegister(); |
24 static Register registers[] = {receiver, name, ebx, eax, edi}; | |
25 return registers; | |
26 } | |
27 | 23 |
| 24 // Load calling convention. |
| 25 // receiver, name, scratch1, scratch2, scratch3. |
| 26 Register load_registers[] = {receiver, name, ebx, eax, edi}; |
28 | 27 |
29 Register* PropertyAccessCompiler::store_calling_convention() { | 28 // Store calling convention. |
30 // receiver, name, scratch1, scratch2. | 29 // receiver, name, scratch1, scratch2. |
31 Register receiver = StoreDescriptor::ReceiverRegister(); | 30 Register store_registers[] = {receiver, name, ebx, edi}; |
32 Register name = StoreDescriptor::NameRegister(); | 31 |
33 static Register registers[] = {receiver, name, ebx, edi}; | 32 data->Initialize(arraysize(load_registers), load_registers, |
34 return registers; | 33 arraysize(store_registers), store_registers); |
35 } | 34 } |
36 | 35 |
37 #undef __ | 36 #undef __ |
38 } // namespace internal | 37 } // namespace internal |
39 } // namespace v8 | 38 } // namespace v8 |
40 | 39 |
41 #endif // V8_TARGET_ARCH_IA32 | 40 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |