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

Side by Side Diff: src/crankshaft/mips64/lithium-mips64.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
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_MIPS64_LITHIUM_MIPS_H_ 5 #ifndef V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_
6 #define V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ 6 #define V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 V(FlooringDivByPowerOf2I) \ 74 V(FlooringDivByPowerOf2I) \
75 V(FlooringDivI) \ 75 V(FlooringDivI) \
76 V(ForInCacheArray) \ 76 V(ForInCacheArray) \
77 V(ForInPrepareMap) \ 77 V(ForInPrepareMap) \
78 V(GetCachedArrayIndex) \ 78 V(GetCachedArrayIndex) \
79 V(Goto) \ 79 V(Goto) \
80 V(HasCachedArrayIndexAndBranch) \ 80 V(HasCachedArrayIndexAndBranch) \
81 V(HasInPrototypeChainAndBranch) \ 81 V(HasInPrototypeChainAndBranch) \
82 V(HasInstanceTypeAndBranch) \ 82 V(HasInstanceTypeAndBranch) \
83 V(InnerAllocatedObject) \ 83 V(InnerAllocatedObject) \
84 V(InstanceOf) \
85 V(InstructionGap) \ 84 V(InstructionGap) \
86 V(Integer32ToDouble) \ 85 V(Integer32ToDouble) \
87 V(InvokeFunction) \ 86 V(InvokeFunction) \
88 V(IsStringAndBranch) \ 87 V(IsStringAndBranch) \
89 V(IsSmiAndBranch) \ 88 V(IsSmiAndBranch) \
90 V(IsUndetectableAndBranch) \ 89 V(IsUndetectableAndBranch) \
91 V(Label) \ 90 V(Label) \
92 V(LazyBailout) \ 91 V(LazyBailout) \
93 V(LoadContextSlot) \ 92 V(LoadContextSlot) \
94 V(LoadRoot) \ 93 V(LoadRoot) \
(...skipping 1030 matching lines...) Expand 10 before | Expand all | Expand 10 after
1125 LOperand* left() { return inputs_[1]; } 1124 LOperand* left() { return inputs_[1]; }
1126 LOperand* right() { return inputs_[2]; } 1125 LOperand* right() { return inputs_[2]; }
1127 1126
1128 DECLARE_CONCRETE_INSTRUCTION(CmpT, "cmp-t") 1127 DECLARE_CONCRETE_INSTRUCTION(CmpT, "cmp-t")
1129 DECLARE_HYDROGEN_ACCESSOR(CompareGeneric) 1128 DECLARE_HYDROGEN_ACCESSOR(CompareGeneric)
1130 1129
1131 Token::Value op() const { return hydrogen()->token(); } 1130 Token::Value op() const { return hydrogen()->token(); }
1132 }; 1131 };
1133 1132
1134 1133
1135 class LInstanceOf final : public LTemplateInstruction<1, 3, 0> {
1136 public:
1137 LInstanceOf(LOperand* context, LOperand* left, LOperand* right) {
1138 inputs_[0] = context;
1139 inputs_[1] = left;
1140 inputs_[2] = right;
1141 }
1142
1143 LOperand* context() const { return inputs_[0]; }
1144 LOperand* left() const { return inputs_[1]; }
1145 LOperand* right() const { return inputs_[2]; }
1146
1147 DECLARE_CONCRETE_INSTRUCTION(InstanceOf, "instance-of")
1148 };
1149
1150
1151 class LHasInPrototypeChainAndBranch final : public LControlInstruction<2, 0> { 1134 class LHasInPrototypeChainAndBranch final : public LControlInstruction<2, 0> {
1152 public: 1135 public:
1153 LHasInPrototypeChainAndBranch(LOperand* object, LOperand* prototype) { 1136 LHasInPrototypeChainAndBranch(LOperand* object, LOperand* prototype) {
1154 inputs_[0] = object; 1137 inputs_[0] = object;
1155 inputs_[1] = prototype; 1138 inputs_[1] = prototype;
1156 } 1139 }
1157 1140
1158 LOperand* object() const { return inputs_[0]; } 1141 LOperand* object() const { return inputs_[0]; }
1159 LOperand* prototype() const { return inputs_[1]; } 1142 LOperand* prototype() const { return inputs_[1]; }
1160 1143
(...skipping 1513 matching lines...) Expand 10 before | Expand all | Expand 10 after
2674 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2657 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2675 }; 2658 };
2676 2659
2677 #undef DECLARE_HYDROGEN_ACCESSOR 2660 #undef DECLARE_HYDROGEN_ACCESSOR
2678 #undef DECLARE_CONCRETE_INSTRUCTION 2661 #undef DECLARE_CONCRETE_INSTRUCTION
2679 2662
2680 } // namespace internal 2663 } // namespace internal
2681 } // namespace v8 2664 } // namespace v8
2682 2665
2683 #endif // V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ 2666 #endif // V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_
OLDNEW
« no previous file with comments | « src/crankshaft/mips64/lithium-codegen-mips64.cc ('k') | src/crankshaft/mips64/lithium-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698