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_X64_LITHIUM_X64_H_ | 5 #ifndef V8_X64_LITHIUM_X64_H_ |
6 #define V8_X64_LITHIUM_X64_H_ | 6 #define V8_X64_LITHIUM_X64_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 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
472 inputs_[0] = context; | 471 inputs_[0] = context; |
473 } | 472 } |
474 | 473 |
475 LOperand* context() { return inputs_[0]; } | 474 LOperand* context() { return inputs_[0]; } |
476 | 475 |
477 DECLARE_CONCRETE_INSTRUCTION(CallStub, "call-stub") | 476 DECLARE_CONCRETE_INSTRUCTION(CallStub, "call-stub") |
478 DECLARE_HYDROGEN_ACCESSOR(CallStub) | 477 DECLARE_HYDROGEN_ACCESSOR(CallStub) |
479 }; | 478 }; |
480 | 479 |
481 | 480 |
482 class LTailCallThroughMegamorphicCache final | |
483 : public LTemplateInstruction<0, 3, 0> { | |
484 public: | |
485 explicit LTailCallThroughMegamorphicCache(LOperand* context, | |
486 LOperand* receiver, | |
487 LOperand* name) { | |
488 inputs_[0] = context; | |
489 inputs_[1] = receiver; | |
490 inputs_[2] = name; | |
491 } | |
492 | |
493 LOperand* context() { return inputs_[0]; } | |
494 LOperand* receiver() { return inputs_[1]; } | |
495 LOperand* name() { return inputs_[2]; } | |
496 | |
497 DECLARE_CONCRETE_INSTRUCTION(TailCallThroughMegamorphicCache, | |
498 "tail-call-through-megamorphic-cache") | |
499 DECLARE_HYDROGEN_ACCESSOR(TailCallThroughMegamorphicCache) | |
500 }; | |
501 | |
502 | |
503 class LUnknownOSRValue final : public LTemplateInstruction<1, 0, 0> { | 481 class LUnknownOSRValue final : public LTemplateInstruction<1, 0, 0> { |
504 public: | 482 public: |
505 bool HasInterestingComment(LCodeGen* gen) const override { return false; } | 483 bool HasInterestingComment(LCodeGen* gen) const override { return false; } |
506 DECLARE_CONCRETE_INSTRUCTION(UnknownOSRValue, "unknown-osr-value") | 484 DECLARE_CONCRETE_INSTRUCTION(UnknownOSRValue, "unknown-osr-value") |
507 }; | 485 }; |
508 | 486 |
509 | 487 |
510 template<int I, int T> | 488 template<int I, int T> |
511 class LControlInstruction : public LTemplateInstruction<0, I, T> { | 489 class LControlInstruction : public LTemplateInstruction<0, I, T> { |
512 public: | 490 public: |
(...skipping 2365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2878 | 2856 |
2879 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2857 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2880 }; | 2858 }; |
2881 | 2859 |
2882 #undef DECLARE_HYDROGEN_ACCESSOR | 2860 #undef DECLARE_HYDROGEN_ACCESSOR |
2883 #undef DECLARE_CONCRETE_INSTRUCTION | 2861 #undef DECLARE_CONCRETE_INSTRUCTION |
2884 | 2862 |
2885 } } // namespace v8::int | 2863 } } // namespace v8::int |
2886 | 2864 |
2887 #endif // V8_X64_LITHIUM_X64_H_ | 2865 #endif // V8_X64_LITHIUM_X64_H_ |
OLD | NEW |