| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 V(ClassOfTest) \ | 73 V(ClassOfTest) \ |
| 74 V(ClassOfTestAndBranch) \ | 74 V(ClassOfTestAndBranch) \ |
| 75 V(CmpID) \ | 75 V(CmpID) \ |
| 76 V(CmpIDAndBranch) \ | 76 V(CmpIDAndBranch) \ |
| 77 V(CmpJSObjectEq) \ | 77 V(CmpJSObjectEq) \ |
| 78 V(CmpJSObjectEqAndBranch) \ | 78 V(CmpJSObjectEqAndBranch) \ |
| 79 V(CmpSymbolEq) \ | 79 V(CmpSymbolEq) \ |
| 80 V(CmpSymbolEqAndBranch) \ | 80 V(CmpSymbolEqAndBranch) \ |
| 81 V(CmpMapAndBranch) \ | 81 V(CmpMapAndBranch) \ |
| 82 V(CmpT) \ | 82 V(CmpT) \ |
| 83 V(CmpTAndBranch) \ | |
| 84 V(ConstantD) \ | 83 V(ConstantD) \ |
| 85 V(ConstantI) \ | 84 V(ConstantI) \ |
| 86 V(ConstantT) \ | 85 V(ConstantT) \ |
| 87 V(Context) \ | 86 V(Context) \ |
| 88 V(DeleteProperty) \ | 87 V(DeleteProperty) \ |
| 89 V(Deoptimize) \ | 88 V(Deoptimize) \ |
| 90 V(DivI) \ | 89 V(DivI) \ |
| 91 V(DoubleToI) \ | 90 V(DoubleToI) \ |
| 92 V(ExternalArrayLength) \ | 91 V(ExternalArrayLength) \ |
| 93 V(FixedArrayLength) \ | 92 V(FixedArrayLength) \ |
| 94 V(FunctionLiteral) \ | 93 V(FunctionLiteral) \ |
| 95 V(GetCachedArrayIndex) \ | 94 V(GetCachedArrayIndex) \ |
| 96 V(GlobalObject) \ | 95 V(GlobalObject) \ |
| 97 V(GlobalReceiver) \ | 96 V(GlobalReceiver) \ |
| 98 V(Goto) \ | 97 V(Goto) \ |
| 99 V(HasCachedArrayIndex) \ | 98 V(HasCachedArrayIndex) \ |
| 100 V(HasCachedArrayIndexAndBranch) \ | 99 V(HasCachedArrayIndexAndBranch) \ |
| 101 V(HasInstanceType) \ | 100 V(HasInstanceType) \ |
| 102 V(HasInstanceTypeAndBranch) \ | 101 V(HasInstanceTypeAndBranch) \ |
| 103 V(In) \ | 102 V(In) \ |
| 104 V(InstanceOf) \ | 103 V(InstanceOf) \ |
| 105 V(InstanceOfAndBranch) \ | |
| 106 V(InstanceOfKnownGlobal) \ | 104 V(InstanceOfKnownGlobal) \ |
| 107 V(InstructionGap) \ | 105 V(InstructionGap) \ |
| 108 V(Integer32ToDouble) \ | 106 V(Integer32ToDouble) \ |
| 109 V(InvokeFunction) \ | 107 V(InvokeFunction) \ |
| 110 V(IsConstructCall) \ | 108 V(IsConstructCall) \ |
| 111 V(IsConstructCallAndBranch) \ | 109 V(IsConstructCallAndBranch) \ |
| 112 V(IsNull) \ | 110 V(IsNull) \ |
| 113 V(IsNullAndBranch) \ | 111 V(IsNullAndBranch) \ |
| 114 V(IsObject) \ | 112 V(IsObject) \ |
| 115 V(IsObjectAndBranch) \ | 113 V(IsObjectAndBranch) \ |
| (...skipping 797 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 913 inputs_[1] = right; | 911 inputs_[1] = right; |
| 914 } | 912 } |
| 915 | 913 |
| 916 DECLARE_CONCRETE_INSTRUCTION(CmpT, "cmp-t") | 914 DECLARE_CONCRETE_INSTRUCTION(CmpT, "cmp-t") |
| 917 DECLARE_HYDROGEN_ACCESSOR(Compare) | 915 DECLARE_HYDROGEN_ACCESSOR(Compare) |
| 918 | 916 |
| 919 Token::Value op() const { return hydrogen()->token(); } | 917 Token::Value op() const { return hydrogen()->token(); } |
| 920 }; | 918 }; |
| 921 | 919 |
| 922 | 920 |
| 923 class LCmpTAndBranch: public LControlInstruction<2, 0> { | |
| 924 public: | |
| 925 LCmpTAndBranch(LOperand* left, LOperand* right) { | |
| 926 inputs_[0] = left; | |
| 927 inputs_[1] = right; | |
| 928 } | |
| 929 | |
| 930 DECLARE_CONCRETE_INSTRUCTION(CmpTAndBranch, "cmp-t-and-branch") | |
| 931 DECLARE_HYDROGEN_ACCESSOR(Compare) | |
| 932 | |
| 933 Token::Value op() const { return hydrogen()->token(); } | |
| 934 }; | |
| 935 | |
| 936 | |
| 937 class LInstanceOf: public LTemplateInstruction<1, 3, 0> { | 921 class LInstanceOf: public LTemplateInstruction<1, 3, 0> { |
| 938 public: | 922 public: |
| 939 LInstanceOf(LOperand* context, LOperand* left, LOperand* right) { | 923 LInstanceOf(LOperand* context, LOperand* left, LOperand* right) { |
| 940 inputs_[0] = context; | 924 inputs_[0] = context; |
| 941 inputs_[1] = left; | 925 inputs_[1] = left; |
| 942 inputs_[2] = right; | 926 inputs_[2] = right; |
| 943 } | 927 } |
| 944 | 928 |
| 945 DECLARE_CONCRETE_INSTRUCTION(InstanceOf, "instance-of") | 929 DECLARE_CONCRETE_INSTRUCTION(InstanceOf, "instance-of") |
| 946 | 930 |
| 947 LOperand* context() { return inputs_[0]; } | 931 LOperand* context() { return inputs_[0]; } |
| 948 }; | 932 }; |
| 949 | 933 |
| 950 | 934 |
| 951 class LInstanceOfAndBranch: public LControlInstruction<3, 0> { | |
| 952 public: | |
| 953 LInstanceOfAndBranch(LOperand* context, LOperand* left, LOperand* right) { | |
| 954 inputs_[0] = context; | |
| 955 inputs_[1] = left; | |
| 956 inputs_[2] = right; | |
| 957 } | |
| 958 | |
| 959 DECLARE_CONCRETE_INSTRUCTION(InstanceOfAndBranch, "instance-of-and-branch") | |
| 960 | |
| 961 LOperand* context() { return inputs_[0]; } | |
| 962 }; | |
| 963 | |
| 964 | |
| 965 class LInstanceOfKnownGlobal: public LTemplateInstruction<1, 1, 1> { | 935 class LInstanceOfKnownGlobal: public LTemplateInstruction<1, 1, 1> { |
| 966 public: | 936 public: |
| 967 LInstanceOfKnownGlobal(LOperand* value, LOperand* temp) { | 937 LInstanceOfKnownGlobal(LOperand* value, LOperand* temp) { |
| 968 inputs_[0] = value; | 938 inputs_[0] = value; |
| 969 temps_[0] = temp; | 939 temps_[0] = temp; |
| 970 } | 940 } |
| 971 | 941 |
| 972 DECLARE_CONCRETE_INSTRUCTION(InstanceOfKnownGlobal, | 942 DECLARE_CONCRETE_INSTRUCTION(InstanceOfKnownGlobal, |
| 973 "instance-of-known-global") | 943 "instance-of-known-global") |
| 974 DECLARE_HYDROGEN_ACCESSOR(InstanceOfKnownGlobal) | 944 DECLARE_HYDROGEN_ACCESSOR(InstanceOfKnownGlobal) |
| (...skipping 1418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2393 | 2363 |
| 2394 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2364 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2395 }; | 2365 }; |
| 2396 | 2366 |
| 2397 #undef DECLARE_HYDROGEN_ACCESSOR | 2367 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2398 #undef DECLARE_CONCRETE_INSTRUCTION | 2368 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2399 | 2369 |
| 2400 } } // namespace v8::internal | 2370 } } // namespace v8::internal |
| 2401 | 2371 |
| 2402 #endif // V8_IA32_LITHIUM_IA32_H_ | 2372 #endif // V8_IA32_LITHIUM_IA32_H_ |
| OLD | NEW |