OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_X64 | 7 #if V8_TARGET_ARCH_X64 |
8 | 8 |
9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 void ToBooleanStub::InitializeInterfaceDescriptor( | 215 void ToBooleanStub::InitializeInterfaceDescriptor( |
216 CodeStubInterfaceDescriptor* descriptor) { | 216 CodeStubInterfaceDescriptor* descriptor) { |
217 Register registers[] = { rax }; | 217 Register registers[] = { rax }; |
218 descriptor->Initialize(ARRAY_SIZE(registers), registers, | 218 descriptor->Initialize(ARRAY_SIZE(registers), registers, |
219 FUNCTION_ADDR(ToBooleanIC_Miss)); | 219 FUNCTION_ADDR(ToBooleanIC_Miss)); |
220 descriptor->SetMissHandler( | 220 descriptor->SetMissHandler( |
221 ExternalReference(IC_Utility(IC::kToBooleanIC_Miss), isolate())); | 221 ExternalReference(IC_Utility(IC::kToBooleanIC_Miss), isolate())); |
222 } | 222 } |
223 | 223 |
224 | 224 |
225 void ElementsTransitionAndStoreStub::InitializeInterfaceDescriptor( | |
226 CodeStubInterfaceDescriptor* descriptor) { | |
227 Register registers[] = { rax, rbx, rcx, rdx }; | |
228 descriptor->Initialize(ARRAY_SIZE(registers), registers, | |
229 FUNCTION_ADDR(ElementsTransitionAndStoreIC_Miss)); | |
230 } | |
231 | |
232 | |
233 void BinaryOpICStub::InitializeInterfaceDescriptor( | 225 void BinaryOpICStub::InitializeInterfaceDescriptor( |
234 CodeStubInterfaceDescriptor* descriptor) { | 226 CodeStubInterfaceDescriptor* descriptor) { |
235 Register registers[] = { rdx, rax }; | 227 Register registers[] = { rdx, rax }; |
236 descriptor->Initialize(ARRAY_SIZE(registers), registers, | 228 descriptor->Initialize(ARRAY_SIZE(registers), registers, |
237 FUNCTION_ADDR(BinaryOpIC_Miss)); | 229 FUNCTION_ADDR(BinaryOpIC_Miss)); |
238 descriptor->SetMissHandler( | 230 descriptor->SetMissHandler( |
239 ExternalReference(IC_Utility(IC::kBinaryOpIC_Miss), isolate())); | 231 ExternalReference(IC_Utility(IC::kBinaryOpIC_Miss), isolate())); |
240 } | 232 } |
241 | 233 |
242 | 234 |
(...skipping 4679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4922 return_value_operand, | 4914 return_value_operand, |
4923 NULL); | 4915 NULL); |
4924 } | 4916 } |
4925 | 4917 |
4926 | 4918 |
4927 #undef __ | 4919 #undef __ |
4928 | 4920 |
4929 } } // namespace v8::internal | 4921 } } // namespace v8::internal |
4930 | 4922 |
4931 #endif // V8_TARGET_ARCH_X64 | 4923 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |