OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef V8_CALL_INTERFACE_DESCRIPTOR_H_ | 5 #ifndef V8_CALL_INTERFACE_DESCRIPTOR_H_ |
6 #define V8_CALL_INTERFACE_DESCRIPTOR_H_ | 6 #define V8_CALL_INTERFACE_DESCRIPTOR_H_ |
7 | 7 |
8 #include "src/assembler.h" | 8 #include "src/assembler.h" |
9 #include "src/macro-assembler.h" | 9 #include "src/macro-assembler.h" |
10 | 10 |
11 namespace v8 { | 11 namespace v8 { |
12 namespace internal { | 12 namespace internal { |
13 | 13 |
14 class PlatformInterfaceDescriptor; | 14 class PlatformInterfaceDescriptor; |
15 | 15 |
16 #define INTERFACE_DESCRIPTOR_LIST(V) \ | 16 #define INTERFACE_DESCRIPTOR_LIST(V) \ |
17 V(Load) \ | 17 V(Load) \ |
18 V(Store) \ | 18 V(Store) \ |
19 V(StoreTransition) \ | 19 V(StoreTransition) \ |
20 V(VectorStoreICTrampoline) \ | 20 V(VectorStoreICTrampoline) \ |
21 V(VectorStoreIC) \ | 21 V(VectorStoreIC) \ |
22 V(Instanceof) \ | 22 V(InstanceOf) \ |
23 V(LoadWithVector) \ | 23 V(LoadWithVector) \ |
24 V(FastNewClosure) \ | 24 V(FastNewClosure) \ |
25 V(FastNewContext) \ | 25 V(FastNewContext) \ |
26 V(ToNumber) \ | 26 V(ToNumber) \ |
27 V(ToObject) \ | 27 V(ToObject) \ |
28 V(NumberToString) \ | 28 V(NumberToString) \ |
29 V(Typeof) \ | 29 V(Typeof) \ |
30 V(FastCloneShallowArray) \ | 30 V(FastCloneShallowArray) \ |
31 V(FastCloneShallowObject) \ | 31 V(FastCloneShallowObject) \ |
32 V(CreateAllocationSite) \ | 32 V(CreateAllocationSite) \ |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 kValueIndex, | 261 kValueIndex, |
262 kMapIndex, | 262 kMapIndex, |
263 kParameterCount | 263 kParameterCount |
264 }; | 264 }; |
265 | 265 |
266 // MapRegister() is no_reg on ia32, instead it's on the stack. | 266 // MapRegister() is no_reg on ia32, instead it's on the stack. |
267 static const Register MapRegister(); | 267 static const Register MapRegister(); |
268 }; | 268 }; |
269 | 269 |
270 | 270 |
271 class InstanceofDescriptor : public CallInterfaceDescriptor { | 271 class InstanceOfDescriptor final : public CallInterfaceDescriptor { |
272 public: | 272 public: |
273 DECLARE_DESCRIPTOR(InstanceofDescriptor, CallInterfaceDescriptor) | 273 DECLARE_DESCRIPTOR(InstanceOfDescriptor, CallInterfaceDescriptor) |
274 | 274 |
275 enum ParameterIndices { kLeftIndex, kRightIndex, kParameterCount }; | 275 enum ParameterIndices { kLeftIndex, kRightIndex, kParameterCount }; |
276 static const Register left(); | 276 static const Register LeftRegister(); |
277 static const Register right(); | 277 static const Register RightRegister(); |
278 }; | 278 }; |
279 | 279 |
280 | 280 |
281 class VectorStoreICTrampolineDescriptor : public StoreDescriptor { | 281 class VectorStoreICTrampolineDescriptor : public StoreDescriptor { |
282 public: | 282 public: |
283 DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE( | 283 DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE( |
284 VectorStoreICTrampolineDescriptor, StoreDescriptor) | 284 VectorStoreICTrampolineDescriptor, StoreDescriptor) |
285 | 285 |
286 enum ParameterIndices { kReceiverIndex, kNameIndex, kValueIndex, kSlotIndex }; | 286 enum ParameterIndices { kReceiverIndex, kNameIndex, kValueIndex, kSlotIndex }; |
287 | 287 |
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
652 } // namespace v8::internal | 652 } // namespace v8::internal |
653 | 653 |
654 | 654 |
655 #if V8_TARGET_ARCH_ARM64 | 655 #if V8_TARGET_ARCH_ARM64 |
656 #include "src/arm64/interface-descriptors-arm64.h" | 656 #include "src/arm64/interface-descriptors-arm64.h" |
657 #elif V8_TARGET_ARCH_ARM | 657 #elif V8_TARGET_ARCH_ARM |
658 #include "src/arm/interface-descriptors-arm.h" | 658 #include "src/arm/interface-descriptors-arm.h" |
659 #endif | 659 #endif |
660 | 660 |
661 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ | 661 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ |
OLD | NEW |