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

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

Issue 1412963002: [runtime] Implement %_ToLength via ToLengthStub. (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
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(VectorStoreTransition) \ 20 V(VectorStoreTransition) \
21 V(VectorStoreICTrampoline) \ 21 V(VectorStoreICTrampoline) \
22 V(VectorStoreIC) \ 22 V(VectorStoreIC) \
23 V(InstanceOf) \ 23 V(InstanceOf) \
24 V(LoadWithVector) \ 24 V(LoadWithVector) \
25 V(FastNewClosure) \ 25 V(FastNewClosure) \
26 V(FastNewContext) \ 26 V(FastNewContext) \
27 V(ToNumber) \ 27 V(ToNumber) \
28 V(ToLength) \
28 V(ToString) \ 29 V(ToString) \
29 V(ToObject) \ 30 V(ToObject) \
30 V(NumberToString) \ 31 V(NumberToString) \
31 V(Typeof) \ 32 V(Typeof) \
32 V(FastCloneShallowArray) \ 33 V(FastCloneShallowArray) \
33 V(FastCloneShallowObject) \ 34 V(FastCloneShallowObject) \
34 V(CreateAllocationSite) \ 35 V(CreateAllocationSite) \
35 V(CreateWeakCell) \ 36 V(CreateWeakCell) \
36 V(CallFunction) \ 37 V(CallFunction) \
37 V(CallFunctionWithFeedback) \ 38 V(CallFunctionWithFeedback) \
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 DECLARE_DESCRIPTOR(FastNewContextDescriptor, CallInterfaceDescriptor) 367 DECLARE_DESCRIPTOR(FastNewContextDescriptor, CallInterfaceDescriptor)
367 }; 368 };
368 369
369 370
370 class ToNumberDescriptor : public CallInterfaceDescriptor { 371 class ToNumberDescriptor : public CallInterfaceDescriptor {
371 public: 372 public:
372 DECLARE_DESCRIPTOR(ToNumberDescriptor, CallInterfaceDescriptor) 373 DECLARE_DESCRIPTOR(ToNumberDescriptor, CallInterfaceDescriptor)
373 }; 374 };
374 375
375 376
377 class ToLengthDescriptor : public CallInterfaceDescriptor {
378 public:
379 enum ParameterIndices { kReceiverIndex };
380
381 DECLARE_DESCRIPTOR(ToLengthDescriptor, CallInterfaceDescriptor)
382
383 static const Register ReceiverRegister();
384 };
385
386
376 class ToStringDescriptor : public CallInterfaceDescriptor { 387 class ToStringDescriptor : public CallInterfaceDescriptor {
377 public: 388 public:
378 enum ParameterIndices { kReceiverIndex }; 389 enum ParameterIndices { kReceiverIndex };
379 390
380 DECLARE_DESCRIPTOR(ToStringDescriptor, CallInterfaceDescriptor) 391 DECLARE_DESCRIPTOR(ToStringDescriptor, CallInterfaceDescriptor)
381 392
382 static const Register ReceiverRegister(); 393 static const Register ReceiverRegister();
383 }; 394 };
384 395
385 396
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
751 } // namespace v8 762 } // namespace v8
752 763
753 764
754 #if V8_TARGET_ARCH_ARM64 765 #if V8_TARGET_ARCH_ARM64
755 #include "src/arm64/interface-descriptors-arm64.h" 766 #include "src/arm64/interface-descriptors-arm64.h"
756 #elif V8_TARGET_ARCH_ARM 767 #elif V8_TARGET_ARCH_ARM
757 #include "src/arm/interface-descriptors-arm.h" 768 #include "src/arm/interface-descriptors-arm.h"
758 #endif 769 #endif
759 770
760 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ 771 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698