| 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 813 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 824 public: | 824 public: |
| 825 LInstanceOfAndBranch(LOperand* left, LOperand* right) { | 825 LInstanceOfAndBranch(LOperand* left, LOperand* right) { |
| 826 inputs_[0] = left; | 826 inputs_[0] = left; |
| 827 inputs_[1] = right; | 827 inputs_[1] = right; |
| 828 } | 828 } |
| 829 | 829 |
| 830 DECLARE_CONCRETE_INSTRUCTION(InstanceOfAndBranch, "instance-of-and-branch") | 830 DECLARE_CONCRETE_INSTRUCTION(InstanceOfAndBranch, "instance-of-and-branch") |
| 831 }; | 831 }; |
| 832 | 832 |
| 833 | 833 |
| 834 class LInstanceOfKnownGlobal: public LTemplateInstruction<1, 1, 1> { | 834 class LInstanceOfKnownGlobal: public LTemplateInstruction<1, 1, 0> { |
| 835 public: | 835 public: |
| 836 LInstanceOfKnownGlobal(LOperand* value, LOperand* temp) { | 836 explicit LInstanceOfKnownGlobal(LOperand* value) { |
| 837 inputs_[0] = value; | 837 inputs_[0] = value; |
| 838 temps_[0] = temp; | |
| 839 } | 838 } |
| 840 | 839 |
| 841 DECLARE_CONCRETE_INSTRUCTION(InstanceOfKnownGlobal, | 840 DECLARE_CONCRETE_INSTRUCTION(InstanceOfKnownGlobal, |
| 842 "instance-of-known-global") | 841 "instance-of-known-global") |
| 843 DECLARE_HYDROGEN_ACCESSOR(InstanceOfKnownGlobal) | 842 DECLARE_HYDROGEN_ACCESSOR(InstanceOfKnownGlobal) |
| 844 | 843 |
| 845 Handle<JSFunction> function() const { return hydrogen()->function(); } | 844 Handle<JSFunction> function() const { return hydrogen()->function(); } |
| 846 }; | 845 }; |
| 847 | 846 |
| 848 | 847 |
| (...skipping 1149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1998 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 1997 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 1999 }; | 1998 }; |
| 2000 | 1999 |
| 2001 #undef DECLARE_HYDROGEN_ACCESSOR | 2000 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2002 #undef DECLARE_INSTRUCTION | 2001 #undef DECLARE_INSTRUCTION |
| 2003 #undef DECLARE_CONCRETE_INSTRUCTION | 2002 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2004 | 2003 |
| 2005 } } // namespace v8::int | 2004 } } // namespace v8::int |
| 2006 | 2005 |
| 2007 #endif // V8_X64_LITHIUM_X64_H_ | 2006 #endif // V8_X64_LITHIUM_X64_H_ |
| OLD | NEW |