| 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_MIPS_LITHIUM_MIPS_H_ | 5 #ifndef V8_MIPS_LITHIUM_MIPS_H_ |
| 6 #define V8_MIPS_LITHIUM_MIPS_H_ | 6 #define V8_MIPS_LITHIUM_MIPS_H_ |
| 7 | 7 |
| 8 #include "src/hydrogen.h" | 8 #include "src/hydrogen.h" |
| 9 #include "src/lithium.h" | 9 #include "src/lithium.h" |
| 10 #include "src/lithium-allocator.h" | 10 #include "src/lithium-allocator.h" |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 V(StoreKeyed) \ | 144 V(StoreKeyed) \ |
| 145 V(StoreKeyedGeneric) \ | 145 V(StoreKeyedGeneric) \ |
| 146 V(StoreNamedField) \ | 146 V(StoreNamedField) \ |
| 147 V(StoreNamedGeneric) \ | 147 V(StoreNamedGeneric) \ |
| 148 V(StringAdd) \ | 148 V(StringAdd) \ |
| 149 V(StringCharCodeAt) \ | 149 V(StringCharCodeAt) \ |
| 150 V(StringCharFromCode) \ | 150 V(StringCharFromCode) \ |
| 151 V(StringCompareAndBranch) \ | 151 V(StringCompareAndBranch) \ |
| 152 V(SubI) \ | 152 V(SubI) \ |
| 153 V(TaggedToI) \ | 153 V(TaggedToI) \ |
| 154 V(TailCallThroughMegamorphicCache) \ | |
| 155 V(ThisFunction) \ | 154 V(ThisFunction) \ |
| 156 V(ToFastProperties) \ | 155 V(ToFastProperties) \ |
| 157 V(TransitionElementsKind) \ | 156 V(TransitionElementsKind) \ |
| 158 V(TrapAllocationMemento) \ | 157 V(TrapAllocationMemento) \ |
| 159 V(Typeof) \ | 158 V(Typeof) \ |
| 160 V(TypeofIsAndBranch) \ | 159 V(TypeofIsAndBranch) \ |
| 161 V(Uint32ToDouble) \ | 160 V(Uint32ToDouble) \ |
| 162 V(UnknownOSRValue) \ | 161 V(UnknownOSRValue) \ |
| 163 V(WrapReceiver) | 162 V(WrapReceiver) |
| 164 | 163 |
| (...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 464 inputs_[0] = context; | 463 inputs_[0] = context; |
| 465 } | 464 } |
| 466 | 465 |
| 467 LOperand* context() { return inputs_[0]; } | 466 LOperand* context() { return inputs_[0]; } |
| 468 | 467 |
| 469 DECLARE_CONCRETE_INSTRUCTION(CallStub, "call-stub") | 468 DECLARE_CONCRETE_INSTRUCTION(CallStub, "call-stub") |
| 470 DECLARE_HYDROGEN_ACCESSOR(CallStub) | 469 DECLARE_HYDROGEN_ACCESSOR(CallStub) |
| 471 }; | 470 }; |
| 472 | 471 |
| 473 | 472 |
| 474 class LTailCallThroughMegamorphicCache final | |
| 475 : public LTemplateInstruction<0, 3, 0> { | |
| 476 public: | |
| 477 LTailCallThroughMegamorphicCache(LOperand* context, LOperand* receiver, | |
| 478 LOperand* name) { | |
| 479 inputs_[0] = context; | |
| 480 inputs_[1] = receiver; | |
| 481 inputs_[2] = name; | |
| 482 } | |
| 483 | |
| 484 LOperand* context() { return inputs_[0]; } | |
| 485 LOperand* receiver() { return inputs_[1]; } | |
| 486 LOperand* name() { return inputs_[2]; } | |
| 487 | |
| 488 DECLARE_CONCRETE_INSTRUCTION(TailCallThroughMegamorphicCache, | |
| 489 "tail-call-through-megamorphic-cache") | |
| 490 DECLARE_HYDROGEN_ACCESSOR(TailCallThroughMegamorphicCache) | |
| 491 }; | |
| 492 | |
| 493 | |
| 494 class LUnknownOSRValue final : public LTemplateInstruction<1, 0, 0> { | 473 class LUnknownOSRValue final : public LTemplateInstruction<1, 0, 0> { |
| 495 public: | 474 public: |
| 496 bool HasInterestingComment(LCodeGen* gen) const override { return false; } | 475 bool HasInterestingComment(LCodeGen* gen) const override { return false; } |
| 497 DECLARE_CONCRETE_INSTRUCTION(UnknownOSRValue, "unknown-osr-value") | 476 DECLARE_CONCRETE_INSTRUCTION(UnknownOSRValue, "unknown-osr-value") |
| 498 }; | 477 }; |
| 499 | 478 |
| 500 | 479 |
| 501 template<int I, int T> | 480 template<int I, int T> |
| 502 class LControlInstruction : public LTemplateInstruction<0, I, T> { | 481 class LControlInstruction : public LTemplateInstruction<0, I, T> { |
| 503 public: | 482 public: |
| (...skipping 2334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2838 | 2817 |
| 2839 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2818 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2840 }; | 2819 }; |
| 2841 | 2820 |
| 2842 #undef DECLARE_HYDROGEN_ACCESSOR | 2821 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2843 #undef DECLARE_CONCRETE_INSTRUCTION | 2822 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2844 | 2823 |
| 2845 } } // namespace v8::internal | 2824 } } // namespace v8::internal |
| 2846 | 2825 |
| 2847 #endif // V8_MIPS_LITHIUM_MIPS_H_ | 2826 #endif // V8_MIPS_LITHIUM_MIPS_H_ |
| OLD | NEW |