| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 V(CheckInstanceType) \ | 68 V(CheckInstanceType) \ |
| 69 V(CheckMaps) \ | 69 V(CheckMaps) \ |
| 70 V(CheckNonSmi) \ | 70 V(CheckNonSmi) \ |
| 71 V(CheckPrototypeMaps) \ | 71 V(CheckPrototypeMaps) \ |
| 72 V(CheckSmi) \ | 72 V(CheckSmi) \ |
| 73 V(ClampDToUint8) \ | 73 V(ClampDToUint8) \ |
| 74 V(ClampIToUint8) \ | 74 V(ClampIToUint8) \ |
| 75 V(ClampTToUint8) \ | 75 V(ClampTToUint8) \ |
| 76 V(ClampTToUint8NoSSE2) \ | 76 V(ClampTToUint8NoSSE2) \ |
| 77 V(ClassOfTestAndBranch) \ | 77 V(ClassOfTestAndBranch) \ |
| 78 V(CmpIDAndBranch) \ | 78 V(CompareNumericAndBranch) \ |
| 79 V(CmpObjectEqAndBranch) \ | 79 V(CmpObjectEqAndBranch) \ |
| 80 V(CmpMapAndBranch) \ | 80 V(CmpMapAndBranch) \ |
| 81 V(CmpT) \ | 81 V(CmpT) \ |
| 82 V(CmpConstantEqAndBranch) \ | 82 V(CmpConstantEqAndBranch) \ |
| 83 V(ConstantD) \ | 83 V(ConstantD) \ |
| 84 V(ConstantI) \ | 84 V(ConstantI) \ |
| 85 V(ConstantS) \ | 85 V(ConstantS) \ |
| 86 V(ConstantT) \ | 86 V(ConstantT) \ |
| 87 V(Context) \ | 87 V(Context) \ |
| 88 V(DebugBreak) \ | 88 V(DebugBreak) \ |
| 89 V(DeclareGlobals) \ | 89 V(DeclareGlobals) \ |
| 90 V(DeleteProperty) \ | 90 V(DeleteProperty) \ |
| 91 V(Deoptimize) \ | 91 V(Deoptimize) \ |
| 92 V(DivI) \ | 92 V(DivI) \ |
| 93 V(DoubleToI) \ | 93 V(DoubleToI) \ |
| 94 V(DoubleToSmi) \ | 94 V(DoubleToSmi) \ |
| 95 V(DummyUse) \ | 95 V(DummyUse) \ |
| 96 V(ElementsKind) \ | 96 V(ElementsKind) \ |
| 97 V(FixedArrayBaseLength) \ | |
| 98 V(FunctionLiteral) \ | 97 V(FunctionLiteral) \ |
| 99 V(GetCachedArrayIndex) \ | 98 V(GetCachedArrayIndex) \ |
| 100 V(GlobalObject) \ | 99 V(GlobalObject) \ |
| 101 V(GlobalReceiver) \ | 100 V(GlobalReceiver) \ |
| 102 V(Goto) \ | 101 V(Goto) \ |
| 103 V(HasCachedArrayIndexAndBranch) \ | 102 V(HasCachedArrayIndexAndBranch) \ |
| 104 V(HasInstanceTypeAndBranch) \ | 103 V(HasInstanceTypeAndBranch) \ |
| 105 V(In) \ | 104 V(In) \ |
| 106 V(InstanceOf) \ | 105 V(InstanceOf) \ |
| 107 V(InstanceOfKnownGlobal) \ | 106 V(InstanceOfKnownGlobal) \ |
| 108 V(InstanceSize) \ | 107 V(InstanceSize) \ |
| 109 V(InstructionGap) \ | 108 V(InstructionGap) \ |
| 110 V(Integer32ToDouble) \ | 109 V(Integer32ToDouble) \ |
| 111 V(Integer32ToSmi) \ | 110 V(Integer32ToSmi) \ |
| 112 V(Uint32ToDouble) \ | 111 V(Uint32ToDouble) \ |
| 113 V(InvokeFunction) \ | 112 V(InvokeFunction) \ |
| 114 V(IsConstructCallAndBranch) \ | 113 V(IsConstructCallAndBranch) \ |
| 115 V(IsObjectAndBranch) \ | 114 V(IsObjectAndBranch) \ |
| 116 V(IsStringAndBranch) \ | 115 V(IsStringAndBranch) \ |
| 117 V(IsSmiAndBranch) \ | 116 V(IsSmiAndBranch) \ |
| 117 V(IsNumberAndBranch) \ |
| 118 V(IsUndetectableAndBranch) \ | 118 V(IsUndetectableAndBranch) \ |
| 119 V(Label) \ | 119 V(Label) \ |
| 120 V(LazyBailout) \ | 120 V(LazyBailout) \ |
| 121 V(LoadContextSlot) \ | 121 V(LoadContextSlot) \ |
| 122 V(LoadExternalArrayPointer) \ | 122 V(LoadExternalArrayPointer) \ |
| 123 V(LoadFunctionPrototype) \ | 123 V(LoadFunctionPrototype) \ |
| 124 V(LoadGlobalCell) \ | 124 V(LoadGlobalCell) \ |
| 125 V(LoadGlobalGeneric) \ | 125 V(LoadGlobalGeneric) \ |
| 126 V(LoadKeyed) \ | 126 V(LoadKeyed) \ |
| 127 V(LoadKeyedGeneric) \ | 127 V(LoadKeyedGeneric) \ |
| 128 V(LoadNamedField) \ | 128 V(LoadNamedField) \ |
| 129 V(LoadNamedFieldPolymorphic) \ | 129 V(LoadNamedFieldPolymorphic) \ |
| 130 V(LoadNamedGeneric) \ | 130 V(LoadNamedGeneric) \ |
| 131 V(MapEnumLength) \ | 131 V(MapEnumLength) \ |
| 132 V(MathAbs) \ | 132 V(MathAbs) \ |
| 133 V(MathCos) \ | 133 V(MathCos) \ |
| 134 V(MathExp) \ | 134 V(MathExp) \ |
| 135 V(MathFloor) \ | 135 V(MathFloor) \ |
| 136 V(MathFloorOfDiv) \ | 136 V(MathFloorOfDiv) \ |
| 137 V(MathLog) \ | 137 V(MathLog) \ |
| 138 V(MathMinMax) \ | 138 V(MathMinMax) \ |
| 139 V(MathPowHalf) \ | 139 V(MathPowHalf) \ |
| 140 V(MathRound) \ | 140 V(MathRound) \ |
| 141 V(MathSin) \ | 141 V(MathSin) \ |
| 142 V(MathSqrt) \ | 142 V(MathSqrt) \ |
| 143 V(MathTan) \ | 143 V(MathTan) \ |
| 144 V(ModI) \ | 144 V(ModI) \ |
| 145 V(MulI) \ | 145 V(MulI) \ |
| 146 V(NegateNoSSE2D) \ |
| 146 V(NumberTagD) \ | 147 V(NumberTagD) \ |
| 147 V(NumberTagI) \ | 148 V(NumberTagI) \ |
| 148 V(NumberTagU) \ | 149 V(NumberTagU) \ |
| 149 V(NumberUntagD) \ | 150 V(NumberUntagD) \ |
| 150 V(OsrEntry) \ | 151 V(OsrEntry) \ |
| 151 V(OuterContext) \ | 152 V(OuterContext) \ |
| 152 V(Parameter) \ | 153 V(Parameter) \ |
| 153 V(Power) \ | 154 V(Power) \ |
| 154 V(Random) \ | 155 V(Random) \ |
| 155 V(PushArgument) \ | 156 V(PushArgument) \ |
| (...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 653 | 654 |
| 654 LOperand* left() { return inputs_[0]; } | 655 LOperand* left() { return inputs_[0]; } |
| 655 LOperand* right() { return inputs_[1]; } | 656 LOperand* right() { return inputs_[1]; } |
| 656 LOperand* temp() { return temps_[0]; } | 657 LOperand* temp() { return temps_[0]; } |
| 657 | 658 |
| 658 DECLARE_CONCRETE_INSTRUCTION(MathFloorOfDiv, "math-floor-of-div") | 659 DECLARE_CONCRETE_INSTRUCTION(MathFloorOfDiv, "math-floor-of-div") |
| 659 DECLARE_HYDROGEN_ACCESSOR(MathFloorOfDiv) | 660 DECLARE_HYDROGEN_ACCESSOR(MathFloorOfDiv) |
| 660 }; | 661 }; |
| 661 | 662 |
| 662 | 663 |
| 664 class LNegateNoSSE2D: public LTemplateInstruction<1, 1, 0> { |
| 665 public: |
| 666 explicit LNegateNoSSE2D(LOperand* value) { |
| 667 inputs_[0] = value; |
| 668 } |
| 669 |
| 670 LOperand* value() { return inputs_[0]; } |
| 671 |
| 672 DECLARE_CONCRETE_INSTRUCTION(NegateNoSSE2D, "negate-no-sse2-d") |
| 673 }; |
| 674 |
| 675 |
| 663 class LMulI: public LTemplateInstruction<1, 2, 1> { | 676 class LMulI: public LTemplateInstruction<1, 2, 1> { |
| 664 public: | 677 public: |
| 665 LMulI(LOperand* left, LOperand* right, LOperand* temp) { | 678 LMulI(LOperand* left, LOperand* right, LOperand* temp) { |
| 666 inputs_[0] = left; | 679 inputs_[0] = left; |
| 667 inputs_[1] = right; | 680 inputs_[1] = right; |
| 668 temps_[0] = temp; | 681 temps_[0] = temp; |
| 669 } | 682 } |
| 670 | 683 |
| 671 LOperand* left() { return inputs_[0]; } | 684 LOperand* left() { return inputs_[0]; } |
| 672 LOperand* right() { return inputs_[1]; } | 685 LOperand* right() { return inputs_[1]; } |
| 673 LOperand* temp() { return temps_[0]; } | 686 LOperand* temp() { return temps_[0]; } |
| 674 | 687 |
| 675 DECLARE_CONCRETE_INSTRUCTION(MulI, "mul-i") | 688 DECLARE_CONCRETE_INSTRUCTION(MulI, "mul-i") |
| 676 DECLARE_HYDROGEN_ACCESSOR(Mul) | 689 DECLARE_HYDROGEN_ACCESSOR(Mul) |
| 677 }; | 690 }; |
| 678 | 691 |
| 679 | 692 |
| 680 class LCmpIDAndBranch: public LControlInstruction<2, 0> { | 693 class LCompareNumericAndBranch: public LControlInstruction<2, 0> { |
| 681 public: | 694 public: |
| 682 LCmpIDAndBranch(LOperand* left, LOperand* right) { | 695 LCompareNumericAndBranch(LOperand* left, LOperand* right) { |
| 683 inputs_[0] = left; | 696 inputs_[0] = left; |
| 684 inputs_[1] = right; | 697 inputs_[1] = right; |
| 685 } | 698 } |
| 686 | 699 |
| 687 LOperand* left() { return inputs_[0]; } | 700 LOperand* left() { return inputs_[0]; } |
| 688 LOperand* right() { return inputs_[1]; } | 701 LOperand* right() { return inputs_[1]; } |
| 689 | 702 |
| 690 DECLARE_CONCRETE_INSTRUCTION(CmpIDAndBranch, "cmp-id-and-branch") | 703 DECLARE_CONCRETE_INSTRUCTION(CompareNumericAndBranch, |
| 691 DECLARE_HYDROGEN_ACCESSOR(CompareIDAndBranch) | 704 "compare-numeric-and-branch") |
| 705 DECLARE_HYDROGEN_ACCESSOR(CompareNumericAndBranch) |
| 692 | 706 |
| 693 Token::Value op() const { return hydrogen()->token(); } | 707 Token::Value op() const { return hydrogen()->token(); } |
| 694 bool is_double() const { | 708 bool is_double() const { |
| 695 return hydrogen()->representation().IsDouble(); | 709 return hydrogen()->representation().IsDouble(); |
| 696 } | 710 } |
| 697 | 711 |
| 698 virtual void PrintDataTo(StringStream* stream); | 712 virtual void PrintDataTo(StringStream* stream); |
| 699 }; | 713 }; |
| 700 | 714 |
| 701 | 715 |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 877 | 891 |
| 878 LOperand* value() { return inputs_[0]; } | 892 LOperand* value() { return inputs_[0]; } |
| 879 LOperand* temp() { return temps_[0]; } | 893 LOperand* temp() { return temps_[0]; } |
| 880 | 894 |
| 881 DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch") | 895 DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch") |
| 882 | 896 |
| 883 virtual void PrintDataTo(StringStream* stream); | 897 virtual void PrintDataTo(StringStream* stream); |
| 884 }; | 898 }; |
| 885 | 899 |
| 886 | 900 |
| 901 class LIsNumberAndBranch: public LControlInstruction<1, 0> { |
| 902 public: |
| 903 explicit LIsNumberAndBranch(LOperand* value) { |
| 904 inputs_[0] = value; |
| 905 } |
| 906 |
| 907 LOperand* value() { return inputs_[0]; } |
| 908 |
| 909 DECLARE_CONCRETE_INSTRUCTION(IsNumberAndBranch, "is-number-and-branch") |
| 910 DECLARE_HYDROGEN_ACCESSOR(IsNumberAndBranch) |
| 911 }; |
| 912 |
| 913 |
| 887 class LIsStringAndBranch: public LControlInstruction<1, 1> { | 914 class LIsStringAndBranch: public LControlInstruction<1, 1> { |
| 888 public: | 915 public: |
| 889 LIsStringAndBranch(LOperand* value, LOperand* temp) { | 916 LIsStringAndBranch(LOperand* value, LOperand* temp) { |
| 890 inputs_[0] = value; | 917 inputs_[0] = value; |
| 891 temps_[0] = temp; | 918 temps_[0] = temp; |
| 892 } | 919 } |
| 893 | 920 |
| 894 LOperand* value() { return inputs_[0]; } | 921 LOperand* value() { return inputs_[0]; } |
| 895 LOperand* temp() { return temps_[0]; } | 922 LOperand* temp() { return temps_[0]; } |
| 896 | 923 |
| (...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1244 | 1271 |
| 1245 LOperand* value() { return inputs_[0]; } | 1272 LOperand* value() { return inputs_[0]; } |
| 1246 | 1273 |
| 1247 DECLARE_CONCRETE_INSTRUCTION(CmpMapAndBranch, "cmp-map-and-branch") | 1274 DECLARE_CONCRETE_INSTRUCTION(CmpMapAndBranch, "cmp-map-and-branch") |
| 1248 DECLARE_HYDROGEN_ACCESSOR(CompareMap) | 1275 DECLARE_HYDROGEN_ACCESSOR(CompareMap) |
| 1249 | 1276 |
| 1250 Handle<Map> map() const { return hydrogen()->map(); } | 1277 Handle<Map> map() const { return hydrogen()->map(); } |
| 1251 }; | 1278 }; |
| 1252 | 1279 |
| 1253 | 1280 |
| 1254 class LFixedArrayBaseLength: public LTemplateInstruction<1, 1, 0> { | |
| 1255 public: | |
| 1256 explicit LFixedArrayBaseLength(LOperand* value) { | |
| 1257 inputs_[0] = value; | |
| 1258 } | |
| 1259 | |
| 1260 LOperand* value() { return inputs_[0]; } | |
| 1261 | |
| 1262 DECLARE_CONCRETE_INSTRUCTION(FixedArrayBaseLength, | |
| 1263 "fixed-array-base-length") | |
| 1264 DECLARE_HYDROGEN_ACCESSOR(FixedArrayBaseLength) | |
| 1265 }; | |
| 1266 | |
| 1267 | |
| 1268 class LMapEnumLength: public LTemplateInstruction<1, 1, 0> { | 1281 class LMapEnumLength: public LTemplateInstruction<1, 1, 0> { |
| 1269 public: | 1282 public: |
| 1270 explicit LMapEnumLength(LOperand* value) { | 1283 explicit LMapEnumLength(LOperand* value) { |
| 1271 inputs_[0] = value; | 1284 inputs_[0] = value; |
| 1272 } | 1285 } |
| 1273 | 1286 |
| 1274 LOperand* value() { return inputs_[0]; } | 1287 LOperand* value() { return inputs_[0]; } |
| 1275 | 1288 |
| 1276 DECLARE_CONCRETE_INSTRUCTION(MapEnumLength, "map-enum-length") | 1289 DECLARE_CONCRETE_INSTRUCTION(MapEnumLength, "map-enum-length") |
| 1277 }; | 1290 }; |
| (...skipping 1709 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2987 | 3000 |
| 2988 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 3001 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2989 }; | 3002 }; |
| 2990 | 3003 |
| 2991 #undef DECLARE_HYDROGEN_ACCESSOR | 3004 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2992 #undef DECLARE_CONCRETE_INSTRUCTION | 3005 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2993 | 3006 |
| 2994 } } // namespace v8::internal | 3007 } } // namespace v8::internal |
| 2995 | 3008 |
| 2996 #endif // V8_IA32_LITHIUM_IA32_H_ | 3009 #endif // V8_IA32_LITHIUM_IA32_H_ |
| OLD | NEW |