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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 | 90 |
91 | 91 |
92 void NumberToStringDescriptor::Initialize(CallInterfaceDescriptorData* data) { | 92 void NumberToStringDescriptor::Initialize(CallInterfaceDescriptorData* data) { |
93 // cp: context | 93 // cp: context |
94 // x0: value | 94 // x0: value |
95 Register registers[] = {cp, x0}; | 95 Register registers[] = {cp, x0}; |
96 data->Initialize(arraysize(registers), registers, NULL); | 96 data->Initialize(arraysize(registers), registers, NULL); |
97 } | 97 } |
98 | 98 |
99 | 99 |
| 100 void TypeofDescriptor::Initialize(CallInterfaceDescriptorData* data) { |
| 101 Register registers[] = {cp, x3}; |
| 102 data->Initialize(arraysize(registers), registers, NULL); |
| 103 } |
| 104 |
| 105 |
100 void FastCloneShallowArrayDescriptor::Initialize( | 106 void FastCloneShallowArrayDescriptor::Initialize( |
101 CallInterfaceDescriptorData* data) { | 107 CallInterfaceDescriptorData* data) { |
102 // cp: context | 108 // cp: context |
103 // x3: array literals array | 109 // x3: array literals array |
104 // x2: array literal index | 110 // x2: array literal index |
105 // x1: constant elements | 111 // x1: constant elements |
106 Register registers[] = {cp, x3, x2, x1}; | 112 Register registers[] = {cp, x3, x2, x1}; |
107 Representation representations[] = { | 113 Representation representations[] = { |
108 Representation::Tagged(), Representation::Tagged(), Representation::Smi(), | 114 Representation::Tagged(), Representation::Tagged(), Representation::Smi(), |
109 Representation::Tagged()}; | 115 Representation::Tagged()}; |
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
435 Representation::Tagged(), // holder | 441 Representation::Tagged(), // holder |
436 Representation::External(), // api_function_address | 442 Representation::External(), // api_function_address |
437 }; | 443 }; |
438 data->Initialize(arraysize(registers), registers, representations, | 444 data->Initialize(arraysize(registers), registers, representations, |
439 &default_descriptor); | 445 &default_descriptor); |
440 } | 446 } |
441 } | 447 } |
442 } // namespace v8::internal | 448 } // namespace v8::internal |
443 | 449 |
444 #endif // V8_TARGET_ARCH_ARM64 | 450 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |