| 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(VectorStoreICTrampoline) \ | 21 V(VectorStoreICTrampoline) \ |
| 21 V(VectorStoreIC) \ | 22 V(VectorStoreIC) \ |
| 22 V(Instanceof) \ | 23 V(Instanceof) \ |
| 23 V(LoadWithVector) \ | 24 V(LoadWithVector) \ |
| 24 V(FastNewClosure) \ | 25 V(FastNewClosure) \ |
| 25 V(FastNewContext) \ | 26 V(FastNewContext) \ |
| 26 V(ToNumber) \ | 27 V(ToNumber) \ |
| 27 V(ToObject) \ | 28 V(ToObject) \ |
| 28 V(NumberToString) \ | 29 V(NumberToString) \ |
| 29 V(Typeof) \ | 30 V(Typeof) \ |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 | 257 |
| 257 // Extends StoreDescriptor with Map parameter. | 258 // Extends StoreDescriptor with Map parameter. |
| 258 enum ParameterIndices { | 259 enum ParameterIndices { |
| 259 kReceiverIndex, | 260 kReceiverIndex, |
| 260 kNameIndex, | 261 kNameIndex, |
| 261 kValueIndex, | 262 kValueIndex, |
| 262 kMapIndex, | 263 kMapIndex, |
| 263 kParameterCount | 264 kParameterCount |
| 264 }; | 265 }; |
| 265 | 266 |
| 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 |
| 271 class VectorStoreTransitionDescriptor : public StoreDescriptor { |
| 272 public: |
| 273 DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE(VectorStoreTransitionDescriptor, |
| 274 StoreDescriptor) |
| 275 |
| 276 // Extends StoreDescriptor with Map parameter. |
| 277 enum ParameterIndices { |
| 278 kReceiverIndex, |
| 279 kNameIndex, |
| 280 kValueIndex, |
| 281 kSlotIndex, |
| 282 kVectorIndex, |
| 283 kMapIndex, |
| 284 kParameterCount |
| 285 }; |
| 286 |
| 287 // These registers are no_reg for ia32, using the stack instead. |
| 288 static const Register SlotRegister(); |
| 289 static const Register VectorRegister(); |
| 290 static const Register MapRegister(); |
| 291 }; |
| 292 |
| 270 | 293 |
| 271 class InstanceofDescriptor : public CallInterfaceDescriptor { | 294 class InstanceofDescriptor : public CallInterfaceDescriptor { |
| 272 public: | 295 public: |
| 273 DECLARE_DESCRIPTOR(InstanceofDescriptor, CallInterfaceDescriptor) | 296 DECLARE_DESCRIPTOR(InstanceofDescriptor, CallInterfaceDescriptor) |
| 274 | 297 |
| 275 enum ParameterIndices { kLeftIndex, kRightIndex, kParameterCount }; | 298 enum ParameterIndices { kLeftIndex, kRightIndex, kParameterCount }; |
| 276 static const Register left(); | 299 static const Register left(); |
| 277 static const Register right(); | 300 static const Register right(); |
| 278 }; | 301 }; |
| 279 | 302 |
| (...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 652 } // namespace v8::internal | 675 } // namespace v8::internal |
| 653 | 676 |
| 654 | 677 |
| 655 #if V8_TARGET_ARCH_ARM64 | 678 #if V8_TARGET_ARCH_ARM64 |
| 656 #include "src/arm64/interface-descriptors-arm64.h" | 679 #include "src/arm64/interface-descriptors-arm64.h" |
| 657 #elif V8_TARGET_ARCH_ARM | 680 #elif V8_TARGET_ARCH_ARM |
| 658 #include "src/arm/interface-descriptors-arm.h" | 681 #include "src/arm/interface-descriptors-arm.h" |
| 659 #endif | 682 #endif |
| 660 | 683 |
| 661 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ | 684 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ |
| OLD | NEW |