OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 V(CmpObjectEqAndBranch) \ | 85 V(CmpObjectEqAndBranch) \ |
86 V(CmpMapAndBranch) \ | 86 V(CmpMapAndBranch) \ |
87 V(CmpT) \ | 87 V(CmpT) \ |
88 V(ConstantD) \ | 88 V(ConstantD) \ |
89 V(ConstantI) \ | 89 V(ConstantI) \ |
90 V(ConstantS) \ | 90 V(ConstantS) \ |
91 V(ConstantT) \ | 91 V(ConstantT) \ |
92 V(Context) \ | 92 V(Context) \ |
93 V(DebugBreak) \ | 93 V(DebugBreak) \ |
94 V(DeclareGlobals) \ | 94 V(DeclareGlobals) \ |
95 V(DeleteProperty) \ | |
96 V(Deoptimize) \ | 95 V(Deoptimize) \ |
97 V(DivI) \ | 96 V(DivI) \ |
98 V(DoubleToI) \ | 97 V(DoubleToI) \ |
99 V(DoubleToSmi) \ | 98 V(DoubleToSmi) \ |
100 V(DummyUse) \ | 99 V(DummyUse) \ |
101 V(ElementsKind) \ | 100 V(ElementsKind) \ |
102 V(FunctionLiteral) \ | 101 V(FunctionLiteral) \ |
103 V(GetCachedArrayIndex) \ | 102 V(GetCachedArrayIndex) \ |
104 V(GlobalObject) \ | 103 V(GlobalObject) \ |
105 V(GlobalReceiver) \ | 104 V(GlobalReceiver) \ |
106 V(Goto) \ | 105 V(Goto) \ |
107 V(HasCachedArrayIndexAndBranch) \ | 106 V(HasCachedArrayIndexAndBranch) \ |
108 V(HasInstanceTypeAndBranch) \ | 107 V(HasInstanceTypeAndBranch) \ |
109 V(In) \ | |
110 V(InstanceOf) \ | 108 V(InstanceOf) \ |
111 V(InstanceOfKnownGlobal) \ | 109 V(InstanceOfKnownGlobal) \ |
112 V(InstanceSize) \ | 110 V(InstanceSize) \ |
113 V(InstructionGap) \ | 111 V(InstructionGap) \ |
114 V(Integer32ToDouble) \ | 112 V(Integer32ToDouble) \ |
115 V(Integer32ToSmi) \ | 113 V(Integer32ToSmi) \ |
116 V(Uint32ToDouble) \ | 114 V(Uint32ToDouble) \ |
117 V(InvokeFunction) \ | 115 V(InvokeFunction) \ |
118 V(IsConstructCallAndBranch) \ | 116 V(IsConstructCallAndBranch) \ |
119 V(IsObjectAndBranch) \ | 117 V(IsObjectAndBranch) \ |
(...skipping 2439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2559 temps_[0] = temp; | 2557 temps_[0] = temp; |
2560 } | 2558 } |
2561 | 2559 |
2562 LOperand* temp() { return temps_[0]; } | 2560 LOperand* temp() { return temps_[0]; } |
2563 | 2561 |
2564 DECLARE_CONCRETE_INSTRUCTION(IsConstructCallAndBranch, | 2562 DECLARE_CONCRETE_INSTRUCTION(IsConstructCallAndBranch, |
2565 "is-construct-call-and-branch") | 2563 "is-construct-call-and-branch") |
2566 }; | 2564 }; |
2567 | 2565 |
2568 | 2566 |
2569 class LDeleteProperty: public LTemplateInstruction<1, 2, 0> { | |
2570 public: | |
2571 LDeleteProperty(LOperand* object, LOperand* key) { | |
2572 inputs_[0] = object; | |
2573 inputs_[1] = key; | |
2574 } | |
2575 | |
2576 LOperand* object() { return inputs_[0]; } | |
2577 LOperand* key() { return inputs_[1]; } | |
2578 | |
2579 DECLARE_CONCRETE_INSTRUCTION(DeleteProperty, "delete-property") | |
2580 }; | |
2581 | |
2582 | |
2583 class LOsrEntry: public LTemplateInstruction<0, 0, 0> { | 2567 class LOsrEntry: public LTemplateInstruction<0, 0, 0> { |
2584 public: | 2568 public: |
2585 LOsrEntry() {} | 2569 LOsrEntry() {} |
2586 | 2570 |
2587 virtual bool HasInterestingComment(LCodeGen* gen) const { return false; } | 2571 virtual bool HasInterestingComment(LCodeGen* gen) const { return false; } |
2588 DECLARE_CONCRETE_INSTRUCTION(OsrEntry, "osr-entry") | 2572 DECLARE_CONCRETE_INSTRUCTION(OsrEntry, "osr-entry") |
2589 }; | 2573 }; |
2590 | 2574 |
2591 | 2575 |
2592 class LStackCheck: public LTemplateInstruction<0, 0, 0> { | 2576 class LStackCheck: public LTemplateInstruction<0, 0, 0> { |
2593 public: | 2577 public: |
2594 DECLARE_CONCRETE_INSTRUCTION(StackCheck, "stack-check") | 2578 DECLARE_CONCRETE_INSTRUCTION(StackCheck, "stack-check") |
2595 DECLARE_HYDROGEN_ACCESSOR(StackCheck) | 2579 DECLARE_HYDROGEN_ACCESSOR(StackCheck) |
2596 | 2580 |
2597 Label* done_label() { return &done_label_; } | 2581 Label* done_label() { return &done_label_; } |
2598 | 2582 |
2599 private: | 2583 private: |
2600 Label done_label_; | 2584 Label done_label_; |
2601 }; | 2585 }; |
2602 | 2586 |
2603 | 2587 |
2604 class LIn: public LTemplateInstruction<1, 2, 0> { | |
2605 public: | |
2606 LIn(LOperand* key, LOperand* object) { | |
2607 inputs_[0] = key; | |
2608 inputs_[1] = object; | |
2609 } | |
2610 | |
2611 LOperand* key() { return inputs_[0]; } | |
2612 LOperand* object() { return inputs_[1]; } | |
2613 | |
2614 DECLARE_CONCRETE_INSTRUCTION(In, "in") | |
2615 }; | |
2616 | |
2617 | |
2618 class LForInPrepareMap: public LTemplateInstruction<1, 1, 0> { | 2588 class LForInPrepareMap: public LTemplateInstruction<1, 1, 0> { |
2619 public: | 2589 public: |
2620 explicit LForInPrepareMap(LOperand* object) { | 2590 explicit LForInPrepareMap(LOperand* object) { |
2621 inputs_[0] = object; | 2591 inputs_[0] = object; |
2622 } | 2592 } |
2623 | 2593 |
2624 LOperand* object() { return inputs_[0]; } | 2594 LOperand* object() { return inputs_[0]; } |
2625 | 2595 |
2626 DECLARE_CONCRETE_INSTRUCTION(ForInPrepareMap, "for-in-prepare-map") | 2596 DECLARE_CONCRETE_INSTRUCTION(ForInPrepareMap, "for-in-prepare-map") |
2627 }; | 2597 }; |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2852 | 2822 |
2853 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2823 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2854 }; | 2824 }; |
2855 | 2825 |
2856 #undef DECLARE_HYDROGEN_ACCESSOR | 2826 #undef DECLARE_HYDROGEN_ACCESSOR |
2857 #undef DECLARE_CONCRETE_INSTRUCTION | 2827 #undef DECLARE_CONCRETE_INSTRUCTION |
2858 | 2828 |
2859 } } // namespace v8::internal | 2829 } } // namespace v8::internal |
2860 | 2830 |
2861 #endif // V8_ARM_LITHIUM_ARM_H_ | 2831 #endif // V8_ARM_LITHIUM_ARM_H_ |
OLD | NEW |