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

Side by Side Diff: src/crankshaft/arm/lithium-arm.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/contexts.h ('k') | src/crankshaft/arm/lithium-arm.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_CRANKSHAFT_ARM_LITHIUM_ARM_H_ 5 #ifndef V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_
6 #define V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ 6 #define V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_
7 7
8 #include "src/crankshaft/hydrogen.h" 8 #include "src/crankshaft/hydrogen.h"
9 #include "src/crankshaft/lithium.h" 9 #include "src/crankshaft/lithium.h"
10 #include "src/crankshaft/lithium-allocator.h" 10 #include "src/crankshaft/lithium-allocator.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 V(FlooringDivByPowerOf2I) \ 72 V(FlooringDivByPowerOf2I) \
73 V(FlooringDivI) \ 73 V(FlooringDivI) \
74 V(ForInCacheArray) \ 74 V(ForInCacheArray) \
75 V(ForInPrepareMap) \ 75 V(ForInPrepareMap) \
76 V(GetCachedArrayIndex) \ 76 V(GetCachedArrayIndex) \
77 V(Goto) \ 77 V(Goto) \
78 V(HasCachedArrayIndexAndBranch) \ 78 V(HasCachedArrayIndexAndBranch) \
79 V(HasInPrototypeChainAndBranch) \ 79 V(HasInPrototypeChainAndBranch) \
80 V(HasInstanceTypeAndBranch) \ 80 V(HasInstanceTypeAndBranch) \
81 V(InnerAllocatedObject) \ 81 V(InnerAllocatedObject) \
82 V(InstanceOf) \
83 V(InstructionGap) \ 82 V(InstructionGap) \
84 V(Integer32ToDouble) \ 83 V(Integer32ToDouble) \
85 V(InvokeFunction) \ 84 V(InvokeFunction) \
86 V(IsStringAndBranch) \ 85 V(IsStringAndBranch) \
87 V(IsSmiAndBranch) \ 86 V(IsSmiAndBranch) \
88 V(IsUndetectableAndBranch) \ 87 V(IsUndetectableAndBranch) \
89 V(Label) \ 88 V(Label) \
90 V(LazyBailout) \ 89 V(LazyBailout) \
91 V(LoadContextSlot) \ 90 V(LoadContextSlot) \
92 V(LoadRoot) \ 91 V(LoadRoot) \
(...skipping 1035 matching lines...) Expand 10 before | Expand all | Expand 10 after
1128 LOperand* left() { return inputs_[1]; } 1127 LOperand* left() { return inputs_[1]; }
1129 LOperand* right() { return inputs_[2]; } 1128 LOperand* right() { return inputs_[2]; }
1130 1129
1131 DECLARE_CONCRETE_INSTRUCTION(CmpT, "cmp-t") 1130 DECLARE_CONCRETE_INSTRUCTION(CmpT, "cmp-t")
1132 DECLARE_HYDROGEN_ACCESSOR(CompareGeneric) 1131 DECLARE_HYDROGEN_ACCESSOR(CompareGeneric)
1133 1132
1134 Token::Value op() const { return hydrogen()->token(); } 1133 Token::Value op() const { return hydrogen()->token(); }
1135 }; 1134 };
1136 1135
1137 1136
1138 class LInstanceOf final : public LTemplateInstruction<1, 3, 0> {
1139 public:
1140 LInstanceOf(LOperand* context, LOperand* left, LOperand* right) {
1141 inputs_[0] = context;
1142 inputs_[1] = left;
1143 inputs_[2] = right;
1144 }
1145
1146 LOperand* context() const { return inputs_[0]; }
1147 LOperand* left() const { return inputs_[1]; }
1148 LOperand* right() const { return inputs_[2]; }
1149
1150 DECLARE_CONCRETE_INSTRUCTION(InstanceOf, "instance-of")
1151 };
1152
1153
1154 class LHasInPrototypeChainAndBranch final : public LControlInstruction<2, 0> { 1137 class LHasInPrototypeChainAndBranch final : public LControlInstruction<2, 0> {
1155 public: 1138 public:
1156 LHasInPrototypeChainAndBranch(LOperand* object, LOperand* prototype) { 1139 LHasInPrototypeChainAndBranch(LOperand* object, LOperand* prototype) {
1157 inputs_[0] = object; 1140 inputs_[0] = object;
1158 inputs_[1] = prototype; 1141 inputs_[1] = prototype;
1159 } 1142 }
1160 1143
1161 LOperand* object() const { return inputs_[0]; } 1144 LOperand* object() const { return inputs_[0]; }
1162 LOperand* prototype() const { return inputs_[1]; } 1145 LOperand* prototype() const { return inputs_[1]; }
1163 1146
(...skipping 1505 matching lines...) Expand 10 before | Expand all | Expand 10 after
2669 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2652 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2670 }; 2653 };
2671 2654
2672 #undef DECLARE_HYDROGEN_ACCESSOR 2655 #undef DECLARE_HYDROGEN_ACCESSOR
2673 #undef DECLARE_CONCRETE_INSTRUCTION 2656 #undef DECLARE_CONCRETE_INSTRUCTION
2674 2657
2675 } // namespace internal 2658 } // namespace internal
2676 } // namespace v8 2659 } // namespace v8
2677 2660
2678 #endif // V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_ 2661 #endif // V8_CRANKSHAFT_ARM_LITHIUM_ARM_H_
OLDNEW
« no previous file with comments | « src/contexts.h ('k') | src/crankshaft/arm/lithium-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698