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

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

Issue 2397573004: [stubs] Reduce number of StoreTransitionStub instances. (Closed)
Patch Set: Cleanup Created 4 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/ic/x64/handler-compiler-x64.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 <memory> 8 #include <memory>
9 9
10 #include "src/assembler.h" 10 #include "src/assembler.h"
11 #include "src/macro-assembler.h" 11 #include "src/macro-assembler.h"
12 12
13 namespace v8 { 13 namespace v8 {
14 namespace internal { 14 namespace internal {
15 15
16 class PlatformInterfaceDescriptor; 16 class PlatformInterfaceDescriptor;
17 17
18 #define INTERFACE_DESCRIPTOR_LIST(V) \ 18 #define INTERFACE_DESCRIPTOR_LIST(V) \
19 V(Void) \ 19 V(Void) \
20 V(ContextOnly) \ 20 V(ContextOnly) \
21 V(Load) \ 21 V(Load) \
22 V(LoadWithVector) \ 22 V(LoadWithVector) \
23 V(LoadGlobal) \ 23 V(LoadGlobal) \
24 V(LoadGlobalWithVector) \ 24 V(LoadGlobalWithVector) \
25 V(Store) \ 25 V(Store) \
26 V(StoreWithVector) \ 26 V(StoreWithVector) \
27 V(StoreNamedTransition) \
27 V(StoreTransition) \ 28 V(StoreTransition) \
28 V(VarArgFunction) \ 29 V(VarArgFunction) \
29 V(FastNewClosure) \ 30 V(FastNewClosure) \
30 V(FastNewFunctionContext) \ 31 V(FastNewFunctionContext) \
31 V(FastNewObject) \ 32 V(FastNewObject) \
32 V(FastNewRestParameter) \ 33 V(FastNewRestParameter) \
33 V(FastNewSloppyArguments) \ 34 V(FastNewSloppyArguments) \
34 V(FastNewStrictArguments) \ 35 V(FastNewStrictArguments) \
35 V(TypeConversion) \ 36 V(TypeConversion) \
36 V(Typeof) \ 37 V(Typeof) \
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 StoreDescriptor) 343 StoreDescriptor)
343 344
344 static const Register MapRegister(); 345 static const Register MapRegister();
345 static const Register SlotRegister(); 346 static const Register SlotRegister();
346 static const Register VectorRegister(); 347 static const Register VectorRegister();
347 348
348 // Pass value, slot and vector through the stack. 349 // Pass value, slot and vector through the stack.
349 static const int kStackArgumentsCount = kPassLastArgsOnStack ? 3 : 0; 350 static const int kStackArgumentsCount = kPassLastArgsOnStack ? 3 : 0;
350 }; 351 };
351 352
353 class StoreNamedTransitionDescriptor : public StoreTransitionDescriptor {
354 public:
355 DEFINE_PARAMETERS(kReceiver, kFieldOffset, kMap, kValue, kSlot, kVector,
356 kName)
357 DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE(StoreNamedTransitionDescriptor,
358 StoreTransitionDescriptor)
359
360 // Always pass name on the stack.
361 static const bool kPassLastArgsOnStack = true;
362 static const int kStackArgumentsCount =
363 StoreTransitionDescriptor::kStackArgumentsCount + 1;
364
365 static const Register NameRegister() { return no_reg; }
366 static const Register FieldOffsetRegister() {
367 return StoreTransitionDescriptor::NameRegister();
368 }
369 };
370
352 class StoreWithVectorDescriptor : public StoreDescriptor { 371 class StoreWithVectorDescriptor : public StoreDescriptor {
353 public: 372 public:
354 DEFINE_PARAMETERS(kReceiver, kName, kValue, kSlot, kVector) 373 DEFINE_PARAMETERS(kReceiver, kName, kValue, kSlot, kVector)
355 DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE(StoreWithVectorDescriptor, 374 DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE(StoreWithVectorDescriptor,
356 StoreDescriptor) 375 StoreDescriptor)
357 376
358 static const Register VectorRegister(); 377 static const Register VectorRegister();
359 378
360 // Pass value, slot and vector through the stack. 379 // Pass value, slot and vector through the stack.
361 static const int kStackArgumentsCount = kPassLastArgsOnStack ? 3 : 0; 380 static const int kStackArgumentsCount = kPassLastArgsOnStack ? 3 : 0;
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after
816 } // namespace v8 835 } // namespace v8
817 836
818 837
819 #if V8_TARGET_ARCH_ARM64 838 #if V8_TARGET_ARCH_ARM64
820 #include "src/arm64/interface-descriptors-arm64.h" 839 #include "src/arm64/interface-descriptors-arm64.h"
821 #elif V8_TARGET_ARCH_ARM 840 #elif V8_TARGET_ARCH_ARM
822 #include "src/arm/interface-descriptors-arm.h" 841 #include "src/arm/interface-descriptors-arm.h"
823 #endif 842 #endif
824 843
825 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ 844 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_
OLDNEW
« no previous file with comments | « src/ic/x64/handler-compiler-x64.cc ('k') | src/interface-descriptors.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698