| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 V(CheckInstanceType) \ | 74 V(CheckInstanceType) \ |
| 75 V(CheckMaps) \ | 75 V(CheckMaps) \ |
| 76 V(CheckNonSmi) \ | 76 V(CheckNonSmi) \ |
| 77 V(CheckPrototypeMaps) \ | 77 V(CheckPrototypeMaps) \ |
| 78 V(CheckSmi) \ | 78 V(CheckSmi) \ |
| 79 V(ClampDToUint8) \ | 79 V(ClampDToUint8) \ |
| 80 V(ClampIToUint8) \ | 80 V(ClampIToUint8) \ |
| 81 V(ClampTToUint8) \ | 81 V(ClampTToUint8) \ |
| 82 V(ClassOfTestAndBranch) \ | 82 V(ClassOfTestAndBranch) \ |
| 83 V(CmpConstantEqAndBranch) \ | 83 V(CmpConstantEqAndBranch) \ |
| 84 V(CmpIDAndBranch) \ | 84 V(CompareNumericAndBranch) \ |
| 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) \ | 95 V(DeleteProperty) \ |
| 96 V(Deoptimize) \ | 96 V(Deoptimize) \ |
| 97 V(DivI) \ | 97 V(DivI) \ |
| 98 V(DoubleToI) \ | 98 V(DoubleToI) \ |
| 99 V(DoubleToSmi) \ | 99 V(DoubleToSmi) \ |
| 100 V(DummyUse) \ | 100 V(DummyUse) \ |
| 101 V(ElementsKind) \ | 101 V(ElementsKind) \ |
| 102 V(FixedArrayBaseLength) \ | |
| 103 V(MapEnumLength) \ | 102 V(MapEnumLength) \ |
| 104 V(FunctionLiteral) \ | 103 V(FunctionLiteral) \ |
| 105 V(GetCachedArrayIndex) \ | 104 V(GetCachedArrayIndex) \ |
| 106 V(GlobalObject) \ | 105 V(GlobalObject) \ |
| 107 V(GlobalReceiver) \ | 106 V(GlobalReceiver) \ |
| 108 V(Goto) \ | 107 V(Goto) \ |
| 109 V(HasCachedArrayIndexAndBranch) \ | 108 V(HasCachedArrayIndexAndBranch) \ |
| 110 V(HasInstanceTypeAndBranch) \ | 109 V(HasInstanceTypeAndBranch) \ |
| 111 V(In) \ | 110 V(In) \ |
| 112 V(InstanceOf) \ | 111 V(InstanceOf) \ |
| 113 V(InstanceOfKnownGlobal) \ | 112 V(InstanceOfKnownGlobal) \ |
| 114 V(InstanceSize) \ | 113 V(InstanceSize) \ |
| 115 V(InstructionGap) \ | 114 V(InstructionGap) \ |
| 116 V(Integer32ToDouble) \ | 115 V(Integer32ToDouble) \ |
| 117 V(Integer32ToSmi) \ | 116 V(Integer32ToSmi) \ |
| 118 V(Uint32ToDouble) \ | 117 V(Uint32ToDouble) \ |
| 119 V(InvokeFunction) \ | 118 V(InvokeFunction) \ |
| 120 V(IsConstructCallAndBranch) \ | 119 V(IsConstructCallAndBranch) \ |
| 121 V(IsObjectAndBranch) \ | 120 V(IsObjectAndBranch) \ |
| 122 V(IsStringAndBranch) \ | 121 V(IsStringAndBranch) \ |
| 123 V(IsSmiAndBranch) \ | 122 V(IsSmiAndBranch) \ |
| 123 V(IsNumberAndBranch) \ |
| 124 V(IsUndetectableAndBranch) \ | 124 V(IsUndetectableAndBranch) \ |
| 125 V(Label) \ | 125 V(Label) \ |
| 126 V(LazyBailout) \ | 126 V(LazyBailout) \ |
| 127 V(LoadContextSlot) \ | 127 V(LoadContextSlot) \ |
| 128 V(LoadExternalArrayPointer) \ | 128 V(LoadExternalArrayPointer) \ |
| 129 V(LoadFunctionPrototype) \ | 129 V(LoadFunctionPrototype) \ |
| 130 V(LoadGlobalCell) \ | 130 V(LoadGlobalCell) \ |
| 131 V(LoadGlobalGeneric) \ | 131 V(LoadGlobalGeneric) \ |
| 132 V(LoadKeyed) \ | 132 V(LoadKeyed) \ |
| 133 V(LoadKeyedGeneric) \ | 133 V(LoadKeyedGeneric) \ |
| (...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 666 } | 666 } |
| 667 | 667 |
| 668 LOperand* left() { return inputs_[0]; } | 668 LOperand* left() { return inputs_[0]; } |
| 669 LOperand* right() { return inputs_[1]; } | 669 LOperand* right() { return inputs_[1]; } |
| 670 | 670 |
| 671 DECLARE_CONCRETE_INSTRUCTION(MulI, "mul-i") | 671 DECLARE_CONCRETE_INSTRUCTION(MulI, "mul-i") |
| 672 DECLARE_HYDROGEN_ACCESSOR(Mul) | 672 DECLARE_HYDROGEN_ACCESSOR(Mul) |
| 673 }; | 673 }; |
| 674 | 674 |
| 675 | 675 |
| 676 class LCmpIDAndBranch: public LControlInstruction<2, 0> { | 676 class LCompareNumericAndBranch: public LControlInstruction<2, 0> { |
| 677 public: | 677 public: |
| 678 LCmpIDAndBranch(LOperand* left, LOperand* right) { | 678 LCompareNumericAndBranch(LOperand* left, LOperand* right) { |
| 679 inputs_[0] = left; | 679 inputs_[0] = left; |
| 680 inputs_[1] = right; | 680 inputs_[1] = right; |
| 681 } | 681 } |
| 682 | 682 |
| 683 LOperand* left() { return inputs_[0]; } | 683 LOperand* left() { return inputs_[0]; } |
| 684 LOperand* right() { return inputs_[1]; } | 684 LOperand* right() { return inputs_[1]; } |
| 685 | 685 |
| 686 DECLARE_CONCRETE_INSTRUCTION(CmpIDAndBranch, "cmp-id-and-branch") | 686 DECLARE_CONCRETE_INSTRUCTION(CompareNumericAndBranch, |
| 687 DECLARE_HYDROGEN_ACCESSOR(CompareIDAndBranch) | 687 "compare-numeric-and-branch") |
| 688 DECLARE_HYDROGEN_ACCESSOR(CompareNumericAndBranch) |
| 688 | 689 |
| 689 Token::Value op() const { return hydrogen()->token(); } | 690 Token::Value op() const { return hydrogen()->token(); } |
| 690 bool is_double() const { | 691 bool is_double() const { |
| 691 return hydrogen()->representation().IsDouble(); | 692 return hydrogen()->representation().IsDouble(); |
| 692 } | 693 } |
| 693 | 694 |
| 694 virtual void PrintDataTo(StringStream* stream); | 695 virtual void PrintDataTo(StringStream* stream); |
| 695 }; | 696 }; |
| 696 | 697 |
| 697 | 698 |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 860 | 861 |
| 861 LOperand* value() { return inputs_[0]; } | 862 LOperand* value() { return inputs_[0]; } |
| 862 | 863 |
| 863 DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch") | 864 DECLARE_CONCRETE_INSTRUCTION(IsObjectAndBranch, "is-object-and-branch") |
| 864 DECLARE_HYDROGEN_ACCESSOR(IsObjectAndBranch) | 865 DECLARE_HYDROGEN_ACCESSOR(IsObjectAndBranch) |
| 865 | 866 |
| 866 virtual void PrintDataTo(StringStream* stream); | 867 virtual void PrintDataTo(StringStream* stream); |
| 867 }; | 868 }; |
| 868 | 869 |
| 869 | 870 |
| 871 class LIsNumberAndBranch: public LControlInstruction<1, 0> { |
| 872 public: |
| 873 explicit LIsNumberAndBranch(LOperand* value) { |
| 874 inputs_[0] = value; |
| 875 } |
| 876 |
| 877 LOperand* value() { return inputs_[0]; } |
| 878 |
| 879 DECLARE_CONCRETE_INSTRUCTION(IsNumberAndBranch, "is-number-and-branch") |
| 880 DECLARE_HYDROGEN_ACCESSOR(IsNumberAndBranch) |
| 881 }; |
| 882 |
| 883 |
| 870 class LIsStringAndBranch: public LControlInstruction<1, 1> { | 884 class LIsStringAndBranch: public LControlInstruction<1, 1> { |
| 871 public: | 885 public: |
| 872 explicit LIsStringAndBranch(LOperand* value, LOperand* temp) { | 886 explicit LIsStringAndBranch(LOperand* value, LOperand* temp) { |
| 873 inputs_[0] = value; | 887 inputs_[0] = value; |
| 874 temps_[0] = temp; | 888 temps_[0] = temp; |
| 875 } | 889 } |
| 876 | 890 |
| 877 LOperand* value() { return inputs_[0]; } | 891 LOperand* value() { return inputs_[0]; } |
| 878 LOperand* temp() { return temps_[0]; } | 892 LOperand* temp() { return temps_[0]; } |
| 879 | 893 |
| (...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1226 | 1240 |
| 1227 LOperand* value() { return inputs_[0]; } | 1241 LOperand* value() { return inputs_[0]; } |
| 1228 | 1242 |
| 1229 DECLARE_CONCRETE_INSTRUCTION(CmpMapAndBranch, "cmp-map-and-branch") | 1243 DECLARE_CONCRETE_INSTRUCTION(CmpMapAndBranch, "cmp-map-and-branch") |
| 1230 DECLARE_HYDROGEN_ACCESSOR(CompareMap) | 1244 DECLARE_HYDROGEN_ACCESSOR(CompareMap) |
| 1231 | 1245 |
| 1232 Handle<Map> map() const { return hydrogen()->map(); } | 1246 Handle<Map> map() const { return hydrogen()->map(); } |
| 1233 }; | 1247 }; |
| 1234 | 1248 |
| 1235 | 1249 |
| 1236 class LFixedArrayBaseLength: public LTemplateInstruction<1, 1, 0> { | |
| 1237 public: | |
| 1238 explicit LFixedArrayBaseLength(LOperand* value) { | |
| 1239 inputs_[0] = value; | |
| 1240 } | |
| 1241 | |
| 1242 LOperand* value() { return inputs_[0]; } | |
| 1243 | |
| 1244 DECLARE_CONCRETE_INSTRUCTION(FixedArrayBaseLength, | |
| 1245 "fixed-array-base-length") | |
| 1246 DECLARE_HYDROGEN_ACCESSOR(FixedArrayBaseLength) | |
| 1247 }; | |
| 1248 | |
| 1249 | |
| 1250 class LMapEnumLength: public LTemplateInstruction<1, 1, 0> { | 1250 class LMapEnumLength: public LTemplateInstruction<1, 1, 0> { |
| 1251 public: | 1251 public: |
| 1252 explicit LMapEnumLength(LOperand* value) { | 1252 explicit LMapEnumLength(LOperand* value) { |
| 1253 inputs_[0] = value; | 1253 inputs_[0] = value; |
| 1254 } | 1254 } |
| 1255 | 1255 |
| 1256 LOperand* value() { return inputs_[0]; } | 1256 LOperand* value() { return inputs_[0]; } |
| 1257 | 1257 |
| 1258 DECLARE_CONCRETE_INSTRUCTION(MapEnumLength, "map-enum-length") | 1258 DECLARE_CONCRETE_INSTRUCTION(MapEnumLength, "map-enum-length") |
| 1259 }; | 1259 }; |
| (...skipping 1492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2752 | 2752 |
| 2753 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2753 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2754 }; | 2754 }; |
| 2755 | 2755 |
| 2756 #undef DECLARE_HYDROGEN_ACCESSOR | 2756 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2757 #undef DECLARE_CONCRETE_INSTRUCTION | 2757 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2758 | 2758 |
| 2759 } } // namespace v8::int | 2759 } } // namespace v8::int |
| 2760 | 2760 |
| 2761 #endif // V8_X64_LITHIUM_X64_H_ | 2761 #endif // V8_X64_LITHIUM_X64_H_ |
| OLD | NEW |