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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 V(StoreKeyed) \ | 145 V(StoreKeyed) \ |
146 V(StoreKeyedGeneric) \ | 146 V(StoreKeyedGeneric) \ |
147 V(StoreNamedField) \ | 147 V(StoreNamedField) \ |
148 V(StoreNamedGeneric) \ | 148 V(StoreNamedGeneric) \ |
149 V(StringAdd) \ | 149 V(StringAdd) \ |
150 V(StringCharCodeAt) \ | 150 V(StringCharCodeAt) \ |
151 V(StringCharFromCode) \ | 151 V(StringCharFromCode) \ |
152 V(StringCompareAndBranch) \ | 152 V(StringCompareAndBranch) \ |
153 V(SubI) \ | 153 V(SubI) \ |
154 V(TaggedToI) \ | 154 V(TaggedToI) \ |
155 V(TailCallThroughMegamorphicCache) \ | |
156 V(ThisFunction) \ | 155 V(ThisFunction) \ |
157 V(ToFastProperties) \ | 156 V(ToFastProperties) \ |
158 V(TransitionElementsKind) \ | 157 V(TransitionElementsKind) \ |
159 V(TrapAllocationMemento) \ | 158 V(TrapAllocationMemento) \ |
160 V(Typeof) \ | 159 V(Typeof) \ |
161 V(TypeofIsAndBranch) \ | 160 V(TypeofIsAndBranch) \ |
162 V(Uint32ToDouble) \ | 161 V(Uint32ToDouble) \ |
163 V(UnknownOSRValue) \ | 162 V(UnknownOSRValue) \ |
164 V(WrapReceiver) | 163 V(WrapReceiver) |
165 | 164 |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
465 inputs_[0] = context; | 464 inputs_[0] = context; |
466 } | 465 } |
467 | 466 |
468 LOperand* context() { return inputs_[0]; } | 467 LOperand* context() { return inputs_[0]; } |
469 | 468 |
470 DECLARE_CONCRETE_INSTRUCTION(CallStub, "call-stub") | 469 DECLARE_CONCRETE_INSTRUCTION(CallStub, "call-stub") |
471 DECLARE_HYDROGEN_ACCESSOR(CallStub) | 470 DECLARE_HYDROGEN_ACCESSOR(CallStub) |
472 }; | 471 }; |
473 | 472 |
474 | 473 |
475 class LTailCallThroughMegamorphicCache final | |
476 : public LTemplateInstruction<0, 3, 0> { | |
477 public: | |
478 LTailCallThroughMegamorphicCache(LOperand* context, LOperand* receiver, | |
479 LOperand* name) { | |
480 inputs_[0] = context; | |
481 inputs_[1] = receiver; | |
482 inputs_[2] = name; | |
483 } | |
484 | |
485 LOperand* context() { return inputs_[0]; } | |
486 LOperand* receiver() { return inputs_[1]; } | |
487 LOperand* name() { return inputs_[2]; } | |
488 | |
489 DECLARE_CONCRETE_INSTRUCTION(TailCallThroughMegamorphicCache, | |
490 "tail-call-through-megamorphic-cache") | |
491 DECLARE_HYDROGEN_ACCESSOR(TailCallThroughMegamorphicCache) | |
492 }; | |
493 | |
494 | |
495 class LUnknownOSRValue final : public LTemplateInstruction<1, 0, 0> { | 474 class LUnknownOSRValue final : public LTemplateInstruction<1, 0, 0> { |
496 public: | 475 public: |
497 bool HasInterestingComment(LCodeGen* gen) const override { return false; } | 476 bool HasInterestingComment(LCodeGen* gen) const override { return false; } |
498 DECLARE_CONCRETE_INSTRUCTION(UnknownOSRValue, "unknown-osr-value") | 477 DECLARE_CONCRETE_INSTRUCTION(UnknownOSRValue, "unknown-osr-value") |
499 }; | 478 }; |
500 | 479 |
501 | 480 |
502 template<int I, int T> | 481 template<int I, int T> |
503 class LControlInstruction : public LTemplateInstruction<0, I, T> { | 482 class LControlInstruction : public LTemplateInstruction<0, I, T> { |
504 public: | 483 public: |
(...skipping 2351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2856 | 2835 |
2857 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2836 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2858 }; | 2837 }; |
2859 | 2838 |
2860 #undef DECLARE_HYDROGEN_ACCESSOR | 2839 #undef DECLARE_HYDROGEN_ACCESSOR |
2861 #undef DECLARE_CONCRETE_INSTRUCTION | 2840 #undef DECLARE_CONCRETE_INSTRUCTION |
2862 | 2841 |
2863 } } // namespace v8::internal | 2842 } } // namespace v8::internal |
2864 | 2843 |
2865 #endif // V8_MIPS_LITHIUM_MIPS_H_ | 2844 #endif // V8_MIPS_LITHIUM_MIPS_H_ |
OLD | NEW |