OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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/interface-descriptors.h" | 9 #include "src/interface-descriptors.h" |
10 | 10 |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 CallInterfaceDescriptorData* data) { | 254 CallInterfaceDescriptorData* data) { |
255 // stack param count needs (constructor pointer, and single argument) | 255 // stack param count needs (constructor pointer, and single argument) |
256 Register registers[] = {cp, x1, x0}; | 256 Register registers[] = {cp, x1, x0}; |
257 Representation representations[] = {Representation::Tagged(), | 257 Representation representations[] = {Representation::Tagged(), |
258 Representation::Tagged(), | 258 Representation::Tagged(), |
259 Representation::Integer32()}; | 259 Representation::Integer32()}; |
260 data->Initialize(arraysize(registers), registers, representations); | 260 data->Initialize(arraysize(registers), registers, representations); |
261 } | 261 } |
262 | 262 |
263 | 263 |
| 264 void CompareDescriptor::Initialize(CallInterfaceDescriptorData* data) { |
| 265 // cp: context |
| 266 // x1: left operand |
| 267 // x0: right operand |
| 268 Register registers[] = {cp, x1, x0}; |
| 269 data->Initialize(arraysize(registers), registers, NULL); |
| 270 } |
| 271 |
| 272 |
264 void CompareNilDescriptor::Initialize(CallInterfaceDescriptorData* data) { | 273 void CompareNilDescriptor::Initialize(CallInterfaceDescriptorData* data) { |
265 // cp: context | 274 // cp: context |
266 // x0: value to compare | 275 // x0: value to compare |
267 Register registers[] = {cp, x0}; | 276 Register registers[] = {cp, x0}; |
268 data->Initialize(arraysize(registers), registers, NULL); | 277 data->Initialize(arraysize(registers), registers, NULL); |
269 } | 278 } |
270 | 279 |
271 | 280 |
272 void ToBooleanDescriptor::Initialize(CallInterfaceDescriptorData* data) { | 281 void ToBooleanDescriptor::Initialize(CallInterfaceDescriptorData* data) { |
273 // cp: context | 282 // cp: context |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
421 Representation::Tagged(), // holder | 430 Representation::Tagged(), // holder |
422 Representation::External(), // api_function_address | 431 Representation::External(), // api_function_address |
423 }; | 432 }; |
424 data->Initialize(arraysize(registers), registers, representations, | 433 data->Initialize(arraysize(registers), registers, representations, |
425 &default_descriptor); | 434 &default_descriptor); |
426 } | 435 } |
427 } | 436 } |
428 } // namespace v8::internal | 437 } // namespace v8::internal |
429 | 438 |
430 #endif // V8_TARGET_ARCH_ARM64 | 439 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |