OLD | NEW |
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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 V(StoreNamedField) \ | 138 V(StoreNamedField) \ |
139 V(StoreNamedGeneric) \ | 139 V(StoreNamedGeneric) \ |
140 V(StringAdd) \ | 140 V(StringAdd) \ |
141 V(StringCharCodeAt) \ | 141 V(StringCharCodeAt) \ |
142 V(StringCharFromCode) \ | 142 V(StringCharFromCode) \ |
143 V(StringCompareAndBranch) \ | 143 V(StringCompareAndBranch) \ |
144 V(SubI) \ | 144 V(SubI) \ |
145 V(SubS) \ | 145 V(SubS) \ |
146 V(TaggedToI) \ | 146 V(TaggedToI) \ |
147 V(ThisFunction) \ | 147 V(ThisFunction) \ |
148 V(ToFastProperties) \ | |
149 V(TransitionElementsKind) \ | 148 V(TransitionElementsKind) \ |
150 V(TrapAllocationMemento) \ | 149 V(TrapAllocationMemento) \ |
151 V(Typeof) \ | 150 V(Typeof) \ |
152 V(TypeofIsAndBranch) \ | 151 V(TypeofIsAndBranch) \ |
153 V(Uint32ToDouble) \ | 152 V(Uint32ToDouble) \ |
154 V(UnknownOSRValue) \ | 153 V(UnknownOSRValue) \ |
155 V(WrapReceiver) | 154 V(WrapReceiver) |
156 | 155 |
157 #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \ | 156 #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \ |
158 Opcode opcode() const final { return LInstruction::k##type; } \ | 157 Opcode opcode() const final { return LInstruction::k##type; } \ |
(...skipping 2224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2383 LOperand* context() { return inputs_[0]; } | 2382 LOperand* context() { return inputs_[0]; } |
2384 LOperand* size() { return inputs_[1]; } | 2383 LOperand* size() { return inputs_[1]; } |
2385 LOperand* temp1() { return temps_[0]; } | 2384 LOperand* temp1() { return temps_[0]; } |
2386 LOperand* temp2() { return temps_[1]; } | 2385 LOperand* temp2() { return temps_[1]; } |
2387 | 2386 |
2388 DECLARE_CONCRETE_INSTRUCTION(Allocate, "allocate") | 2387 DECLARE_CONCRETE_INSTRUCTION(Allocate, "allocate") |
2389 DECLARE_HYDROGEN_ACCESSOR(Allocate) | 2388 DECLARE_HYDROGEN_ACCESSOR(Allocate) |
2390 }; | 2389 }; |
2391 | 2390 |
2392 | 2391 |
2393 class LToFastProperties final : public LTemplateInstruction<1, 1, 0> { | |
2394 public: | |
2395 explicit LToFastProperties(LOperand* value) { | |
2396 inputs_[0] = value; | |
2397 } | |
2398 | |
2399 LOperand* value() { return inputs_[0]; } | |
2400 | |
2401 DECLARE_CONCRETE_INSTRUCTION(ToFastProperties, "to-fast-properties") | |
2402 DECLARE_HYDROGEN_ACCESSOR(ToFastProperties) | |
2403 }; | |
2404 | |
2405 | |
2406 class LTypeof final : public LTemplateInstruction<1, 2, 0> { | 2392 class LTypeof final : public LTemplateInstruction<1, 2, 0> { |
2407 public: | 2393 public: |
2408 LTypeof(LOperand* context, LOperand* value) { | 2394 LTypeof(LOperand* context, LOperand* value) { |
2409 inputs_[0] = context; | 2395 inputs_[0] = context; |
2410 inputs_[1] = value; | 2396 inputs_[1] = value; |
2411 } | 2397 } |
2412 | 2398 |
2413 LOperand* context() { return inputs_[0]; } | 2399 LOperand* context() { return inputs_[0]; } |
2414 LOperand* value() { return inputs_[1]; } | 2400 LOperand* value() { return inputs_[1]; } |
2415 | 2401 |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2676 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2662 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2677 }; | 2663 }; |
2678 | 2664 |
2679 #undef DECLARE_HYDROGEN_ACCESSOR | 2665 #undef DECLARE_HYDROGEN_ACCESSOR |
2680 #undef DECLARE_CONCRETE_INSTRUCTION | 2666 #undef DECLARE_CONCRETE_INSTRUCTION |
2681 | 2667 |
2682 } // namespace internal | 2668 } // namespace internal |
2683 } // namespace v8 | 2669 } // namespace v8 |
2684 | 2670 |
2685 #endif // V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ | 2671 #endif // V8_CRANKSHAFT_MIPS64_LITHIUM_MIPS_H_ |
OLD | NEW |