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_ARM64 | 7 #if V8_TARGET_ARCH_ARM64 |
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 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 CodeStubInterfaceDescriptor* descriptor) { | 231 CodeStubInterfaceDescriptor* descriptor) { |
232 // x0: value | 232 // x0: value |
233 Register registers[] = { x0 }; | 233 Register registers[] = { x0 }; |
234 descriptor->Initialize(ARRAY_SIZE(registers), registers, | 234 descriptor->Initialize(ARRAY_SIZE(registers), registers, |
235 FUNCTION_ADDR(ToBooleanIC_Miss)); | 235 FUNCTION_ADDR(ToBooleanIC_Miss)); |
236 descriptor->SetMissHandler( | 236 descriptor->SetMissHandler( |
237 ExternalReference(IC_Utility(IC::kToBooleanIC_Miss), isolate())); | 237 ExternalReference(IC_Utility(IC::kToBooleanIC_Miss), isolate())); |
238 } | 238 } |
239 | 239 |
240 | 240 |
241 void ElementsTransitionAndStoreStub::InitializeInterfaceDescriptor( | |
242 CodeStubInterfaceDescriptor* descriptor) { | |
243 // x0: value | |
244 // x3: target map | |
245 // x1: key | |
246 // x2: receiver | |
247 Register registers[] = { x0, x3, x1, x2 }; | |
248 descriptor->Initialize(ARRAY_SIZE(registers), registers, | |
249 FUNCTION_ADDR(ElementsTransitionAndStoreIC_Miss)); | |
250 } | |
251 | |
252 | |
253 void BinaryOpICStub::InitializeInterfaceDescriptor( | 241 void BinaryOpICStub::InitializeInterfaceDescriptor( |
254 CodeStubInterfaceDescriptor* descriptor) { | 242 CodeStubInterfaceDescriptor* descriptor) { |
255 // x1: left operand | 243 // x1: left operand |
256 // x0: right operand | 244 // x0: right operand |
257 Register registers[] = { x1, x0 }; | 245 Register registers[] = { x1, x0 }; |
258 descriptor->Initialize(ARRAY_SIZE(registers), registers, | 246 descriptor->Initialize(ARRAY_SIZE(registers), registers, |
259 FUNCTION_ADDR(BinaryOpIC_Miss)); | 247 FUNCTION_ADDR(BinaryOpIC_Miss)); |
260 descriptor->SetMissHandler( | 248 descriptor->SetMissHandler( |
261 ExternalReference(IC_Utility(IC::kBinaryOpIC_Miss), isolate())); | 249 ExternalReference(IC_Utility(IC::kBinaryOpIC_Miss), isolate())); |
262 } | 250 } |
(...skipping 5140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5403 MemOperand(fp, 6 * kPointerSize), | 5391 MemOperand(fp, 6 * kPointerSize), |
5404 NULL); | 5392 NULL); |
5405 } | 5393 } |
5406 | 5394 |
5407 | 5395 |
5408 #undef __ | 5396 #undef __ |
5409 | 5397 |
5410 } } // namespace v8::internal | 5398 } } // namespace v8::internal |
5411 | 5399 |
5412 #endif // V8_TARGET_ARCH_ARM64 | 5400 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |