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 826 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
837 public: | 837 public: |
838 LInstanceOfAndBranch(LOperand* left, LOperand* right) { | 838 LInstanceOfAndBranch(LOperand* left, LOperand* right) { |
839 inputs_[0] = left; | 839 inputs_[0] = left; |
840 inputs_[1] = right; | 840 inputs_[1] = right; |
841 } | 841 } |
842 | 842 |
843 DECLARE_CONCRETE_INSTRUCTION(InstanceOfAndBranch, "instance-of-and-branch") | 843 DECLARE_CONCRETE_INSTRUCTION(InstanceOfAndBranch, "instance-of-and-branch") |
844 }; | 844 }; |
845 | 845 |
846 | 846 |
847 class LInstanceOfKnownGlobal: public LTemplateInstruction<1, 1, 0> { | 847 class LInstanceOfKnownGlobal: public LTemplateInstruction<1, 1, 1> { |
848 public: | 848 public: |
849 explicit LInstanceOfKnownGlobal(LOperand* value) { | 849 LInstanceOfKnownGlobal(LOperand* value, LOperand* temp) { |
850 inputs_[0] = value; | 850 inputs_[0] = value; |
| 851 temps_[0] = temp; |
851 } | 852 } |
852 | 853 |
853 DECLARE_CONCRETE_INSTRUCTION(InstanceOfKnownGlobal, | 854 DECLARE_CONCRETE_INSTRUCTION(InstanceOfKnownGlobal, |
854 "instance-of-known-global") | 855 "instance-of-known-global") |
855 DECLARE_HYDROGEN_ACCESSOR(InstanceOfKnownGlobal) | 856 DECLARE_HYDROGEN_ACCESSOR(InstanceOfKnownGlobal) |
856 | 857 |
857 Handle<JSFunction> function() const { return hydrogen()->function(); } | 858 Handle<JSFunction> function() const { return hydrogen()->function(); } |
858 }; | 859 }; |
859 | 860 |
860 | 861 |
(...skipping 1201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2062 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2063 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2063 }; | 2064 }; |
2064 | 2065 |
2065 #undef DECLARE_HYDROGEN_ACCESSOR | 2066 #undef DECLARE_HYDROGEN_ACCESSOR |
2066 #undef DECLARE_INSTRUCTION | 2067 #undef DECLARE_INSTRUCTION |
2067 #undef DECLARE_CONCRETE_INSTRUCTION | 2068 #undef DECLARE_CONCRETE_INSTRUCTION |
2068 | 2069 |
2069 } } // namespace v8::int | 2070 } } // namespace v8::int |
2070 | 2071 |
2071 #endif // V8_X64_LITHIUM_X64_H_ | 2072 #endif // V8_X64_LITHIUM_X64_H_ |
OLD | NEW |