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

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

Issue 1980483003: [es6] Reintroduce the instanceof operator in the backends. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Igors comments. Created 4 years, 7 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(Void) \ 17 V(Void) \
18 V(Load) \ 18 V(Load) \
19 V(Store) \ 19 V(Store) \
20 V(StoreTransition) \ 20 V(StoreTransition) \
21 V(VectorStoreTransition) \ 21 V(VectorStoreTransition) \
22 V(VectorStoreICTrampoline) \ 22 V(VectorStoreICTrampoline) \
23 V(VectorStoreIC) \ 23 V(VectorStoreIC) \
24 V(InstanceOf) \
25 V(LoadWithVector) \ 24 V(LoadWithVector) \
26 V(FastArrayPush) \ 25 V(FastArrayPush) \
27 V(FastNewClosure) \ 26 V(FastNewClosure) \
28 V(FastNewContext) \ 27 V(FastNewContext) \
29 V(FastNewObject) \ 28 V(FastNewObject) \
30 V(FastNewRestParameter) \ 29 V(FastNewRestParameter) \
31 V(FastNewSloppyArguments) \ 30 V(FastNewSloppyArguments) \
32 V(FastNewStrictArguments) \ 31 V(FastNewStrictArguments) \
33 V(TypeConversion) \ 32 V(TypeConversion) \
34 V(Typeof) \ 33 V(Typeof) \
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 328
330 kVectorIndex = 5 329 kVectorIndex = 5
331 }; 330 };
332 331
333 static const Register MapRegister(); 332 static const Register MapRegister();
334 static const Register SlotRegister(); 333 static const Register SlotRegister();
335 static const Register VectorRegister(); 334 static const Register VectorRegister();
336 }; 335 };
337 336
338 337
339 class InstanceOfDescriptor final : public CallInterfaceDescriptor {
340 public:
341 DECLARE_DESCRIPTOR(InstanceOfDescriptor, CallInterfaceDescriptor)
342
343 enum ParameterIndices { kLeftIndex, kRightIndex, kParameterCount };
344 static const Register LeftRegister();
345 static const Register RightRegister();
346 };
347
348
349 class VectorStoreICTrampolineDescriptor : public StoreDescriptor { 338 class VectorStoreICTrampolineDescriptor : public StoreDescriptor {
350 public: 339 public:
351 DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE( 340 DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE(
352 VectorStoreICTrampolineDescriptor, StoreDescriptor) 341 VectorStoreICTrampolineDescriptor, StoreDescriptor)
353 342
354 enum ParameterIndices { kReceiverIndex, kNameIndex, kValueIndex, kSlotIndex }; 343 enum ParameterIndices { kReceiverIndex, kNameIndex, kValueIndex, kSlotIndex };
355 344
356 static const Register SlotRegister(); 345 static const Register SlotRegister();
357 }; 346 };
358 347
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after
855 } // namespace v8 844 } // namespace v8
856 845
857 846
858 #if V8_TARGET_ARCH_ARM64 847 #if V8_TARGET_ARCH_ARM64
859 #include "src/arm64/interface-descriptors-arm64.h" 848 #include "src/arm64/interface-descriptors-arm64.h"
860 #elif V8_TARGET_ARCH_ARM 849 #elif V8_TARGET_ARCH_ARM
861 #include "src/arm/interface-descriptors-arm.h" 850 #include "src/arm/interface-descriptors-arm.h"
862 #endif 851 #endif
863 852
864 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ 853 #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