| 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 V(FunctionLiteral) \ | 95 V(FunctionLiteral) \ |
| 96 V(Gap) \ | 96 V(Gap) \ |
| 97 V(GetCachedArrayIndex) \ | 97 V(GetCachedArrayIndex) \ |
| 98 V(GlobalObject) \ | 98 V(GlobalObject) \ |
| 99 V(GlobalReceiver) \ | 99 V(GlobalReceiver) \ |
| 100 V(Goto) \ | 100 V(Goto) \ |
| 101 V(HasCachedArrayIndex) \ | 101 V(HasCachedArrayIndex) \ |
| 102 V(HasCachedArrayIndexAndBranch) \ | 102 V(HasCachedArrayIndexAndBranch) \ |
| 103 V(HasInstanceType) \ | 103 V(HasInstanceType) \ |
| 104 V(HasInstanceTypeAndBranch) \ | 104 V(HasInstanceTypeAndBranch) \ |
| 105 V(In) \ |
| 105 V(InstanceOf) \ | 106 V(InstanceOf) \ |
| 106 V(InstanceOfAndBranch) \ | 107 V(InstanceOfAndBranch) \ |
| 107 V(InstanceOfKnownGlobal) \ | 108 V(InstanceOfKnownGlobal) \ |
| 108 V(Integer32ToDouble) \ | 109 V(Integer32ToDouble) \ |
| 109 V(InvokeFunction) \ | 110 V(InvokeFunction) \ |
| 110 V(IsNull) \ | 111 V(IsNull) \ |
| 111 V(IsNullAndBranch) \ | 112 V(IsNullAndBranch) \ |
| 112 V(IsObject) \ | 113 V(IsObject) \ |
| 113 V(IsObjectAndBranch) \ | 114 V(IsObjectAndBranch) \ |
| 114 V(IsSmi) \ | 115 V(IsSmi) \ |
| (...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 823 inputs_[1] = right; | 824 inputs_[1] = right; |
| 824 } | 825 } |
| 825 | 826 |
| 826 DECLARE_CONCRETE_INSTRUCTION(CmpTAndBranch, "cmp-t-and-branch") | 827 DECLARE_CONCRETE_INSTRUCTION(CmpTAndBranch, "cmp-t-and-branch") |
| 827 DECLARE_HYDROGEN_ACCESSOR(Compare) | 828 DECLARE_HYDROGEN_ACCESSOR(Compare) |
| 828 | 829 |
| 829 Token::Value op() const { return hydrogen()->token(); } | 830 Token::Value op() const { return hydrogen()->token(); } |
| 830 }; | 831 }; |
| 831 | 832 |
| 832 | 833 |
| 834 class LIn: public LTemplateInstruction<1, 2, 0> { |
| 835 public: |
| 836 LIn(LOperand* key, LOperand* object) { |
| 837 inputs_[0] = key; |
| 838 inputs_[1] = object; |
| 839 } |
| 840 |
| 841 LOperand* key() { return inputs_[0]; } |
| 842 LOperand* object() { return inputs_[1]; } |
| 843 |
| 844 DECLARE_CONCRETE_INSTRUCTION(In, "in") |
| 845 }; |
| 846 |
| 847 |
| 833 class LInstanceOf: public LTemplateInstruction<1, 2, 0> { | 848 class LInstanceOf: public LTemplateInstruction<1, 2, 0> { |
| 834 public: | 849 public: |
| 835 LInstanceOf(LOperand* left, LOperand* right) { | 850 LInstanceOf(LOperand* left, LOperand* right) { |
| 836 inputs_[0] = left; | 851 inputs_[0] = left; |
| 837 inputs_[1] = right; | 852 inputs_[1] = right; |
| 838 } | 853 } |
| 839 | 854 |
| 840 DECLARE_CONCRETE_INSTRUCTION(InstanceOf, "instance-of") | 855 DECLARE_CONCRETE_INSTRUCTION(InstanceOf, "instance-of") |
| 841 }; | 856 }; |
| 842 | 857 |
| (...skipping 1347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2190 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2205 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2191 }; | 2206 }; |
| 2192 | 2207 |
| 2193 #undef DECLARE_HYDROGEN_ACCESSOR | 2208 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2194 #undef DECLARE_INSTRUCTION | 2209 #undef DECLARE_INSTRUCTION |
| 2195 #undef DECLARE_CONCRETE_INSTRUCTION | 2210 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2196 | 2211 |
| 2197 } } // namespace v8::int | 2212 } } // namespace v8::int |
| 2198 | 2213 |
| 2199 #endif // V8_X64_LITHIUM_X64_H_ | 2214 #endif // V8_X64_LITHIUM_X64_H_ |
| OLD | NEW |