OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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_PPC | 5 #include "src/v8.h" |
| 6 |
| 7 #if V8_TARGET_ARCH_S390 |
6 | 8 |
7 #include "src/ic/access-compiler.h" | 9 #include "src/ic/access-compiler.h" |
8 | 10 |
9 namespace v8 { | 11 namespace v8 { |
10 namespace internal { | 12 namespace internal { |
11 | 13 |
12 #define __ ACCESS_MASM(masm) | 14 #define __ ACCESS_MASM(masm) |
13 | 15 |
14 | |
15 void PropertyAccessCompiler::GenerateTailCall(MacroAssembler* masm, | 16 void PropertyAccessCompiler::GenerateTailCall(MacroAssembler* masm, |
16 Handle<Code> code) { | 17 Handle<Code> code) { |
17 __ Jump(code, RelocInfo::CODE_TARGET); | 18 __ Jump(code, RelocInfo::CODE_TARGET); |
18 } | 19 } |
19 | 20 |
20 | |
21 Register* PropertyAccessCompiler::load_calling_convention() { | 21 Register* PropertyAccessCompiler::load_calling_convention() { |
22 // receiver, name, scratch1, scratch2, scratch3, scratch4. | 22 // receiver, name, scratch1, scratch2, scratch3, scratch4. |
23 Register receiver = LoadDescriptor::ReceiverRegister(); | 23 Register receiver = LoadDescriptor::ReceiverRegister(); |
24 Register name = LoadDescriptor::NameRegister(); | 24 Register name = LoadDescriptor::NameRegister(); |
25 static Register registers[] = {receiver, name, r6, r3, r7, r8}; | 25 static Register registers[] = {receiver, name, r5, r2, r6, r7}; |
26 return registers; | 26 return registers; |
27 } | 27 } |
28 | 28 |
29 | |
30 Register* PropertyAccessCompiler::store_calling_convention() { | 29 Register* PropertyAccessCompiler::store_calling_convention() { |
31 // receiver, name, scratch1, scratch2, scratch3. | 30 // receiver, name, scratch1, scratch2, scratch3. |
32 Register receiver = StoreDescriptor::ReceiverRegister(); | 31 Register receiver = StoreDescriptor::ReceiverRegister(); |
33 Register name = StoreDescriptor::NameRegister(); | 32 Register name = StoreDescriptor::NameRegister(); |
34 static Register registers[] = {receiver, name, r6, r7, r8}; | 33 static Register registers[] = {receiver, name, r5, r6, r7}; |
35 return registers; | 34 return registers; |
36 } | 35 } |
37 | 36 |
38 | |
39 #undef __ | 37 #undef __ |
40 } // namespace internal | 38 } // namespace internal |
41 } // namespace v8 | 39 } // namespace v8 |
42 | 40 |
43 #endif // V8_TARGET_ARCH_PPC | 41 #endif // V8_TARGET_ARCH_S390 |
OLD | NEW |