Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: src/interface-descriptors.h

Issue 1379933003: Revert of [Interpreter] Add CallRuntime support to the interpreter. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/ia32/macro-assembler-ia32.cc ('k') | src/interpreter/bytecode-array-builder.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 20 matching lines...) Expand all
31 V(Typeof) \ 31 V(Typeof) \
32 V(FastCloneShallowArray) \ 32 V(FastCloneShallowArray) \
33 V(FastCloneShallowObject) \ 33 V(FastCloneShallowObject) \
34 V(CreateAllocationSite) \ 34 V(CreateAllocationSite) \
35 V(CreateWeakCell) \ 35 V(CreateWeakCell) \
36 V(CallFunction) \ 36 V(CallFunction) \
37 V(CallFunctionWithFeedback) \ 37 V(CallFunctionWithFeedback) \
38 V(CallFunctionWithFeedbackAndVector) \ 38 V(CallFunctionWithFeedbackAndVector) \
39 V(CallConstruct) \ 39 V(CallConstruct) \
40 V(CallTrampoline) \ 40 V(CallTrampoline) \
41 V(PushArgsAndCall) \
41 V(RegExpConstructResult) \ 42 V(RegExpConstructResult) \
42 V(TransitionElementsKind) \ 43 V(TransitionElementsKind) \
43 V(AllocateHeapNumber) \ 44 V(AllocateHeapNumber) \
44 V(ArrayConstructorConstantArgCount) \ 45 V(ArrayConstructorConstantArgCount) \
45 V(ArrayConstructor) \ 46 V(ArrayConstructor) \
46 V(InternalArrayConstructorConstantArgCount) \ 47 V(InternalArrayConstructorConstantArgCount) \
47 V(InternalArrayConstructor) \ 48 V(InternalArrayConstructor) \
48 V(Compare) \ 49 V(Compare) \
49 V(CompareNil) \ 50 V(CompareNil) \
50 V(ToBoolean) \ 51 V(ToBoolean) \
(...skipping 11 matching lines...) Expand all
62 V(ArgumentsAccessRead) \ 63 V(ArgumentsAccessRead) \
63 V(ArgumentsAccessNew) \ 64 V(ArgumentsAccessNew) \
64 V(StoreArrayLiteralElement) \ 65 V(StoreArrayLiteralElement) \
65 V(LoadGlobalViaContext) \ 66 V(LoadGlobalViaContext) \
66 V(StoreGlobalViaContext) \ 67 V(StoreGlobalViaContext) \
67 V(MathPowTagged) \ 68 V(MathPowTagged) \
68 V(MathPowInteger) \ 69 V(MathPowInteger) \
69 V(ContextOnly) \ 70 V(ContextOnly) \
70 V(GrowArrayElements) \ 71 V(GrowArrayElements) \
71 V(MathRoundVariantCallFromUnoptimizedCode) \ 72 V(MathRoundVariantCallFromUnoptimizedCode) \
72 V(MathRoundVariantCallFromOptimizedCode) \ 73 V(MathRoundVariantCallFromOptimizedCode)
73 V(InterpreterPushArgsAndCall) \
74 V(InterpreterCEntry)
75 74
76 75
77 class CallInterfaceDescriptorData { 76 class CallInterfaceDescriptorData {
78 public: 77 public:
79 CallInterfaceDescriptorData() 78 CallInterfaceDescriptorData()
80 : register_param_count_(-1), function_type_(nullptr) {} 79 : register_param_count_(-1), function_type_(nullptr) {}
81 80
82 // A copy of the passed in registers and param_representations is made 81 // A copy of the passed in registers and param_representations is made
83 // and owned by the CallInterfaceDescriptorData. 82 // and owned by the CallInterfaceDescriptorData.
84 83
(...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after
700 class GrowArrayElementsDescriptor : public CallInterfaceDescriptor { 699 class GrowArrayElementsDescriptor : public CallInterfaceDescriptor {
701 public: 700 public:
702 DECLARE_DESCRIPTOR(GrowArrayElementsDescriptor, CallInterfaceDescriptor) 701 DECLARE_DESCRIPTOR(GrowArrayElementsDescriptor, CallInterfaceDescriptor)
703 702
704 enum RegisterInfo { kObjectIndex, kKeyIndex }; 703 enum RegisterInfo { kObjectIndex, kKeyIndex };
705 static const Register ObjectRegister(); 704 static const Register ObjectRegister();
706 static const Register KeyRegister(); 705 static const Register KeyRegister();
707 }; 706 };
708 707
709 708
710 class InterpreterPushArgsAndCallDescriptor : public CallInterfaceDescriptor { 709 class PushArgsAndCallDescriptor : public CallInterfaceDescriptor {
711 public: 710 public:
712 DECLARE_DESCRIPTOR(InterpreterPushArgsAndCallDescriptor, 711 DECLARE_DESCRIPTOR(PushArgsAndCallDescriptor, CallInterfaceDescriptor)
713 CallInterfaceDescriptor)
714 }; 712 };
715 713
716
717 class InterpreterCEntryDescriptor : public CallInterfaceDescriptor {
718 public:
719 DECLARE_DESCRIPTOR(InterpreterCEntryDescriptor, CallInterfaceDescriptor)
720 };
721
722
723 #undef DECLARE_DESCRIPTOR 714 #undef DECLARE_DESCRIPTOR
724 715
725 716
726 // We define the association between CallDescriptors::Key and the specialized 717 // We define the association between CallDescriptors::Key and the specialized
727 // descriptor here to reduce boilerplate and mistakes. 718 // descriptor here to reduce boilerplate and mistakes.
728 #define DEF_KEY(name) \ 719 #define DEF_KEY(name) \
729 CallDescriptors::Key name##Descriptor::key() { return CallDescriptors::name; } 720 CallDescriptors::Key name##Descriptor::key() { return CallDescriptors::name; }
730 INTERFACE_DESCRIPTOR_LIST(DEF_KEY) 721 INTERFACE_DESCRIPTOR_LIST(DEF_KEY)
731 #undef DEF_KEY 722 #undef DEF_KEY
732 } // namespace internal 723 } // namespace internal
733 } // namespace v8 724 } // namespace v8
734 725
735 726
736 #if V8_TARGET_ARCH_ARM64 727 #if V8_TARGET_ARCH_ARM64
737 #include "src/arm64/interface-descriptors-arm64.h" 728 #include "src/arm64/interface-descriptors-arm64.h"
738 #elif V8_TARGET_ARCH_ARM 729 #elif V8_TARGET_ARCH_ARM
739 #include "src/arm/interface-descriptors-arm.h" 730 #include "src/arm/interface-descriptors-arm.h"
740 #endif 731 #endif
741 732
742 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ 733 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_
OLDNEW
« no previous file with comments | « src/ia32/macro-assembler-ia32.cc ('k') | src/interpreter/bytecode-array-builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698