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_MIPS_LITHIUM_MIPS_H_ | 5 #ifndef V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ |
6 #define V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ | 6 #define V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_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 2385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2487 | 2486 |
2488 DECLARE_CONCRETE_INSTRUCTION(TypeofIsAndBranch, "typeof-is-and-branch") | 2487 DECLARE_CONCRETE_INSTRUCTION(TypeofIsAndBranch, "typeof-is-and-branch") |
2489 DECLARE_HYDROGEN_ACCESSOR(TypeofIsAndBranch) | 2488 DECLARE_HYDROGEN_ACCESSOR(TypeofIsAndBranch) |
2490 | 2489 |
2491 Handle<String> type_literal() { return hydrogen()->type_literal(); } | 2490 Handle<String> type_literal() { return hydrogen()->type_literal(); } |
2492 | 2491 |
2493 void PrintDataTo(StringStream* stream) override; | 2492 void PrintDataTo(StringStream* stream) override; |
2494 }; | 2493 }; |
2495 | 2494 |
2496 | 2495 |
2497 class LIsConstructCallAndBranch final : public LControlInstruction<0, 1> { | |
2498 public: | |
2499 explicit LIsConstructCallAndBranch(LOperand* temp) { | |
2500 temps_[0] = temp; | |
2501 } | |
2502 | |
2503 LOperand* temp() { return temps_[0]; } | |
2504 | |
2505 DECLARE_CONCRETE_INSTRUCTION(IsConstructCallAndBranch, | |
2506 "is-construct-call-and-branch") | |
2507 }; | |
2508 | |
2509 | |
2510 class LOsrEntry final : public LTemplateInstruction<0, 0, 0> { | 2496 class LOsrEntry final : public LTemplateInstruction<0, 0, 0> { |
2511 public: | 2497 public: |
2512 LOsrEntry() {} | 2498 LOsrEntry() {} |
2513 | 2499 |
2514 bool HasInterestingComment(LCodeGen* gen) const override { return false; } | 2500 bool HasInterestingComment(LCodeGen* gen) const override { return false; } |
2515 DECLARE_CONCRETE_INSTRUCTION(OsrEntry, "osr-entry") | 2501 DECLARE_CONCRETE_INSTRUCTION(OsrEntry, "osr-entry") |
2516 }; | 2502 }; |
2517 | 2503 |
2518 | 2504 |
2519 class LStackCheck final : public LTemplateInstruction<0, 1, 0> { | 2505 class LStackCheck final : public LTemplateInstruction<0, 1, 0> { |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2766 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2752 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2767 }; | 2753 }; |
2768 | 2754 |
2769 #undef DECLARE_HYDROGEN_ACCESSOR | 2755 #undef DECLARE_HYDROGEN_ACCESSOR |
2770 #undef DECLARE_CONCRETE_INSTRUCTION | 2756 #undef DECLARE_CONCRETE_INSTRUCTION |
2771 | 2757 |
2772 } // namespace internal | 2758 } // namespace internal |
2773 } // namespace v8 | 2759 } // namespace v8 |
2774 | 2760 |
2775 #endif // V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ | 2761 #endif // V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ |
OLD | NEW |