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(VectorStoreTransition) \ | 20 V(VectorStoreTransition) \ |
21 V(VectorStoreICTrampoline) \ | 21 V(VectorStoreICTrampoline) \ |
22 V(VectorStoreIC) \ | 22 V(VectorStoreIC) \ |
23 V(InstanceOf) \ | 23 V(InstanceOf) \ |
24 V(LoadWithVector) \ | 24 V(LoadWithVector) \ |
25 V(FastNewClosure) \ | 25 V(FastNewClosure) \ |
26 V(FastNewContext) \ | 26 V(FastNewContext) \ |
27 V(ToNumber) \ | 27 V(ToNumber) \ |
| 28 V(ToString) \ |
28 V(ToObject) \ | 29 V(ToObject) \ |
29 V(NumberToString) \ | 30 V(NumberToString) \ |
30 V(Typeof) \ | 31 V(Typeof) \ |
31 V(FastCloneShallowArray) \ | 32 V(FastCloneShallowArray) \ |
32 V(FastCloneShallowObject) \ | 33 V(FastCloneShallowObject) \ |
33 V(CreateAllocationSite) \ | 34 V(CreateAllocationSite) \ |
34 V(CreateWeakCell) \ | 35 V(CreateWeakCell) \ |
35 V(CallFunction) \ | 36 V(CallFunction) \ |
36 V(CallFunctionWithFeedback) \ | 37 V(CallFunctionWithFeedback) \ |
37 V(CallFunctionWithFeedbackAndVector) \ | 38 V(CallFunctionWithFeedbackAndVector) \ |
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
356 DECLARE_DESCRIPTOR(FastNewContextDescriptor, CallInterfaceDescriptor) | 357 DECLARE_DESCRIPTOR(FastNewContextDescriptor, CallInterfaceDescriptor) |
357 }; | 358 }; |
358 | 359 |
359 | 360 |
360 class ToNumberDescriptor : public CallInterfaceDescriptor { | 361 class ToNumberDescriptor : public CallInterfaceDescriptor { |
361 public: | 362 public: |
362 DECLARE_DESCRIPTOR(ToNumberDescriptor, CallInterfaceDescriptor) | 363 DECLARE_DESCRIPTOR(ToNumberDescriptor, CallInterfaceDescriptor) |
363 }; | 364 }; |
364 | 365 |
365 | 366 |
| 367 class ToStringDescriptor : public CallInterfaceDescriptor { |
| 368 public: |
| 369 enum ParameterIndices { kReceiverIndex }; |
| 370 |
| 371 DECLARE_DESCRIPTOR(ToStringDescriptor, CallInterfaceDescriptor) |
| 372 |
| 373 static const Register ReceiverRegister(); |
| 374 }; |
| 375 |
| 376 |
366 class ToObjectDescriptor : public CallInterfaceDescriptor { | 377 class ToObjectDescriptor : public CallInterfaceDescriptor { |
367 public: | 378 public: |
368 enum ParameterIndices { kReceiverIndex }; | 379 enum ParameterIndices { kReceiverIndex }; |
369 | 380 |
370 DECLARE_DESCRIPTOR(ToObjectDescriptor, CallInterfaceDescriptor) | 381 DECLARE_DESCRIPTOR(ToObjectDescriptor, CallInterfaceDescriptor) |
371 | 382 |
372 static const Register ReceiverRegister(); | 383 static const Register ReceiverRegister(); |
373 }; | 384 }; |
374 | 385 |
375 | 386 |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
675 } // namespace v8::internal | 686 } // namespace v8::internal |
676 | 687 |
677 | 688 |
678 #if V8_TARGET_ARCH_ARM64 | 689 #if V8_TARGET_ARCH_ARM64 |
679 #include "src/arm64/interface-descriptors-arm64.h" | 690 #include "src/arm64/interface-descriptors-arm64.h" |
680 #elif V8_TARGET_ARCH_ARM | 691 #elif V8_TARGET_ARCH_ARM |
681 #include "src/arm/interface-descriptors-arm.h" | 692 #include "src/arm/interface-descriptors-arm.h" |
682 #endif | 693 #endif |
683 | 694 |
684 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ | 695 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ |
OLD | NEW |