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

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

Issue 1266013006: [stubs] Unify (and optimize) implementation of ToObject. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add missing support for %_ToObject in TurboFan and Crankshaft. Created 5 years, 4 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/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(Load) \ 17 V(Load) \
18 V(Store) \ 18 V(Store) \
19 V(StoreTransition) \ 19 V(StoreTransition) \
20 V(VectorStoreICTrampoline) \ 20 V(VectorStoreICTrampoline) \
21 V(VectorStoreIC) \ 21 V(VectorStoreIC) \
22 V(Instanceof) \ 22 V(Instanceof) \
23 V(LoadWithVector) \ 23 V(LoadWithVector) \
24 V(FastNewClosure) \ 24 V(FastNewClosure) \
25 V(FastNewContext) \ 25 V(FastNewContext) \
26 V(ToNumber) \ 26 V(ToNumber) \
27 V(ToObject) \
27 V(NumberToString) \ 28 V(NumberToString) \
28 V(Typeof) \ 29 V(Typeof) \
29 V(FastCloneShallowArray) \ 30 V(FastCloneShallowArray) \
30 V(FastCloneShallowObject) \ 31 V(FastCloneShallowObject) \
31 V(CreateAllocationSite) \ 32 V(CreateAllocationSite) \
32 V(CreateWeakCell) \ 33 V(CreateWeakCell) \
33 V(CallFunction) \ 34 V(CallFunction) \
34 V(CallFunctionWithFeedback) \ 35 V(CallFunctionWithFeedback) \
35 V(CallFunctionWithFeedbackAndVector) \ 36 V(CallFunctionWithFeedbackAndVector) \
36 V(CallConstruct) \ 37 V(CallConstruct) \
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 DECLARE_DESCRIPTOR(FastNewContextDescriptor, CallInterfaceDescriptor) 333 DECLARE_DESCRIPTOR(FastNewContextDescriptor, CallInterfaceDescriptor)
333 }; 334 };
334 335
335 336
336 class ToNumberDescriptor : public CallInterfaceDescriptor { 337 class ToNumberDescriptor : public CallInterfaceDescriptor {
337 public: 338 public:
338 DECLARE_DESCRIPTOR(ToNumberDescriptor, CallInterfaceDescriptor) 339 DECLARE_DESCRIPTOR(ToNumberDescriptor, CallInterfaceDescriptor)
339 }; 340 };
340 341
341 342
343 class ToObjectDescriptor : public CallInterfaceDescriptor {
344 public:
345 enum ParameterIndices { kReceiverIndex };
346
347 DECLARE_DESCRIPTOR(ToObjectDescriptor, CallInterfaceDescriptor)
348
349 static const Register ReceiverRegister();
350 };
351
352
342 class NumberToStringDescriptor : public CallInterfaceDescriptor { 353 class NumberToStringDescriptor : public CallInterfaceDescriptor {
343 public: 354 public:
344 DECLARE_DESCRIPTOR(NumberToStringDescriptor, CallInterfaceDescriptor) 355 DECLARE_DESCRIPTOR(NumberToStringDescriptor, CallInterfaceDescriptor)
345 }; 356 };
346 357
347 358
348 class TypeofDescriptor : public CallInterfaceDescriptor { 359 class TypeofDescriptor : public CallInterfaceDescriptor {
349 public: 360 public:
350 DECLARE_DESCRIPTOR(TypeofDescriptor, CallInterfaceDescriptor) 361 DECLARE_DESCRIPTOR(TypeofDescriptor, CallInterfaceDescriptor)
351 }; 362 };
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
641 } // namespace v8::internal 652 } // namespace v8::internal
642 653
643 654
644 #if V8_TARGET_ARCH_ARM64 655 #if V8_TARGET_ARCH_ARM64
645 #include "src/arm64/interface-descriptors-arm64.h" 656 #include "src/arm64/interface-descriptors-arm64.h"
646 #elif V8_TARGET_ARCH_ARM 657 #elif V8_TARGET_ARCH_ARM
647 #include "src/arm/interface-descriptors-arm.h" 658 #include "src/arm/interface-descriptors-arm.h"
648 #endif 659 #endif
649 660
650 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ 661 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_
OLDNEW
« no previous file with comments | « src/ia32/interface-descriptors-ia32.cc ('k') | src/interface-descriptors.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698