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

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

Issue 1323463005: [Interpreter] Add support for JS calls. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add MIPS port contributed by akos.palfi@imgtec.com Created 5 years, 3 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/interface-descriptors-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 623 matching lines...) Expand 10 before | Expand all | Expand 10 after
674 675
675 class GrowArrayElementsDescriptor : public CallInterfaceDescriptor { 676 class GrowArrayElementsDescriptor : public CallInterfaceDescriptor {
676 public: 677 public:
677 DECLARE_DESCRIPTOR(GrowArrayElementsDescriptor, CallInterfaceDescriptor) 678 DECLARE_DESCRIPTOR(GrowArrayElementsDescriptor, CallInterfaceDescriptor)
678 679
679 enum RegisterInfo { kObjectIndex, kKeyIndex }; 680 enum RegisterInfo { kObjectIndex, kKeyIndex };
680 static const Register ObjectRegister(); 681 static const Register ObjectRegister();
681 static const Register KeyRegister(); 682 static const Register KeyRegister();
682 }; 683 };
683 684
685
686 class PushArgsAndCallDescriptor : public CallInterfaceDescriptor {
687 public:
688 DECLARE_DESCRIPTOR(PushArgsAndCallDescriptor, CallInterfaceDescriptor)
689 };
690
684 #undef DECLARE_DESCRIPTOR 691 #undef DECLARE_DESCRIPTOR
685 692
686 693
687 // We define the association between CallDescriptors::Key and the specialized 694 // We define the association between CallDescriptors::Key and the specialized
688 // descriptor here to reduce boilerplate and mistakes. 695 // descriptor here to reduce boilerplate and mistakes.
689 #define DEF_KEY(name) \ 696 #define DEF_KEY(name) \
690 CallDescriptors::Key name##Descriptor::key() { return CallDescriptors::name; } 697 CallDescriptors::Key name##Descriptor::key() { return CallDescriptors::name; }
691 INTERFACE_DESCRIPTOR_LIST(DEF_KEY) 698 INTERFACE_DESCRIPTOR_LIST(DEF_KEY)
692 #undef DEF_KEY 699 #undef DEF_KEY
693 } 700 }
694 } // namespace v8::internal 701 } // namespace v8::internal
695 702
696 703
697 #if V8_TARGET_ARCH_ARM64 704 #if V8_TARGET_ARCH_ARM64
698 #include "src/arm64/interface-descriptors-arm64.h" 705 #include "src/arm64/interface-descriptors-arm64.h"
699 #elif V8_TARGET_ARCH_ARM 706 #elif V8_TARGET_ARCH_ARM
700 #include "src/arm/interface-descriptors-arm.h" 707 #include "src/arm/interface-descriptors-arm.h"
701 #endif 708 #endif
702 709
703 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ 710 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_
OLDNEW
« no previous file with comments | « src/ia32/interface-descriptors-ia32.cc ('k') | src/interpreter/bytecode-array-builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698