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 812 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
823 public: | 823 public: |
824 LInstanceOfAndBranch(LOperand* left, LOperand* right) { | 824 LInstanceOfAndBranch(LOperand* left, LOperand* right) { |
825 inputs_[0] = left; | 825 inputs_[0] = left; |
826 inputs_[1] = right; | 826 inputs_[1] = right; |
827 } | 827 } |
828 | 828 |
829 DECLARE_CONCRETE_INSTRUCTION(InstanceOfAndBranch, "instance-of-and-branch") | 829 DECLARE_CONCRETE_INSTRUCTION(InstanceOfAndBranch, "instance-of-and-branch") |
830 }; | 830 }; |
831 | 831 |
832 | 832 |
833 class LInstanceOfKnownGlobal: public LTemplateInstruction<1, 1, 1> { | 833 class LInstanceOfKnownGlobal: public LTemplateInstruction<1, 1, 0> { |
834 public: | 834 public: |
835 LInstanceOfKnownGlobal(LOperand* value, LOperand* temp) { | 835 LInstanceOfKnownGlobal(LOperand* value) { |
836 inputs_[0] = value; | 836 inputs_[0] = value; |
837 temps_[0] = temp; | |
838 } | 837 } |
839 | 838 |
840 DECLARE_CONCRETE_INSTRUCTION(InstanceOfKnownGlobal, | 839 DECLARE_CONCRETE_INSTRUCTION(InstanceOfKnownGlobal, |
841 "instance-of-known-global") | 840 "instance-of-known-global") |
842 DECLARE_HYDROGEN_ACCESSOR(InstanceOfKnownGlobal) | 841 DECLARE_HYDROGEN_ACCESSOR(InstanceOfKnownGlobal) |
843 | 842 |
844 Handle<JSFunction> function() const { return hydrogen()->function(); } | 843 Handle<JSFunction> function() const { return hydrogen()->function(); } |
845 }; | 844 }; |
846 | 845 |
847 | 846 |
(...skipping 1129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1977 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 1976 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
1978 }; | 1977 }; |
1979 | 1978 |
1980 #undef DECLARE_HYDROGEN_ACCESSOR | 1979 #undef DECLARE_HYDROGEN_ACCESSOR |
1981 #undef DECLARE_INSTRUCTION | 1980 #undef DECLARE_INSTRUCTION |
1982 #undef DECLARE_CONCRETE_INSTRUCTION | 1981 #undef DECLARE_CONCRETE_INSTRUCTION |
1983 | 1982 |
1984 } } // namespace v8::int | 1983 } } // namespace v8::int |
1985 | 1984 |
1986 #endif // V8_X64_LITHIUM_X64_H_ | 1985 #endif // V8_X64_LITHIUM_X64_H_ |
OLD | NEW |