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 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
485 }; | 485 }; |
486 | 486 |
487 class FastNewClosureDescriptor : public CallInterfaceDescriptor { | 487 class FastNewClosureDescriptor : public CallInterfaceDescriptor { |
488 public: | 488 public: |
489 DECLARE_DESCRIPTOR(FastNewClosureDescriptor, CallInterfaceDescriptor) | 489 DECLARE_DESCRIPTOR(FastNewClosureDescriptor, CallInterfaceDescriptor) |
490 }; | 490 }; |
491 | 491 |
492 class FastNewFunctionContextDescriptor : public CallInterfaceDescriptor { | 492 class FastNewFunctionContextDescriptor : public CallInterfaceDescriptor { |
493 public: | 493 public: |
494 DECLARE_DESCRIPTOR(FastNewFunctionContextDescriptor, CallInterfaceDescriptor) | 494 DECLARE_DESCRIPTOR(FastNewFunctionContextDescriptor, CallInterfaceDescriptor) |
495 enum ParameterIndices { kFunctionIndex, kContextIndex }; | 495 |
| 496 enum ParameterIndices { kFunctionIndex, kSlotsIndex, kContextIndex }; |
| 497 static const Register FunctionRegister(); |
| 498 static const Register SlotsRegister(); |
496 }; | 499 }; |
497 | 500 |
498 class FastNewObjectDescriptor : public CallInterfaceDescriptor { | 501 class FastNewObjectDescriptor : public CallInterfaceDescriptor { |
499 public: | 502 public: |
500 DECLARE_DESCRIPTOR(FastNewObjectDescriptor, CallInterfaceDescriptor) | 503 DECLARE_DESCRIPTOR(FastNewObjectDescriptor, CallInterfaceDescriptor) |
501 }; | 504 }; |
502 | 505 |
503 class FastNewRestParameterDescriptor : public CallInterfaceDescriptor { | 506 class FastNewRestParameterDescriptor : public CallInterfaceDescriptor { |
504 public: | 507 public: |
505 DECLARE_DESCRIPTOR(FastNewRestParameterDescriptor, CallInterfaceDescriptor) | 508 DECLARE_DESCRIPTOR(FastNewRestParameterDescriptor, CallInterfaceDescriptor) |
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
942 } // namespace v8 | 945 } // namespace v8 |
943 | 946 |
944 | 947 |
945 #if V8_TARGET_ARCH_ARM64 | 948 #if V8_TARGET_ARCH_ARM64 |
946 #include "src/arm64/interface-descriptors-arm64.h" | 949 #include "src/arm64/interface-descriptors-arm64.h" |
947 #elif V8_TARGET_ARCH_ARM | 950 #elif V8_TARGET_ARCH_ARM |
948 #include "src/arm/interface-descriptors-arm.h" | 951 #include "src/arm/interface-descriptors-arm.h" |
949 #endif | 952 #endif |
950 | 953 |
951 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ | 954 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ |
OLD | NEW |