| 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 802 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 928 LOperand* value() { return inputs_[0]; } | 929 LOperand* value() { return inputs_[0]; } |
| 929 LOperand* temp() { return temps_[0]; } | 930 LOperand* temp() { return temps_[0]; } |
| 930 | 931 |
| 931 DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch") | 932 DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch") |
| 932 DECLARE_HYDROGEN_ACCESSOR(IsObjectAndBranch) | 933 DECLARE_HYDROGEN_ACCESSOR(IsObjectAndBranch) |
| 933 | 934 |
| 934 virtual void PrintDataTo(StringStream* stream); | 935 virtual void PrintDataTo(StringStream* stream); |
| 935 }; | 936 }; |
| 936 | 937 |
| 937 | 938 |
| 939 class LIsNumberAndBranch V8_FINAL : public LControlInstruction<1, 0> { |
| 940 public: |
| 941 explicit LIsNumberAndBranch(LOperand* value) { |
| 942 inputs_[0] = value; |
| 943 } |
| 944 |
| 945 LOperand* value() { return inputs_[0]; } |
| 946 |
| 947 DECLARE_CONCRETE_INSTRUCTION(IsNumberAndBranch, "is-number-and-branch") |
| 948 DECLARE_HYDROGEN_ACCESSOR(IsNumberAndBranch) |
| 949 }; |
| 950 |
| 951 |
| 938 class LIsStringAndBranch V8_FINAL : public LControlInstruction<1, 1> { | 952 class LIsStringAndBranch V8_FINAL : public LControlInstruction<1, 1> { |
| 939 public: | 953 public: |
| 940 LIsStringAndBranch(LOperand* value, LOperand* temp) { | 954 LIsStringAndBranch(LOperand* value, LOperand* temp) { |
| 941 inputs_[0] = value; | 955 inputs_[0] = value; |
| 942 temps_[0] = temp; | 956 temps_[0] = temp; |
| 943 } | 957 } |
| 944 | 958 |
| 945 LOperand* value() { return inputs_[0]; } | 959 LOperand* value() { return inputs_[0]; } |
| 946 LOperand* temp() { return temps_[0]; } | 960 LOperand* temp() { return temps_[0]; } |
| 947 | 961 |
| (...skipping 1130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2078 inputs_[0] = value; | 2092 inputs_[0] = value; |
| 2079 temps_[0] = temp; | 2093 temps_[0] = temp; |
| 2080 temps_[1] = temp2; | 2094 temps_[1] = temp2; |
| 2081 } | 2095 } |
| 2082 | 2096 |
| 2083 LOperand* value() { return inputs_[0]; } | 2097 LOperand* value() { return inputs_[0]; } |
| 2084 LOperand* temp() { return temps_[0]; } | 2098 LOperand* temp() { return temps_[0]; } |
| 2085 LOperand* temp2() { return temps_[1]; } | 2099 LOperand* temp2() { return temps_[1]; } |
| 2086 | 2100 |
| 2087 DECLARE_CONCRETE_INSTRUCTION(TaggedToI, "tagged-to-i") | 2101 DECLARE_CONCRETE_INSTRUCTION(TaggedToI, "tagged-to-i") |
| 2088 DECLARE_HYDROGEN_ACCESSOR(Change) | 2102 DECLARE_HYDROGEN_ACCESSOR(UnaryOperation) |
| 2089 | 2103 |
| 2090 bool truncating() { return hydrogen()->CanTruncateToInt32(); } | 2104 bool truncating() { return hydrogen()->CanTruncateToInt32(); } |
| 2091 }; | 2105 }; |
| 2092 | 2106 |
| 2093 | 2107 |
| 2094 class LSmiTag V8_FINAL : public LTemplateInstruction<1, 1, 0> { | 2108 class LSmiTag V8_FINAL : public LTemplateInstruction<1, 1, 0> { |
| 2095 public: | 2109 public: |
| 2096 explicit LSmiTag(LOperand* value) { | 2110 explicit LSmiTag(LOperand* value) { |
| 2097 inputs_[0] = value; | 2111 inputs_[0] = value; |
| 2098 } | 2112 } |
| (...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2732 ZoneList<HValue*>* objects_to_materialize); | 2746 ZoneList<HValue*>* objects_to_materialize); |
| 2733 | 2747 |
| 2734 void VisitInstruction(HInstruction* current); | 2748 void VisitInstruction(HInstruction* current); |
| 2735 | 2749 |
| 2736 void DoBasicBlock(HBasicBlock* block, HBasicBlock* next_block); | 2750 void DoBasicBlock(HBasicBlock* block, HBasicBlock* next_block); |
| 2737 LInstruction* DoBit(Token::Value op, HBitwiseBinaryOperation* instr); | 2751 LInstruction* DoBit(Token::Value op, HBitwiseBinaryOperation* instr); |
| 2738 LInstruction* DoShift(Token::Value op, HBitwiseBinaryOperation* instr); | 2752 LInstruction* DoShift(Token::Value op, HBitwiseBinaryOperation* instr); |
| 2739 LInstruction* DoArithmeticD(Token::Value op, | 2753 LInstruction* DoArithmeticD(Token::Value op, |
| 2740 HArithmeticBinaryOperation* instr); | 2754 HArithmeticBinaryOperation* instr); |
| 2741 LInstruction* DoArithmeticT(Token::Value op, | 2755 LInstruction* DoArithmeticT(Token::Value op, |
| 2742 HBinaryOperation* instr); | 2756 HArithmeticBinaryOperation* instr); |
| 2743 | 2757 |
| 2744 LPlatformChunk* chunk_; | 2758 LPlatformChunk* chunk_; |
| 2745 CompilationInfo* info_; | 2759 CompilationInfo* info_; |
| 2746 HGraph* const graph_; | 2760 HGraph* const graph_; |
| 2747 Zone* zone_; | 2761 Zone* zone_; |
| 2748 Status status_; | 2762 Status status_; |
| 2749 HInstruction* current_instruction_; | 2763 HInstruction* current_instruction_; |
| 2750 HBasicBlock* current_block_; | 2764 HBasicBlock* current_block_; |
| 2751 HBasicBlock* next_block_; | 2765 HBasicBlock* next_block_; |
| 2752 int argument_count_; | 2766 int argument_count_; |
| 2753 LAllocator* allocator_; | 2767 LAllocator* allocator_; |
| 2754 int position_; | 2768 int position_; |
| 2755 LInstruction* instruction_pending_deoptimization_environment_; | 2769 LInstruction* instruction_pending_deoptimization_environment_; |
| 2756 BailoutId pending_deoptimization_ast_id_; | 2770 BailoutId pending_deoptimization_ast_id_; |
| 2757 | 2771 |
| 2758 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2772 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2759 }; | 2773 }; |
| 2760 | 2774 |
| 2761 #undef DECLARE_HYDROGEN_ACCESSOR | 2775 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2762 #undef DECLARE_CONCRETE_INSTRUCTION | 2776 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2763 | 2777 |
| 2764 } } // namespace v8::internal | 2778 } } // namespace v8::internal |
| 2765 | 2779 |
| 2766 #endif // V8_MIPS_LITHIUM_MIPS_H_ | 2780 #endif // V8_MIPS_LITHIUM_MIPS_H_ |
| OLD | NEW |