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_X64_LITHIUM_X64_H_ | 5 #ifndef V8_CRANKSHAFT_X64_LITHIUM_X64_H_ |
6 #define V8_CRANKSHAFT_X64_LITHIUM_X64_H_ | 6 #define V8_CRANKSHAFT_X64_LITHIUM_X64_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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 V(GetCachedArrayIndex) \ | 81 V(GetCachedArrayIndex) \ |
82 V(Goto) \ | 82 V(Goto) \ |
83 V(HasCachedArrayIndexAndBranch) \ | 83 V(HasCachedArrayIndexAndBranch) \ |
84 V(HasInPrototypeChainAndBranch) \ | 84 V(HasInPrototypeChainAndBranch) \ |
85 V(HasInstanceTypeAndBranch) \ | 85 V(HasInstanceTypeAndBranch) \ |
86 V(InnerAllocatedObject) \ | 86 V(InnerAllocatedObject) \ |
87 V(InstanceOf) \ | 87 V(InstanceOf) \ |
88 V(InstructionGap) \ | 88 V(InstructionGap) \ |
89 V(Integer32ToDouble) \ | 89 V(Integer32ToDouble) \ |
90 V(InvokeFunction) \ | 90 V(InvokeFunction) \ |
91 V(IsConstructCallAndBranch) \ | |
92 V(IsStringAndBranch) \ | 91 V(IsStringAndBranch) \ |
93 V(IsSmiAndBranch) \ | 92 V(IsSmiAndBranch) \ |
94 V(IsUndetectableAndBranch) \ | 93 V(IsUndetectableAndBranch) \ |
95 V(Label) \ | 94 V(Label) \ |
96 V(LazyBailout) \ | 95 V(LazyBailout) \ |
97 V(LoadContextSlot) \ | 96 V(LoadContextSlot) \ |
98 V(LoadRoot) \ | 97 V(LoadRoot) \ |
99 V(LoadFieldByIndex) \ | 98 V(LoadFieldByIndex) \ |
100 V(LoadFunctionPrototype) \ | 99 V(LoadFunctionPrototype) \ |
101 V(LoadGlobalGeneric) \ | 100 V(LoadGlobalGeneric) \ |
(...skipping 2395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2497 | 2496 |
2498 DECLARE_CONCRETE_INSTRUCTION(TypeofIsAndBranch, "typeof-is-and-branch") | 2497 DECLARE_CONCRETE_INSTRUCTION(TypeofIsAndBranch, "typeof-is-and-branch") |
2499 DECLARE_HYDROGEN_ACCESSOR(TypeofIsAndBranch) | 2498 DECLARE_HYDROGEN_ACCESSOR(TypeofIsAndBranch) |
2500 | 2499 |
2501 Handle<String> type_literal() { return hydrogen()->type_literal(); } | 2500 Handle<String> type_literal() { return hydrogen()->type_literal(); } |
2502 | 2501 |
2503 void PrintDataTo(StringStream* stream) override; | 2502 void PrintDataTo(StringStream* stream) override; |
2504 }; | 2503 }; |
2505 | 2504 |
2506 | 2505 |
2507 class LIsConstructCallAndBranch final : public LControlInstruction<0, 1> { | |
2508 public: | |
2509 explicit LIsConstructCallAndBranch(LOperand* temp) { | |
2510 temps_[0] = temp; | |
2511 } | |
2512 | |
2513 LOperand* temp() { return temps_[0]; } | |
2514 | |
2515 DECLARE_CONCRETE_INSTRUCTION(IsConstructCallAndBranch, | |
2516 "is-construct-call-and-branch") | |
2517 DECLARE_HYDROGEN_ACCESSOR(IsConstructCallAndBranch) | |
2518 }; | |
2519 | |
2520 | |
2521 class LOsrEntry final : public LTemplateInstruction<0, 0, 0> { | 2506 class LOsrEntry final : public LTemplateInstruction<0, 0, 0> { |
2522 public: | 2507 public: |
2523 LOsrEntry() {} | 2508 LOsrEntry() {} |
2524 | 2509 |
2525 bool HasInterestingComment(LCodeGen* gen) const override { return false; } | 2510 bool HasInterestingComment(LCodeGen* gen) const override { return false; } |
2526 DECLARE_CONCRETE_INSTRUCTION(OsrEntry, "osr-entry") | 2511 DECLARE_CONCRETE_INSTRUCTION(OsrEntry, "osr-entry") |
2527 }; | 2512 }; |
2528 | 2513 |
2529 | 2514 |
2530 class LStackCheck final : public LTemplateInstruction<0, 1, 0> { | 2515 class LStackCheck final : public LTemplateInstruction<0, 1, 0> { |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2787 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2772 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2788 }; | 2773 }; |
2789 | 2774 |
2790 #undef DECLARE_HYDROGEN_ACCESSOR | 2775 #undef DECLARE_HYDROGEN_ACCESSOR |
2791 #undef DECLARE_CONCRETE_INSTRUCTION | 2776 #undef DECLARE_CONCRETE_INSTRUCTION |
2792 | 2777 |
2793 } // namespace internal | 2778 } // namespace internal |
2794 } // namespace v8 | 2779 } // namespace v8 |
2795 | 2780 |
2796 #endif // V8_CRANKSHAFT_X64_LITHIUM_X64_H_ | 2781 #endif // V8_CRANKSHAFT_X64_LITHIUM_X64_H_ |
OLD | NEW |