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(ToObject) \ | 28 V(ToObject) \ |
29 V(NumberToString) \ | 29 V(NumberToString) \ |
30 V(Typeof) \ | 30 V(Typeof) \ |
31 V(FastCloneShallowArray) \ | 31 V(FastCloneShallowArray) \ |
32 V(FastCloneShallowObject) \ | 32 V(FastCloneShallowObject) \ |
33 V(CreateAllocationSite) \ | 33 V(CreateAllocationSite) \ |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 kParameterCount | 284 kParameterCount |
285 }; | 285 }; |
286 | 286 |
287 // These registers are no_reg for ia32, using the stack instead. | 287 // These registers are no_reg for ia32, using the stack instead. |
288 static const Register SlotRegister(); | 288 static const Register SlotRegister(); |
289 static const Register VectorRegister(); | 289 static const Register VectorRegister(); |
290 static const Register MapRegister(); | 290 static const Register MapRegister(); |
291 }; | 291 }; |
292 | 292 |
293 | 293 |
294 class InstanceofDescriptor : public CallInterfaceDescriptor { | 294 class InstanceOfDescriptor final : public CallInterfaceDescriptor { |
295 public: | 295 public: |
296 DECLARE_DESCRIPTOR(InstanceofDescriptor, CallInterfaceDescriptor) | 296 DECLARE_DESCRIPTOR(InstanceOfDescriptor, CallInterfaceDescriptor) |
297 | 297 |
298 enum ParameterIndices { kLeftIndex, kRightIndex, kParameterCount }; | 298 enum ParameterIndices { kLeftIndex, kRightIndex, kParameterCount }; |
299 static const Register left(); | 299 static const Register LeftRegister(); |
300 static const Register right(); | 300 static const Register RightRegister(); |
301 }; | 301 }; |
302 | 302 |
303 | 303 |
304 class VectorStoreICTrampolineDescriptor : public StoreDescriptor { | 304 class VectorStoreICTrampolineDescriptor : public StoreDescriptor { |
305 public: | 305 public: |
306 DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE( | 306 DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE( |
307 VectorStoreICTrampolineDescriptor, StoreDescriptor) | 307 VectorStoreICTrampolineDescriptor, StoreDescriptor) |
308 | 308 |
309 enum ParameterIndices { kReceiverIndex, kNameIndex, kValueIndex, kSlotIndex }; | 309 enum ParameterIndices { kReceiverIndex, kNameIndex, kValueIndex, kSlotIndex }; |
310 | 310 |
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
675 } // namespace v8::internal | 675 } // namespace v8::internal |
676 | 676 |
677 | 677 |
678 #if V8_TARGET_ARCH_ARM64 | 678 #if V8_TARGET_ARCH_ARM64 |
679 #include "src/arm64/interface-descriptors-arm64.h" | 679 #include "src/arm64/interface-descriptors-arm64.h" |
680 #elif V8_TARGET_ARCH_ARM | 680 #elif V8_TARGET_ARCH_ARM |
681 #include "src/arm/interface-descriptors-arm.h" | 681 #include "src/arm/interface-descriptors-arm.h" |
682 #endif | 682 #endif |
683 | 683 |
684 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ | 684 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ |
OLD | NEW |