OLD | NEW |
1 // Copyright 2015 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_S390 | 5 #if V8_TARGET_ARCH_S390 |
6 | 6 |
7 #include "src/ic/ic.h" | 7 #include "src/ic/ic.h" |
8 #include "src/codegen.h" | 8 #include "src/codegen.h" |
9 #include "src/ic/ic-compiler.h" | 9 #include "src/ic/ic-compiler.h" |
10 #include "src/ic/stub-cache.h" | 10 #include "src/ic/stub-cache.h" |
11 | 11 |
12 namespace v8 { | 12 namespace v8 { |
13 namespace internal { | 13 namespace internal { |
14 | 14 |
15 // ---------------------------------------------------------------------------- | |
16 // Static IC stub generators. | |
17 // | |
18 | |
19 #define __ ACCESS_MASM(masm) | |
20 | |
21 static void StoreIC_PushArgs(MacroAssembler* masm) { | |
22 __ Push(StoreWithVectorDescriptor::ValueRegister(), | |
23 StoreWithVectorDescriptor::SlotRegister(), | |
24 StoreWithVectorDescriptor::VectorRegister(), | |
25 StoreWithVectorDescriptor::ReceiverRegister(), | |
26 StoreWithVectorDescriptor::NameRegister()); | |
27 } | |
28 | |
29 void KeyedStoreIC::GenerateMiss(MacroAssembler* masm) { | |
30 StoreIC_PushArgs(masm); | |
31 | |
32 __ TailCallRuntime(Runtime::kKeyedStoreIC_Miss); | |
33 } | |
34 | |
35 void KeyedStoreIC::GenerateSlow(MacroAssembler* masm) { | |
36 StoreIC_PushArgs(masm); | |
37 | |
38 // The slow case calls into the runtime to complete the store without causing | |
39 // an IC miss that would otherwise cause a transition to the generic stub. | |
40 __ TailCallRuntime(Runtime::kKeyedStoreIC_Slow); | |
41 } | |
42 | |
43 #undef __ | |
44 | 15 |
45 Condition CompareIC::ComputeCondition(Token::Value op) { | 16 Condition CompareIC::ComputeCondition(Token::Value op) { |
46 switch (op) { | 17 switch (op) { |
47 case Token::EQ_STRICT: | 18 case Token::EQ_STRICT: |
48 case Token::EQ: | 19 case Token::EQ: |
49 return eq; | 20 return eq; |
50 case Token::LT: | 21 case Token::LT: |
51 return lt; | 22 return lt; |
52 case Token::GT: | 23 case Token::GT: |
53 return gt; | 24 return gt; |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 patcher.masm()->brcl(cc, Operand(branch_instr & 0xffffffff)); | 131 patcher.masm()->brcl(cc, Operand(branch_instr & 0xffffffff)); |
161 } else { | 132 } else { |
162 DCHECK(false); | 133 DCHECK(false); |
163 } | 134 } |
164 } | 135 } |
165 | 136 |
166 } // namespace internal | 137 } // namespace internal |
167 } // namespace v8 | 138 } // namespace v8 |
168 | 139 |
169 #endif // V8_TARGET_ARCH_S390 | 140 #endif // V8_TARGET_ARCH_S390 |
OLD | NEW |