| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 V(Goto) \ | 100 V(Goto) \ |
| 101 V(HasCachedArrayIndexAndBranch) \ | 101 V(HasCachedArrayIndexAndBranch) \ |
| 102 V(HasInstanceTypeAndBranch) \ | 102 V(HasInstanceTypeAndBranch) \ |
| 103 V(In) \ | 103 V(In) \ |
| 104 V(InstanceOf) \ | 104 V(InstanceOf) \ |
| 105 V(InstanceOfKnownGlobal) \ | 105 V(InstanceOfKnownGlobal) \ |
| 106 V(InstructionGap) \ | 106 V(InstructionGap) \ |
| 107 V(Integer32ToDouble) \ | 107 V(Integer32ToDouble) \ |
| 108 V(InvokeFunction) \ | 108 V(InvokeFunction) \ |
| 109 V(IsConstructCallAndBranch) \ | 109 V(IsConstructCallAndBranch) \ |
| 110 V(IsNullAndBranch) \ | 110 V(IsNilAndBranch) \ |
| 111 V(IsObjectAndBranch) \ | 111 V(IsObjectAndBranch) \ |
| 112 V(IsSmiAndBranch) \ | 112 V(IsSmiAndBranch) \ |
| 113 V(IsUndetectableAndBranch) \ | 113 V(IsUndetectableAndBranch) \ |
| 114 V(JSArrayLength) \ | 114 V(JSArrayLength) \ |
| 115 V(Label) \ | 115 V(Label) \ |
| 116 V(LazyBailout) \ | 116 V(LazyBailout) \ |
| 117 V(LoadContextSlot) \ | 117 V(LoadContextSlot) \ |
| 118 V(LoadElements) \ | 118 V(LoadElements) \ |
| 119 V(LoadExternalArrayPointer) \ | 119 V(LoadExternalArrayPointer) \ |
| 120 V(LoadFunctionPrototype) \ | 120 V(LoadFunctionPrototype) \ |
| (...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 602 explicit LCmpConstantEqAndBranch(LOperand* left) { | 602 explicit LCmpConstantEqAndBranch(LOperand* left) { |
| 603 inputs_[0] = left; | 603 inputs_[0] = left; |
| 604 } | 604 } |
| 605 | 605 |
| 606 DECLARE_CONCRETE_INSTRUCTION(CmpConstantEqAndBranch, | 606 DECLARE_CONCRETE_INSTRUCTION(CmpConstantEqAndBranch, |
| 607 "cmp-constant-eq-and-branch") | 607 "cmp-constant-eq-and-branch") |
| 608 DECLARE_HYDROGEN_ACCESSOR(CompareConstantEqAndBranch) | 608 DECLARE_HYDROGEN_ACCESSOR(CompareConstantEqAndBranch) |
| 609 }; | 609 }; |
| 610 | 610 |
| 611 | 611 |
| 612 class LIsNullAndBranch: public LControlInstruction<1, 1> { | 612 class LIsNilAndBranch: public LControlInstruction<1, 1> { |
| 613 public: | 613 public: |
| 614 LIsNullAndBranch(LOperand* value, LOperand* temp) { | 614 LIsNilAndBranch(LOperand* value, LOperand* temp) { |
| 615 inputs_[0] = value; | 615 inputs_[0] = value; |
| 616 temps_[0] = temp; | 616 temps_[0] = temp; |
| 617 } | 617 } |
| 618 | 618 |
| 619 DECLARE_CONCRETE_INSTRUCTION(IsNullAndBranch, "is-null-and-branch") | 619 DECLARE_CONCRETE_INSTRUCTION(IsNilAndBranch, "is-nil-and-branch") |
| 620 DECLARE_HYDROGEN_ACCESSOR(IsNullAndBranch) | 620 DECLARE_HYDROGEN_ACCESSOR(IsNilAndBranch) |
| 621 | 621 |
| 622 bool is_strict() const { return hydrogen()->is_strict(); } | 622 EqualityKind kind() const { return hydrogen()->kind(); } |
| 623 NilValue nil() const { return hydrogen()->nil(); } |
| 623 | 624 |
| 624 virtual void PrintDataTo(StringStream* stream); | 625 virtual void PrintDataTo(StringStream* stream); |
| 625 }; | 626 }; |
| 626 | 627 |
| 627 | 628 |
| 628 class LIsObjectAndBranch: public LControlInstruction<1, 0> { | 629 class LIsObjectAndBranch: public LControlInstruction<1, 0> { |
| 629 public: | 630 public: |
| 630 explicit LIsObjectAndBranch(LOperand* value) { | 631 explicit LIsObjectAndBranch(LOperand* value) { |
| 631 inputs_[0] = value; | 632 inputs_[0] = value; |
| 632 } | 633 } |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 698 } | 699 } |
| 699 | 700 |
| 700 DECLARE_CONCRETE_INSTRUCTION(HasCachedArrayIndexAndBranch, | 701 DECLARE_CONCRETE_INSTRUCTION(HasCachedArrayIndexAndBranch, |
| 701 "has-cached-array-index-and-branch") | 702 "has-cached-array-index-and-branch") |
| 702 DECLARE_HYDROGEN_ACCESSOR(HasCachedArrayIndexAndBranch) | 703 DECLARE_HYDROGEN_ACCESSOR(HasCachedArrayIndexAndBranch) |
| 703 | 704 |
| 704 virtual void PrintDataTo(StringStream* stream); | 705 virtual void PrintDataTo(StringStream* stream); |
| 705 }; | 706 }; |
| 706 | 707 |
| 707 | 708 |
| 708 class LClassOfTestAndBranch: public LControlInstruction<1, 1> { | 709 class LClassOfTestAndBranch: public LControlInstruction<1, 2> { |
| 709 public: | 710 public: |
| 710 LClassOfTestAndBranch(LOperand* value, LOperand* temp) { | 711 LClassOfTestAndBranch(LOperand* value, LOperand* temp, LOperand* temp2) { |
| 711 inputs_[0] = value; | 712 inputs_[0] = value; |
| 712 temps_[0] = temp; | 713 temps_[0] = temp; |
| 714 temps_[1] = temp2; |
| 713 } | 715 } |
| 714 | 716 |
| 715 DECLARE_CONCRETE_INSTRUCTION(ClassOfTestAndBranch, | 717 DECLARE_CONCRETE_INSTRUCTION(ClassOfTestAndBranch, |
| 716 "class-of-test-and-branch") | 718 "class-of-test-and-branch") |
| 717 DECLARE_HYDROGEN_ACCESSOR(ClassOfTestAndBranch) | 719 DECLARE_HYDROGEN_ACCESSOR(ClassOfTestAndBranch) |
| 718 | 720 |
| 719 virtual void PrintDataTo(StringStream* stream); | 721 virtual void PrintDataTo(StringStream* stream); |
| 720 }; | 722 }; |
| 721 | 723 |
| 722 | 724 |
| (...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1190 | 1192 |
| 1191 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") | 1193 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") |
| 1192 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) | 1194 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) |
| 1193 | 1195 |
| 1194 LOperand* global_object() { return inputs_[0]; } | 1196 LOperand* global_object() { return inputs_[0]; } |
| 1195 Handle<Object> name() const { return hydrogen()->name(); } | 1197 Handle<Object> name() const { return hydrogen()->name(); } |
| 1196 bool for_typeof() const { return hydrogen()->for_typeof(); } | 1198 bool for_typeof() const { return hydrogen()->for_typeof(); } |
| 1197 }; | 1199 }; |
| 1198 | 1200 |
| 1199 | 1201 |
| 1200 class LStoreGlobalCell: public LTemplateInstruction<0, 1, 1> { | 1202 class LStoreGlobalCell: public LTemplateInstruction<0, 1, 2> { |
| 1201 public: | 1203 public: |
| 1202 explicit LStoreGlobalCell(LOperand* value, LOperand* temp) { | 1204 explicit LStoreGlobalCell(LOperand* value, LOperand* temp1, LOperand* temp2) { |
| 1203 inputs_[0] = value; | 1205 inputs_[0] = value; |
| 1204 temps_[0] = temp; | 1206 temps_[0] = temp1; |
| 1207 temps_[1] = temp2; |
| 1205 } | 1208 } |
| 1206 | 1209 |
| 1207 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalCell, "store-global-cell") | 1210 DECLARE_CONCRETE_INSTRUCTION(StoreGlobalCell, "store-global-cell") |
| 1208 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalCell) | 1211 DECLARE_HYDROGEN_ACCESSOR(StoreGlobalCell) |
| 1209 }; | 1212 }; |
| 1210 | 1213 |
| 1211 | 1214 |
| 1212 class LStoreGlobalGeneric: public LTemplateInstruction<0, 2, 0> { | 1215 class LStoreGlobalGeneric: public LTemplateInstruction<0, 2, 0> { |
| 1213 public: | 1216 public: |
| 1214 explicit LStoreGlobalGeneric(LOperand* global_object, | 1217 explicit LStoreGlobalGeneric(LOperand* global_object, |
| (...skipping 924 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2139 LInstruction* MarkAsCall( | 2142 LInstruction* MarkAsCall( |
| 2140 LInstruction* instr, | 2143 LInstruction* instr, |
| 2141 HInstruction* hinstr, | 2144 HInstruction* hinstr, |
| 2142 CanDeoptimize can_deoptimize = CANNOT_DEOPTIMIZE_EAGERLY); | 2145 CanDeoptimize can_deoptimize = CANNOT_DEOPTIMIZE_EAGERLY); |
| 2143 LInstruction* MarkAsSaveDoubles(LInstruction* instr); | 2146 LInstruction* MarkAsSaveDoubles(LInstruction* instr); |
| 2144 | 2147 |
| 2145 LInstruction* SetInstructionPendingDeoptimizationEnvironment( | 2148 LInstruction* SetInstructionPendingDeoptimizationEnvironment( |
| 2146 LInstruction* instr, int ast_id); | 2149 LInstruction* instr, int ast_id); |
| 2147 void ClearInstructionPendingDeoptimizationEnvironment(); | 2150 void ClearInstructionPendingDeoptimizationEnvironment(); |
| 2148 | 2151 |
| 2149 LEnvironment* CreateEnvironment(HEnvironment* hydrogen_env); | 2152 LEnvironment* CreateEnvironment(HEnvironment* hydrogen_env, |
| 2153 int* argument_index_accumulator); |
| 2150 | 2154 |
| 2151 void VisitInstruction(HInstruction* current); | 2155 void VisitInstruction(HInstruction* current); |
| 2152 | 2156 |
| 2153 void DoBasicBlock(HBasicBlock* block, HBasicBlock* next_block); | 2157 void DoBasicBlock(HBasicBlock* block, HBasicBlock* next_block); |
| 2154 LInstruction* DoBit(Token::Value op, HBitwiseBinaryOperation* instr); | 2158 LInstruction* DoBit(Token::Value op, HBitwiseBinaryOperation* instr); |
| 2155 LInstruction* DoShift(Token::Value op, HBitwiseBinaryOperation* instr); | 2159 LInstruction* DoShift(Token::Value op, HBitwiseBinaryOperation* instr); |
| 2156 LInstruction* DoArithmeticD(Token::Value op, | 2160 LInstruction* DoArithmeticD(Token::Value op, |
| 2157 HArithmeticBinaryOperation* instr); | 2161 HArithmeticBinaryOperation* instr); |
| 2158 LInstruction* DoArithmeticT(Token::Value op, | 2162 LInstruction* DoArithmeticT(Token::Value op, |
| 2159 HArithmeticBinaryOperation* instr); | 2163 HArithmeticBinaryOperation* instr); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 2173 | 2177 |
| 2174 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2178 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2175 }; | 2179 }; |
| 2176 | 2180 |
| 2177 #undef DECLARE_HYDROGEN_ACCESSOR | 2181 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2178 #undef DECLARE_CONCRETE_INSTRUCTION | 2182 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2179 | 2183 |
| 2180 } } // namespace v8::int | 2184 } } // namespace v8::int |
| 2181 | 2185 |
| 2182 #endif // V8_X64_LITHIUM_X64_H_ | 2186 #endif // V8_X64_LITHIUM_X64_H_ |
| OLD | NEW |