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(ElementTransitionAndStore) \ | 20 V(ElementTransitionAndStore) \ |
21 V(VectorStoreICTrampoline) \ | |
22 V(VectorStoreIC) \ | |
21 V(Instanceof) \ | 23 V(Instanceof) \ |
22 V(LoadWithVector) \ | 24 V(LoadWithVector) \ |
23 V(FastNewClosure) \ | 25 V(FastNewClosure) \ |
24 V(FastNewContext) \ | 26 V(FastNewContext) \ |
25 V(ToNumber) \ | 27 V(ToNumber) \ |
26 V(NumberToString) \ | 28 V(NumberToString) \ |
27 V(Typeof) \ | 29 V(Typeof) \ |
28 V(FastCloneShallowArray) \ | 30 V(FastCloneShallowArray) \ |
29 V(FastCloneShallowObject) \ | 31 V(FastCloneShallowObject) \ |
30 V(CreateAllocationSite) \ | 32 V(CreateAllocationSite) \ |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
249 class InstanceofDescriptor : public CallInterfaceDescriptor { | 251 class InstanceofDescriptor : public CallInterfaceDescriptor { |
250 public: | 252 public: |
251 DECLARE_DESCRIPTOR(InstanceofDescriptor, CallInterfaceDescriptor) | 253 DECLARE_DESCRIPTOR(InstanceofDescriptor, CallInterfaceDescriptor) |
252 | 254 |
253 enum ParameterIndices { kLeftIndex, kRightIndex, kParameterCount }; | 255 enum ParameterIndices { kLeftIndex, kRightIndex, kParameterCount }; |
254 static const Register left(); | 256 static const Register left(); |
255 static const Register right(); | 257 static const Register right(); |
256 }; | 258 }; |
257 | 259 |
258 | 260 |
261 class VectorStoreICTrampolineDescriptor : public StoreDescriptor { | |
262 public: | |
263 DECLARE_DESCRIPTOR(VectorStoreICTrampolineDescriptor, StoreDescriptor) | |
264 | |
265 enum ParameterIndices { kReceiverIndex, kNameIndex, kValueIndex, kSlotIndex }; | |
266 | |
267 static const Register SlotRegister(); | |
268 }; | |
269 | |
270 | |
271 class VectorStoreICDescriptor : public VectorStoreICTrampolineDescriptor { | |
272 public: | |
273 DECLARE_DESCRIPTOR(VectorStoreICDescriptor, VectorStoreICTrampolineDescriptor) | |
274 | |
275 enum ParameterIndices { | |
276 kReceiverIndex, | |
277 kNameIndex, | |
278 kValueIndex, | |
279 kSlotIndex, | |
280 kVectorIndex | |
281 }; | |
282 | |
283 static const Register VectorRegister(); | |
284 }; | |
285 | |
286 | |
259 class LoadWithVectorDescriptor : public LoadDescriptor { | 287 class LoadWithVectorDescriptor : public LoadDescriptor { |
Jakob Kummerow
2015/05/22 11:38:17
Drive-by: maybe put a TODO here to unify these two
mvstanton
2015/05/22 12:06:16
Ah, okay. No, this is appropriate and maybe it's a
| |
260 public: | 288 public: |
261 DECLARE_DESCRIPTOR(LoadWithVectorDescriptor, LoadDescriptor) | 289 DECLARE_DESCRIPTOR(LoadWithVectorDescriptor, LoadDescriptor) |
262 | 290 |
263 enum ParameterIndices { | 291 enum ParameterIndices { |
264 kReceiverIndex, | 292 kReceiverIndex, |
265 kNameIndex, | 293 kNameIndex, |
266 kSlotIndex, | 294 kSlotIndex, |
267 kVectorIndex | 295 kVectorIndex |
268 }; | 296 }; |
269 | 297 |
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
553 } // namespace v8::internal | 581 } // namespace v8::internal |
554 | 582 |
555 | 583 |
556 #if V8_TARGET_ARCH_ARM64 | 584 #if V8_TARGET_ARCH_ARM64 |
557 #include "src/arm64/interface-descriptors-arm64.h" | 585 #include "src/arm64/interface-descriptors-arm64.h" |
558 #elif V8_TARGET_ARCH_ARM | 586 #elif V8_TARGET_ARCH_ARM |
559 #include "src/arm/interface-descriptors-arm.h" | 587 #include "src/arm/interface-descriptors-arm.h" |
560 #endif | 588 #endif |
561 | 589 |
562 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ | 590 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ |
OLD | NEW |