| 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_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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 V(StoreKeyedGeneric) \ | 135 V(StoreKeyedGeneric) \ |
| 136 V(StoreNamedField) \ | 136 V(StoreNamedField) \ |
| 137 V(StoreNamedGeneric) \ | 137 V(StoreNamedGeneric) \ |
| 138 V(StringAdd) \ | 138 V(StringAdd) \ |
| 139 V(StringCharCodeAt) \ | 139 V(StringCharCodeAt) \ |
| 140 V(StringCharFromCode) \ | 140 V(StringCharFromCode) \ |
| 141 V(StringCompareAndBranch) \ | 141 V(StringCompareAndBranch) \ |
| 142 V(SubI) \ | 142 V(SubI) \ |
| 143 V(TaggedToI) \ | 143 V(TaggedToI) \ |
| 144 V(ThisFunction) \ | 144 V(ThisFunction) \ |
| 145 V(ToFastProperties) \ | |
| 146 V(TransitionElementsKind) \ | 145 V(TransitionElementsKind) \ |
| 147 V(TrapAllocationMemento) \ | 146 V(TrapAllocationMemento) \ |
| 148 V(Typeof) \ | 147 V(Typeof) \ |
| 149 V(TypeofIsAndBranch) \ | 148 V(TypeofIsAndBranch) \ |
| 150 V(Uint32ToDouble) \ | 149 V(Uint32ToDouble) \ |
| 151 V(UnknownOSRValue) \ | 150 V(UnknownOSRValue) \ |
| 152 V(WrapReceiver) | 151 V(WrapReceiver) |
| 153 | 152 |
| 154 #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \ | 153 #define DECLARE_CONCRETE_INSTRUCTION(type, mnemonic) \ |
| 155 Opcode opcode() const final { return LInstruction::k##type; } \ | 154 Opcode opcode() const final { return LInstruction::k##type; } \ |
| (...skipping 2181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2337 LOperand* context() { return inputs_[0]; } | 2336 LOperand* context() { return inputs_[0]; } |
| 2338 LOperand* size() { return inputs_[1]; } | 2337 LOperand* size() { return inputs_[1]; } |
| 2339 LOperand* temp1() { return temps_[0]; } | 2338 LOperand* temp1() { return temps_[0]; } |
| 2340 LOperand* temp2() { return temps_[1]; } | 2339 LOperand* temp2() { return temps_[1]; } |
| 2341 | 2340 |
| 2342 DECLARE_CONCRETE_INSTRUCTION(Allocate, "allocate") | 2341 DECLARE_CONCRETE_INSTRUCTION(Allocate, "allocate") |
| 2343 DECLARE_HYDROGEN_ACCESSOR(Allocate) | 2342 DECLARE_HYDROGEN_ACCESSOR(Allocate) |
| 2344 }; | 2343 }; |
| 2345 | 2344 |
| 2346 | 2345 |
| 2347 class LToFastProperties final : public LTemplateInstruction<1, 1, 0> { | |
| 2348 public: | |
| 2349 explicit LToFastProperties(LOperand* value) { | |
| 2350 inputs_[0] = value; | |
| 2351 } | |
| 2352 | |
| 2353 LOperand* value() { return inputs_[0]; } | |
| 2354 | |
| 2355 DECLARE_CONCRETE_INSTRUCTION(ToFastProperties, "to-fast-properties") | |
| 2356 DECLARE_HYDROGEN_ACCESSOR(ToFastProperties) | |
| 2357 }; | |
| 2358 | |
| 2359 | |
| 2360 class LTypeof final : public LTemplateInstruction<1, 2, 0> { | 2346 class LTypeof final : public LTemplateInstruction<1, 2, 0> { |
| 2361 public: | 2347 public: |
| 2362 LTypeof(LOperand* context, LOperand* value) { | 2348 LTypeof(LOperand* context, LOperand* value) { |
| 2363 inputs_[0] = context; | 2349 inputs_[0] = context; |
| 2364 inputs_[1] = value; | 2350 inputs_[1] = value; |
| 2365 } | 2351 } |
| 2366 | 2352 |
| 2367 LOperand* context() { return inputs_[0]; } | 2353 LOperand* context() { return inputs_[0]; } |
| 2368 LOperand* value() { return inputs_[1]; } | 2354 LOperand* value() { return inputs_[1]; } |
| 2369 | 2355 |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2630 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2616 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2631 }; | 2617 }; |
| 2632 | 2618 |
| 2633 #undef DECLARE_HYDROGEN_ACCESSOR | 2619 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2634 #undef DECLARE_CONCRETE_INSTRUCTION | 2620 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2635 | 2621 |
| 2636 } // namespace internal | 2622 } // namespace internal |
| 2637 } // namespace v8 | 2623 } // namespace v8 |
| 2638 | 2624 |
| 2639 #endif // V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ | 2625 #endif // V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ |
| OLD | NEW |