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

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

Issue 2065113002: [ic] LoadGlobalIC caches PropertyCells in the feedback vector. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebasing Created 4 years, 6 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/ic/ic.cc ('k') | src/interface-descriptors.cc » ('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
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(Void) \ 17 V(Void) \
18 V(Load) \ 18 V(Load) \
19 V(LoadGlobal) \ 19 V(LoadGlobal) \
20 V(LoadGlobalWithVector) \
20 V(Store) \ 21 V(Store) \
21 V(StoreTransition) \ 22 V(StoreTransition) \
22 V(VectorStoreTransition) \ 23 V(VectorStoreTransition) \
23 V(VectorStoreICTrampoline) \ 24 V(VectorStoreICTrampoline) \
24 V(VectorStoreIC) \ 25 V(VectorStoreIC) \
25 V(LoadWithVector) \ 26 V(LoadWithVector) \
26 V(VarArgFunction) \ 27 V(VarArgFunction) \
27 V(FastNewClosure) \ 28 V(FastNewClosure) \
28 V(FastNewContext) \ 29 V(FastNewContext) \
29 V(FastNewObject) \ 30 V(FastNewObject) \
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 V(ArgumentAdaptor) \ 74 V(ArgumentAdaptor) \
74 V(ApiCallbackWith0Args) \ 75 V(ApiCallbackWith0Args) \
75 V(ApiCallbackWith1Args) \ 76 V(ApiCallbackWith1Args) \
76 V(ApiCallbackWith2Args) \ 77 V(ApiCallbackWith2Args) \
77 V(ApiCallbackWith3Args) \ 78 V(ApiCallbackWith3Args) \
78 V(ApiCallbackWith4Args) \ 79 V(ApiCallbackWith4Args) \
79 V(ApiCallbackWith5Args) \ 80 V(ApiCallbackWith5Args) \
80 V(ApiCallbackWith6Args) \ 81 V(ApiCallbackWith6Args) \
81 V(ApiCallbackWith7Args) \ 82 V(ApiCallbackWith7Args) \
82 V(ApiGetter) \ 83 V(ApiGetter) \
83 V(LoadGlobalViaContext) \
84 V(StoreGlobalViaContext) \ 84 V(StoreGlobalViaContext) \
85 V(MathPowTagged) \ 85 V(MathPowTagged) \
86 V(MathPowInteger) \ 86 V(MathPowInteger) \
87 V(ContextOnly) \ 87 V(ContextOnly) \
88 V(GrowArrayElements) \ 88 V(GrowArrayElements) \
89 V(InterpreterDispatch) \ 89 V(InterpreterDispatch) \
90 V(InterpreterPushArgsAndCall) \ 90 V(InterpreterPushArgsAndCall) \
91 V(InterpreterPushArgsAndConstruct) \ 91 V(InterpreterPushArgsAndConstruct) \
92 V(InterpreterCEntry) \ 92 V(InterpreterCEntry) \
93 V(ResumeGenerator) 93 V(ResumeGenerator)
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 static const Register ReceiverRegister(); 289 static const Register ReceiverRegister();
290 static const Register NameRegister(); 290 static const Register NameRegister();
291 static const Register SlotRegister(); 291 static const Register SlotRegister();
292 }; 292 };
293 293
294 class LoadGlobalDescriptor : public CallInterfaceDescriptor { 294 class LoadGlobalDescriptor : public CallInterfaceDescriptor {
295 public: 295 public:
296 DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE(LoadGlobalDescriptor, 296 DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE(LoadGlobalDescriptor,
297 CallInterfaceDescriptor) 297 CallInterfaceDescriptor)
298 298
299 enum ParameterIndices { kNameIndex, kSlotIndex };
300 };
301
302 class LoadGlobalWithVectorDescriptor : public CallInterfaceDescriptor {
303 public:
304 DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE(LoadGlobalWithVectorDescriptor,
305 CallInterfaceDescriptor)
306
299 enum ParameterIndices { kNameIndex, kSlotIndex, kVectorIndex }; 307 enum ParameterIndices { kNameIndex, kSlotIndex, kVectorIndex };
300 }; 308 };
301 309
302 class StoreDescriptor : public CallInterfaceDescriptor { 310 class StoreDescriptor : public CallInterfaceDescriptor {
303 public: 311 public:
304 DECLARE_DESCRIPTOR(StoreDescriptor, CallInterfaceDescriptor) 312 DECLARE_DESCRIPTOR(StoreDescriptor, CallInterfaceDescriptor)
305 313
306 enum ParameterIndices { 314 enum ParameterIndices {
307 kReceiverIndex, 315 kReceiverIndex,
308 kNameIndex, 316 kNameIndex,
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 DECLARE_DESCRIPTOR(CallConstructDescriptor, CallInterfaceDescriptor) 553 DECLARE_DESCRIPTOR(CallConstructDescriptor, CallInterfaceDescriptor)
546 }; 554 };
547 555
548 556
549 class RegExpConstructResultDescriptor : public CallInterfaceDescriptor { 557 class RegExpConstructResultDescriptor : public CallInterfaceDescriptor {
550 public: 558 public:
551 DECLARE_DESCRIPTOR(RegExpConstructResultDescriptor, CallInterfaceDescriptor) 559 DECLARE_DESCRIPTOR(RegExpConstructResultDescriptor, CallInterfaceDescriptor)
552 }; 560 };
553 561
554 562
555 class LoadGlobalViaContextDescriptor : public CallInterfaceDescriptor {
556 public:
557 DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE(LoadGlobalViaContextDescriptor,
558 CallInterfaceDescriptor)
559
560 static const Register SlotRegister();
561 };
562
563
564 class StoreGlobalViaContextDescriptor : public CallInterfaceDescriptor { 563 class StoreGlobalViaContextDescriptor : public CallInterfaceDescriptor {
565 public: 564 public:
566 DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE(StoreGlobalViaContextDescriptor, 565 DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE(StoreGlobalViaContextDescriptor,
567 CallInterfaceDescriptor) 566 CallInterfaceDescriptor)
568 567
569 static const Register SlotRegister(); 568 static const Register SlotRegister();
570 static const Register ValueRegister(); 569 static const Register ValueRegister();
571 }; 570 };
572 571
573 572
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
863 } // namespace v8 862 } // namespace v8
864 863
865 864
866 #if V8_TARGET_ARCH_ARM64 865 #if V8_TARGET_ARCH_ARM64
867 #include "src/arm64/interface-descriptors-arm64.h" 866 #include "src/arm64/interface-descriptors-arm64.h"
868 #elif V8_TARGET_ARCH_ARM 867 #elif V8_TARGET_ARCH_ARM
869 #include "src/arm/interface-descriptors-arm.h" 868 #include "src/arm/interface-descriptors-arm.h"
870 #endif 869 #endif
871 870
872 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ 871 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_
OLDNEW
« no previous file with comments | « src/ic/ic.cc ('k') | src/interface-descriptors.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698