| 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 |
| (...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 }; | 274 }; |
| 275 | 275 |
| 276 | 276 |
| 277 class VectorStoreTransitionDescriptor : public StoreDescriptor { | 277 class VectorStoreTransitionDescriptor : public StoreDescriptor { |
| 278 public: | 278 public: |
| 279 DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE(VectorStoreTransitionDescriptor, | 279 DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE(VectorStoreTransitionDescriptor, |
| 280 StoreDescriptor) | 280 StoreDescriptor) |
| 281 | 281 |
| 282 // Extends StoreDescriptor with Map parameter. | 282 // Extends StoreDescriptor with Map parameter. |
| 283 enum ParameterIndices { | 283 enum ParameterIndices { |
| 284 kReceiverIndex, | 284 kReceiverIndex = 0, |
| 285 kNameIndex, | 285 kNameIndex = 1, |
| 286 kValueIndex, | 286 kValueIndex = 2, |
| 287 kSlotIndex, | 287 |
| 288 kVectorIndex, | 288 kMapIndex = 3, |
| 289 kMapIndex, | 289 |
| 290 kParameterCount | 290 kSlotIndex = 4, // not present on ia32. |
| 291 kVirtualSlotVectorIndex = 4, |
| 292 |
| 293 kVectorIndex = 5 |
| 291 }; | 294 }; |
| 292 | 295 |
| 293 // These registers are no_reg for ia32, using the stack instead. | 296 static const Register MapRegister(); |
| 294 static const Register SlotRegister(); | 297 static const Register SlotRegister(); |
| 295 static const Register VectorRegister(); | 298 static const Register VectorRegister(); |
| 296 static const Register MapRegister(); | |
| 297 }; | 299 }; |
| 298 | 300 |
| 299 | 301 |
| 300 class InstanceOfDescriptor final : public CallInterfaceDescriptor { | 302 class InstanceOfDescriptor final : public CallInterfaceDescriptor { |
| 301 public: | 303 public: |
| 302 DECLARE_DESCRIPTOR(InstanceOfDescriptor, CallInterfaceDescriptor) | 304 DECLARE_DESCRIPTOR(InstanceOfDescriptor, CallInterfaceDescriptor) |
| 303 | 305 |
| 304 enum ParameterIndices { kLeftIndex, kRightIndex, kParameterCount }; | 306 enum ParameterIndices { kLeftIndex, kRightIndex, kParameterCount }; |
| 305 static const Register LeftRegister(); | 307 static const Register LeftRegister(); |
| 306 static const Register RightRegister(); | 308 static const Register RightRegister(); |
| (...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 733 } // namespace v8 | 735 } // namespace v8 |
| 734 | 736 |
| 735 | 737 |
| 736 #if V8_TARGET_ARCH_ARM64 | 738 #if V8_TARGET_ARCH_ARM64 |
| 737 #include "src/arm64/interface-descriptors-arm64.h" | 739 #include "src/arm64/interface-descriptors-arm64.h" |
| 738 #elif V8_TARGET_ARCH_ARM | 740 #elif V8_TARGET_ARCH_ARM |
| 739 #include "src/arm/interface-descriptors-arm.h" | 741 #include "src/arm/interface-descriptors-arm.h" |
| 740 #endif | 742 #endif |
| 741 | 743 |
| 742 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ | 744 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ |
| OLD | NEW |