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

Side by Side Diff: src/crankshaft/mips/lithium-mips.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/crankshaft/mips/lithium-codegen-mips.cc ('k') | src/crankshaft/mips/lithium-mips.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_MIPS_LITHIUM_MIPS_H_ 5 #ifndef V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_
6 #define V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ 6 #define V8_CRANKSHAFT_MIPS_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 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 1014 matching lines...) Expand 10 before | Expand all | Expand 10 after
1107 LOperand* left() { return inputs_[1]; } 1106 LOperand* left() { return inputs_[1]; }
1108 LOperand* right() { return inputs_[2]; } 1107 LOperand* right() { return inputs_[2]; }
1109 1108
1110 DECLARE_CONCRETE_INSTRUCTION(CmpT, "cmp-t") 1109 DECLARE_CONCRETE_INSTRUCTION(CmpT, "cmp-t")
1111 DECLARE_HYDROGEN_ACCESSOR(CompareGeneric) 1110 DECLARE_HYDROGEN_ACCESSOR(CompareGeneric)
1112 1111
1113 Token::Value op() const { return hydrogen()->token(); } 1112 Token::Value op() const { return hydrogen()->token(); }
1114 }; 1113 };
1115 1114
1116 1115
1117 class LInstanceOf final : public LTemplateInstruction<1, 3, 0> {
1118 public:
1119 LInstanceOf(LOperand* context, LOperand* left, LOperand* right) {
1120 inputs_[0] = context;
1121 inputs_[1] = left;
1122 inputs_[2] = right;
1123 }
1124
1125 LOperand* context() const { return inputs_[0]; }
1126 LOperand* left() const { return inputs_[1]; }
1127 LOperand* right() const { return inputs_[2]; }
1128
1129 DECLARE_CONCRETE_INSTRUCTION(InstanceOf, "instance-of")
1130 };
1131
1132
1133 class LHasInPrototypeChainAndBranch final : public LControlInstruction<2, 0> { 1116 class LHasInPrototypeChainAndBranch final : public LControlInstruction<2, 0> {
1134 public: 1117 public:
1135 LHasInPrototypeChainAndBranch(LOperand* object, LOperand* prototype) { 1118 LHasInPrototypeChainAndBranch(LOperand* object, LOperand* prototype) {
1136 inputs_[0] = object; 1119 inputs_[0] = object;
1137 inputs_[1] = prototype; 1120 inputs_[1] = prototype;
1138 } 1121 }
1139 1122
1140 LOperand* object() const { return inputs_[0]; } 1123 LOperand* object() const { return inputs_[0]; }
1141 LOperand* prototype() const { return inputs_[1]; } 1124 LOperand* prototype() const { return inputs_[1]; }
1142 1125
(...skipping 1485 matching lines...) Expand 10 before | Expand all | Expand 10 after
2628 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); 2611 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder);
2629 }; 2612 };
2630 2613
2631 #undef DECLARE_HYDROGEN_ACCESSOR 2614 #undef DECLARE_HYDROGEN_ACCESSOR
2632 #undef DECLARE_CONCRETE_INSTRUCTION 2615 #undef DECLARE_CONCRETE_INSTRUCTION
2633 2616
2634 } // namespace internal 2617 } // namespace internal
2635 } // namespace v8 2618 } // namespace v8
2636 2619
2637 #endif // V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ 2620 #endif // V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_
OLDNEW
« no previous file with comments | « src/crankshaft/mips/lithium-codegen-mips.cc ('k') | src/crankshaft/mips/lithium-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698