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

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

Issue 1304633002: Correctify instanceof and make it optimizable. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE. Add MIPS/MIPS64 ports. Created 5 years, 3 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/macro-assembler-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(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(ToObject) \ 28 V(ToObject) \
29 V(NumberToString) \ 29 V(NumberToString) \
30 V(Typeof) \ 30 V(Typeof) \
31 V(FastCloneShallowArray) \ 31 V(FastCloneShallowArray) \
32 V(FastCloneShallowObject) \ 32 V(FastCloneShallowObject) \
33 V(CreateAllocationSite) \ 33 V(CreateAllocationSite) \
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 kParameterCount 284 kParameterCount
285 }; 285 };
286 286
287 // These registers are no_reg for ia32, using the stack instead. 287 // These registers are no_reg for ia32, using the stack instead.
288 static const Register SlotRegister(); 288 static const Register SlotRegister();
289 static const Register VectorRegister(); 289 static const Register VectorRegister();
290 static const Register MapRegister(); 290 static const Register MapRegister();
291 }; 291 };
292 292
293 293
294 class InstanceofDescriptor : public CallInterfaceDescriptor { 294 class InstanceOfDescriptor final : public CallInterfaceDescriptor {
295 public: 295 public:
296 DECLARE_DESCRIPTOR(InstanceofDescriptor, CallInterfaceDescriptor) 296 DECLARE_DESCRIPTOR(InstanceOfDescriptor, CallInterfaceDescriptor)
297 297
298 enum ParameterIndices { kLeftIndex, kRightIndex, kParameterCount }; 298 enum ParameterIndices { kLeftIndex, kRightIndex, kParameterCount };
299 static const Register left(); 299 static const Register LeftRegister();
300 static const Register right(); 300 static const Register RightRegister();
301 }; 301 };
302 302
303 303
304 class VectorStoreICTrampolineDescriptor : public StoreDescriptor { 304 class VectorStoreICTrampolineDescriptor : public StoreDescriptor {
305 public: 305 public:
306 DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE( 306 DECLARE_DESCRIPTOR_WITH_CUSTOM_FUNCTION_TYPE(
307 VectorStoreICTrampolineDescriptor, StoreDescriptor) 307 VectorStoreICTrampolineDescriptor, StoreDescriptor)
308 308
309 enum ParameterIndices { kReceiverIndex, kNameIndex, kValueIndex, kSlotIndex }; 309 enum ParameterIndices { kReceiverIndex, kNameIndex, kValueIndex, kSlotIndex };
310 310
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
675 } // namespace v8::internal 675 } // namespace v8::internal
676 676
677 677
678 #if V8_TARGET_ARCH_ARM64 678 #if V8_TARGET_ARCH_ARM64
679 #include "src/arm64/interface-descriptors-arm64.h" 679 #include "src/arm64/interface-descriptors-arm64.h"
680 #elif V8_TARGET_ARCH_ARM 680 #elif V8_TARGET_ARCH_ARM
681 #include "src/arm/interface-descriptors-arm.h" 681 #include "src/arm/interface-descriptors-arm.h"
682 #endif 682 #endif
683 683
684 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_ 684 #endif // V8_CALL_INTERFACE_DESCRIPTOR_H_
OLDNEW
« no previous file with comments | « src/ia32/macro-assembler-ia32.cc ('k') | src/interface-descriptors.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698