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 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_ARM | 7 #if V8_TARGET_ARCH_MIPS |
8 | 8 |
9 #include "src/ic/access-compiler.h" | 9 #include "src/ic/access-compiler.h" |
10 | 10 |
11 namespace v8 { | 11 namespace v8 { |
12 namespace internal { | 12 namespace internal { |
13 | 13 |
14 #define __ ACCESS_MASM(masm) | 14 #define __ ACCESS_MASM(masm) |
15 | 15 |
16 | 16 |
17 void PropertyAccessCompiler::GenerateTailCall(MacroAssembler* masm, | 17 void PropertyAccessCompiler::GenerateTailCall(MacroAssembler* masm, |
18 Handle<Code> code) { | 18 Handle<Code> code) { |
19 __ Jump(code, RelocInfo::CODE_TARGET); | 19 __ Jump(code, RelocInfo::CODE_TARGET); |
20 } | 20 } |
21 | 21 |
22 | 22 |
23 Register* PropertyAccessCompiler::load_calling_convention() { | 23 Register* PropertyAccessCompiler::load_calling_convention() { |
24 // receiver, name, scratch1, scratch2, scratch3, scratch4. | 24 // receiver, name, scratch1, scratch2, scratch3, scratch4. |
25 Register receiver = LoadIC::ReceiverRegister(); | 25 Register receiver = LoadIC::ReceiverRegister(); |
26 Register name = LoadIC::NameRegister(); | 26 Register name = LoadIC::NameRegister(); |
27 static Register registers[] = {receiver, name, r3, r0, r4, r5}; | 27 static Register registers[] = {receiver, name, a3, a0, t0, t1}; |
28 return registers; | 28 return registers; |
29 } | 29 } |
30 | 30 |
31 | 31 |
32 Register* PropertyAccessCompiler::store_calling_convention() { | 32 Register* PropertyAccessCompiler::store_calling_convention() { |
33 // receiver, name, scratch1, scratch2, scratch3. | 33 // receiver, name, scratch1, scratch2, scratch3. |
34 Register receiver = StoreIC::ReceiverRegister(); | 34 Register receiver = StoreIC::ReceiverRegister(); |
35 Register name = StoreIC::NameRegister(); | 35 Register name = StoreIC::NameRegister(); |
36 DCHECK(r3.is(KeyedStoreIC::MapRegister())); | 36 DCHECK(a3.is(KeyedStoreIC::MapRegister())); |
37 static Register registers[] = {receiver, name, r3, r4, r5}; | 37 static Register registers[] = {receiver, name, a3, t0, t1}; |
38 return registers; | 38 return registers; |
39 } | 39 } |
40 | 40 |
41 | 41 |
42 #undef __ | 42 #undef __ |
43 } | 43 } |
44 } // namespace v8::internal | 44 } // namespace v8::internal |
45 | 45 |
46 #endif // V8_TARGET_ARCH_IA32 | 46 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |