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_ARM_LITHIUM_ARM_H_ | 5 #ifndef V8_ARM_LITHIUM_ARM_H_ |
6 #define V8_ARM_LITHIUM_ARM_H_ | 6 #define V8_ARM_LITHIUM_ARM_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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 V(StoreKeyedGeneric) \ | 147 V(StoreKeyedGeneric) \ |
148 V(StoreNamedField) \ | 148 V(StoreNamedField) \ |
149 V(StoreNamedGeneric) \ | 149 V(StoreNamedGeneric) \ |
150 V(StringAdd) \ | 150 V(StringAdd) \ |
151 V(StringCharCodeAt) \ | 151 V(StringCharCodeAt) \ |
152 V(StringCharFromCode) \ | 152 V(StringCharFromCode) \ |
153 V(StringCompareAndBranch) \ | 153 V(StringCompareAndBranch) \ |
154 V(SubI) \ | 154 V(SubI) \ |
155 V(RSubI) \ | 155 V(RSubI) \ |
156 V(TaggedToI) \ | 156 V(TaggedToI) \ |
157 V(TailCallThroughMegamorphicCache) \ | |
158 V(ThisFunction) \ | 157 V(ThisFunction) \ |
159 V(ToFastProperties) \ | 158 V(ToFastProperties) \ |
160 V(TransitionElementsKind) \ | 159 V(TransitionElementsKind) \ |
161 V(TrapAllocationMemento) \ | 160 V(TrapAllocationMemento) \ |
162 V(Typeof) \ | 161 V(Typeof) \ |
163 V(TypeofIsAndBranch) \ | 162 V(TypeofIsAndBranch) \ |
164 V(Uint32ToDouble) \ | 163 V(Uint32ToDouble) \ |
165 V(UnknownOSRValue) \ | 164 V(UnknownOSRValue) \ |
166 V(WrapReceiver) | 165 V(WrapReceiver) |
167 | 166 |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
468 inputs_[0] = context; | 467 inputs_[0] = context; |
469 } | 468 } |
470 | 469 |
471 LOperand* context() { return inputs_[0]; } | 470 LOperand* context() { return inputs_[0]; } |
472 | 471 |
473 DECLARE_CONCRETE_INSTRUCTION(CallStub, "call-stub") | 472 DECLARE_CONCRETE_INSTRUCTION(CallStub, "call-stub") |
474 DECLARE_HYDROGEN_ACCESSOR(CallStub) | 473 DECLARE_HYDROGEN_ACCESSOR(CallStub) |
475 }; | 474 }; |
476 | 475 |
477 | 476 |
478 class LTailCallThroughMegamorphicCache final | |
479 : public LTemplateInstruction<0, 3, 0> { | |
480 public: | |
481 LTailCallThroughMegamorphicCache(LOperand* context, LOperand* receiver, | |
482 LOperand* name) { | |
483 inputs_[0] = context; | |
484 inputs_[1] = receiver; | |
485 inputs_[2] = name; | |
486 } | |
487 | |
488 LOperand* context() { return inputs_[0]; } | |
489 LOperand* receiver() { return inputs_[1]; } | |
490 LOperand* name() { return inputs_[2]; } | |
491 | |
492 DECLARE_CONCRETE_INSTRUCTION(TailCallThroughMegamorphicCache, | |
493 "tail-call-through-megamorphic-cache") | |
494 DECLARE_HYDROGEN_ACCESSOR(TailCallThroughMegamorphicCache) | |
495 }; | |
496 | |
497 | |
498 class LUnknownOSRValue final : public LTemplateInstruction<1, 0, 0> { | 477 class LUnknownOSRValue final : public LTemplateInstruction<1, 0, 0> { |
499 public: | 478 public: |
500 bool HasInterestingComment(LCodeGen* gen) const override { return false; } | 479 bool HasInterestingComment(LCodeGen* gen) const override { return false; } |
501 DECLARE_CONCRETE_INSTRUCTION(UnknownOSRValue, "unknown-osr-value") | 480 DECLARE_CONCRETE_INSTRUCTION(UnknownOSRValue, "unknown-osr-value") |
502 }; | 481 }; |
503 | 482 |
504 | 483 |
505 template<int I, int T> | 484 template<int I, int T> |
506 class LControlInstruction : public LTemplateInstruction<0, I, T> { | 485 class LControlInstruction : public LTemplateInstruction<0, I, T> { |
507 public: | 486 public: |
(...skipping 2388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2896 | 2875 |
2897 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2876 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2898 }; | 2877 }; |
2899 | 2878 |
2900 #undef DECLARE_HYDROGEN_ACCESSOR | 2879 #undef DECLARE_HYDROGEN_ACCESSOR |
2901 #undef DECLARE_CONCRETE_INSTRUCTION | 2880 #undef DECLARE_CONCRETE_INSTRUCTION |
2902 | 2881 |
2903 } } // namespace v8::internal | 2882 } } // namespace v8::internal |
2904 | 2883 |
2905 #endif // V8_ARM_LITHIUM_ARM_H_ | 2884 #endif // V8_ARM_LITHIUM_ARM_H_ |
OLD | NEW |