OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_PPC_LITHIUM_PPC_H_ | 5 #ifndef V8_PPC_LITHIUM_PPC_H_ |
6 #define V8_PPC_LITHIUM_PPC_H_ | 6 #define V8_PPC_LITHIUM_PPC_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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 V(DoubleToI) \ | 72 V(DoubleToI) \ |
73 V(DoubleToSmi) \ | 73 V(DoubleToSmi) \ |
74 V(Drop) \ | 74 V(Drop) \ |
75 V(Dummy) \ | 75 V(Dummy) \ |
76 V(DummyUse) \ | 76 V(DummyUse) \ |
77 V(FlooringDivByConstI) \ | 77 V(FlooringDivByConstI) \ |
78 V(FlooringDivByPowerOf2I) \ | 78 V(FlooringDivByPowerOf2I) \ |
79 V(FlooringDivI) \ | 79 V(FlooringDivI) \ |
80 V(ForInCacheArray) \ | 80 V(ForInCacheArray) \ |
81 V(ForInPrepareMap) \ | 81 V(ForInPrepareMap) \ |
82 V(FunctionLiteral) \ | |
83 V(GetCachedArrayIndex) \ | 82 V(GetCachedArrayIndex) \ |
84 V(Goto) \ | 83 V(Goto) \ |
85 V(HasCachedArrayIndexAndBranch) \ | 84 V(HasCachedArrayIndexAndBranch) \ |
86 V(HasInPrototypeChainAndBranch) \ | 85 V(HasInPrototypeChainAndBranch) \ |
87 V(HasInstanceTypeAndBranch) \ | 86 V(HasInstanceTypeAndBranch) \ |
88 V(InnerAllocatedObject) \ | 87 V(InnerAllocatedObject) \ |
89 V(InstanceOf) \ | 88 V(InstanceOf) \ |
90 V(InstructionGap) \ | 89 V(InstructionGap) \ |
91 V(Integer32ToDouble) \ | 90 V(Integer32ToDouble) \ |
92 V(InvokeFunction) \ | 91 V(InvokeFunction) \ |
(...skipping 2360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2453 public: | 2452 public: |
2454 explicit LRegExpLiteral(LOperand* context) { inputs_[0] = context; } | 2453 explicit LRegExpLiteral(LOperand* context) { inputs_[0] = context; } |
2455 | 2454 |
2456 LOperand* context() { return inputs_[0]; } | 2455 LOperand* context() { return inputs_[0]; } |
2457 | 2456 |
2458 DECLARE_CONCRETE_INSTRUCTION(RegExpLiteral, "regexp-literal") | 2457 DECLARE_CONCRETE_INSTRUCTION(RegExpLiteral, "regexp-literal") |
2459 DECLARE_HYDROGEN_ACCESSOR(RegExpLiteral) | 2458 DECLARE_HYDROGEN_ACCESSOR(RegExpLiteral) |
2460 }; | 2459 }; |
2461 | 2460 |
2462 | 2461 |
2463 class LFunctionLiteral final : public LTemplateInstruction<1, 1, 0> { | |
2464 public: | |
2465 explicit LFunctionLiteral(LOperand* context) { inputs_[0] = context; } | |
2466 | |
2467 LOperand* context() { return inputs_[0]; } | |
2468 | |
2469 DECLARE_CONCRETE_INSTRUCTION(FunctionLiteral, "function-literal") | |
2470 DECLARE_HYDROGEN_ACCESSOR(FunctionLiteral) | |
2471 }; | |
2472 | |
2473 | |
2474 class LToFastProperties final : public LTemplateInstruction<1, 1, 0> { | 2462 class LToFastProperties final : public LTemplateInstruction<1, 1, 0> { |
2475 public: | 2463 public: |
2476 explicit LToFastProperties(LOperand* value) { inputs_[0] = value; } | 2464 explicit LToFastProperties(LOperand* value) { inputs_[0] = value; } |
2477 | 2465 |
2478 LOperand* value() { return inputs_[0]; } | 2466 LOperand* value() { return inputs_[0]; } |
2479 | 2467 |
2480 DECLARE_CONCRETE_INSTRUCTION(ToFastProperties, "to-fast-properties") | 2468 DECLARE_CONCRETE_INSTRUCTION(ToFastProperties, "to-fast-properties") |
2481 DECLARE_HYDROGEN_ACCESSOR(ToFastProperties) | 2469 DECLARE_HYDROGEN_ACCESSOR(ToFastProperties) |
2482 }; | 2470 }; |
2483 | 2471 |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2769 | 2757 |
2770 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2758 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2771 }; | 2759 }; |
2772 | 2760 |
2773 #undef DECLARE_HYDROGEN_ACCESSOR | 2761 #undef DECLARE_HYDROGEN_ACCESSOR |
2774 #undef DECLARE_CONCRETE_INSTRUCTION | 2762 #undef DECLARE_CONCRETE_INSTRUCTION |
2775 } | 2763 } |
2776 } // namespace v8::internal | 2764 } // namespace v8::internal |
2777 | 2765 |
2778 #endif // V8_PPC_LITHIUM_PPC_H_ | 2766 #endif // V8_PPC_LITHIUM_PPC_H_ |
OLD | NEW |