| 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 V(InstanceOf) \ | 106 V(InstanceOf) \ |
| 107 V(InstanceOfKnownGlobal) \ | 107 V(InstanceOfKnownGlobal) \ |
| 108 V(InstanceSize) \ | 108 V(InstanceSize) \ |
| 109 V(InstructionGap) \ | 109 V(InstructionGap) \ |
| 110 V(Integer32ToDouble) \ | 110 V(Integer32ToDouble) \ |
| 111 V(Integer32ToSmi) \ | 111 V(Integer32ToSmi) \ |
| 112 V(InvokeFunction) \ | 112 V(InvokeFunction) \ |
| 113 V(IsConstructCallAndBranch) \ | 113 V(IsConstructCallAndBranch) \ |
| 114 V(IsObjectAndBranch) \ | 114 V(IsObjectAndBranch) \ |
| 115 V(IsStringAndBranch) \ | 115 V(IsStringAndBranch) \ |
| 116 V(IsNumberAndBranch) \ |
| 116 V(IsSmiAndBranch) \ | 117 V(IsSmiAndBranch) \ |
| 117 V(IsUndetectableAndBranch) \ | 118 V(IsUndetectableAndBranch) \ |
| 118 V(Label) \ | 119 V(Label) \ |
| 119 V(LazyBailout) \ | 120 V(LazyBailout) \ |
| 120 V(LoadContextSlot) \ | 121 V(LoadContextSlot) \ |
| 121 V(LoadExternalArrayPointer) \ | 122 V(LoadExternalArrayPointer) \ |
| 122 V(LoadFieldByIndex) \ | 123 V(LoadFieldByIndex) \ |
| 123 V(LoadFunctionPrototype) \ | 124 V(LoadFunctionPrototype) \ |
| 124 V(LoadGlobalCell) \ | 125 V(LoadGlobalCell) \ |
| 125 V(LoadGlobalGeneric) \ | 126 V(LoadGlobalGeneric) \ |
| (...skipping 805 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 931 LOperand* value() { return inputs_[0]; } | 932 LOperand* value() { return inputs_[0]; } |
| 932 LOperand* temp() { return temps_[0]; } | 933 LOperand* temp() { return temps_[0]; } |
| 933 | 934 |
| 934 DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch") | 935 DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch") |
| 935 DECLARE_HYDROGEN_ACCESSOR(IsObjectAndBranch) | 936 DECLARE_HYDROGEN_ACCESSOR(IsObjectAndBranch) |
| 936 | 937 |
| 937 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; | 938 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; |
| 938 }; | 939 }; |
| 939 | 940 |
| 940 | 941 |
| 942 class LIsNumberAndBranch V8_FINAL : public LControlInstruction<1, 0> { |
| 943 public: |
| 944 explicit LIsNumberAndBranch(LOperand* value) { |
| 945 inputs_[0] = value; |
| 946 } |
| 947 |
| 948 LOperand* value() { return inputs_[0]; } |
| 949 |
| 950 DECLARE_CONCRETE_INSTRUCTION(IsNumberAndBranch, "is-number-and-branch") |
| 951 DECLARE_HYDROGEN_ACCESSOR(IsNumberAndBranch) |
| 952 }; |
| 953 |
| 954 |
| 941 class LIsStringAndBranch V8_FINAL : public LControlInstruction<1, 1> { | 955 class LIsStringAndBranch V8_FINAL : public LControlInstruction<1, 1> { |
| 942 public: | 956 public: |
| 943 LIsStringAndBranch(LOperand* value, LOperand* temp) { | 957 LIsStringAndBranch(LOperand* value, LOperand* temp) { |
| 944 inputs_[0] = value; | 958 inputs_[0] = value; |
| 945 temps_[0] = temp; | 959 temps_[0] = temp; |
| 946 } | 960 } |
| 947 | 961 |
| 948 LOperand* value() { return inputs_[0]; } | 962 LOperand* value() { return inputs_[0]; } |
| 949 LOperand* temp() { return temps_[0]; } | 963 LOperand* temp() { return temps_[0]; } |
| 950 | 964 |
| (...skipping 1147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2098 inputs_[0] = value; | 2112 inputs_[0] = value; |
| 2099 temps_[0] = temp; | 2113 temps_[0] = temp; |
| 2100 temps_[1] = temp2; | 2114 temps_[1] = temp2; |
| 2101 } | 2115 } |
| 2102 | 2116 |
| 2103 LOperand* value() { return inputs_[0]; } | 2117 LOperand* value() { return inputs_[0]; } |
| 2104 LOperand* temp() { return temps_[0]; } | 2118 LOperand* temp() { return temps_[0]; } |
| 2105 LOperand* temp2() { return temps_[1]; } | 2119 LOperand* temp2() { return temps_[1]; } |
| 2106 | 2120 |
| 2107 DECLARE_CONCRETE_INSTRUCTION(TaggedToI, "tagged-to-i") | 2121 DECLARE_CONCRETE_INSTRUCTION(TaggedToI, "tagged-to-i") |
| 2108 DECLARE_HYDROGEN_ACCESSOR(Change) | 2122 DECLARE_HYDROGEN_ACCESSOR(UnaryOperation) |
| 2109 | 2123 |
| 2110 bool truncating() { return hydrogen()->CanTruncateToInt32(); } | 2124 bool truncating() { return hydrogen()->CanTruncateToInt32(); } |
| 2111 }; | 2125 }; |
| 2112 | 2126 |
| 2113 | 2127 |
| 2114 class LSmiTag V8_FINAL : public LTemplateInstruction<1, 1, 0> { | 2128 class LSmiTag V8_FINAL : public LTemplateInstruction<1, 1, 0> { |
| 2115 public: | 2129 public: |
| 2116 explicit LSmiTag(LOperand* value) { | 2130 explicit LSmiTag(LOperand* value) { |
| 2117 inputs_[0] = value; | 2131 inputs_[0] = value; |
| 2118 } | 2132 } |
| (...skipping 638 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2757 int* argument_index_accumulator, | 2771 int* argument_index_accumulator, |
| 2758 ZoneList<HValue*>* objects_to_materialize); | 2772 ZoneList<HValue*>* objects_to_materialize); |
| 2759 | 2773 |
| 2760 void VisitInstruction(HInstruction* current); | 2774 void VisitInstruction(HInstruction* current); |
| 2761 | 2775 |
| 2762 void DoBasicBlock(HBasicBlock* block, HBasicBlock* next_block); | 2776 void DoBasicBlock(HBasicBlock* block, HBasicBlock* next_block); |
| 2763 LInstruction* DoShift(Token::Value op, HBitwiseBinaryOperation* instr); | 2777 LInstruction* DoShift(Token::Value op, HBitwiseBinaryOperation* instr); |
| 2764 LInstruction* DoArithmeticD(Token::Value op, | 2778 LInstruction* DoArithmeticD(Token::Value op, |
| 2765 HArithmeticBinaryOperation* instr); | 2779 HArithmeticBinaryOperation* instr); |
| 2766 LInstruction* DoArithmeticT(Token::Value op, | 2780 LInstruction* DoArithmeticT(Token::Value op, |
| 2767 HBinaryOperation* instr); | 2781 HArithmeticBinaryOperation* instr); |
| 2768 | 2782 |
| 2769 LPlatformChunk* chunk_; | 2783 LPlatformChunk* chunk_; |
| 2770 CompilationInfo* info_; | 2784 CompilationInfo* info_; |
| 2771 HGraph* const graph_; | 2785 HGraph* const graph_; |
| 2772 Zone* zone_; | 2786 Zone* zone_; |
| 2773 Status status_; | 2787 Status status_; |
| 2774 HInstruction* current_instruction_; | 2788 HInstruction* current_instruction_; |
| 2775 HBasicBlock* current_block_; | 2789 HBasicBlock* current_block_; |
| 2776 HBasicBlock* next_block_; | 2790 HBasicBlock* next_block_; |
| 2777 int argument_count_; | 2791 int argument_count_; |
| 2778 LAllocator* allocator_; | 2792 LAllocator* allocator_; |
| 2779 int position_; | 2793 int position_; |
| 2780 LInstruction* instruction_pending_deoptimization_environment_; | 2794 LInstruction* instruction_pending_deoptimization_environment_; |
| 2781 BailoutId pending_deoptimization_ast_id_; | 2795 BailoutId pending_deoptimization_ast_id_; |
| 2782 | 2796 |
| 2783 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2797 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2784 }; | 2798 }; |
| 2785 | 2799 |
| 2786 #undef DECLARE_HYDROGEN_ACCESSOR | 2800 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2787 #undef DECLARE_CONCRETE_INSTRUCTION | 2801 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2788 | 2802 |
| 2789 } } // namespace v8::internal | 2803 } } // namespace v8::internal |
| 2790 | 2804 |
| 2791 #endif // V8_ARM_LITHIUM_ARM_H_ | 2805 #endif // V8_ARM_LITHIUM_ARM_H_ |
| OLD | NEW |