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 987 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
998 public: | 998 public: |
999 explicit LFixedArrayLength(LOperand* value) { | 999 explicit LFixedArrayLength(LOperand* value) { |
1000 inputs_[0] = value; | 1000 inputs_[0] = value; |
1001 } | 1001 } |
1002 | 1002 |
1003 DECLARE_CONCRETE_INSTRUCTION(FixedArrayLength, "fixed-array-length") | 1003 DECLARE_CONCRETE_INSTRUCTION(FixedArrayLength, "fixed-array-length") |
1004 DECLARE_HYDROGEN_ACCESSOR(FixedArrayLength) | 1004 DECLARE_HYDROGEN_ACCESSOR(FixedArrayLength) |
1005 }; | 1005 }; |
1006 | 1006 |
1007 | 1007 |
1008 class LValueOf: public LTemplateInstruction<1, 1, 1> { | 1008 class LValueOf: public LTemplateInstruction<1, 1, 0> { |
1009 public: | 1009 public: |
1010 LValueOf(LOperand* value, LOperand* temp) { | 1010 explicit LValueOf(LOperand* value) { |
1011 inputs_[0] = value; | 1011 inputs_[0] = value; |
1012 temps_[0] = temp; | |
1013 } | 1012 } |
1014 | 1013 |
1015 DECLARE_CONCRETE_INSTRUCTION(ValueOf, "value-of") | 1014 DECLARE_CONCRETE_INSTRUCTION(ValueOf, "value-of") |
1016 DECLARE_HYDROGEN_ACCESSOR(ValueOf) | 1015 DECLARE_HYDROGEN_ACCESSOR(ValueOf) |
1017 }; | 1016 }; |
1018 | 1017 |
1019 | 1018 |
1020 class LThrow: public LTemplateInstruction<0, 1, 0> { | 1019 class LThrow: public LTemplateInstruction<0, 1, 0> { |
1021 public: | 1020 public: |
1022 explicit LThrow(LOperand* value) { | 1021 explicit LThrow(LOperand* value) { |
(...skipping 976 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1999 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 1998 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2000 }; | 1999 }; |
2001 | 2000 |
2002 #undef DECLARE_HYDROGEN_ACCESSOR | 2001 #undef DECLARE_HYDROGEN_ACCESSOR |
2003 #undef DECLARE_INSTRUCTION | 2002 #undef DECLARE_INSTRUCTION |
2004 #undef DECLARE_CONCRETE_INSTRUCTION | 2003 #undef DECLARE_CONCRETE_INSTRUCTION |
2005 | 2004 |
2006 } } // namespace v8::int | 2005 } } // namespace v8::int |
2007 | 2006 |
2008 #endif // V8_X64_LITHIUM_X64_H_ | 2007 #endif // V8_X64_LITHIUM_X64_H_ |
OLD | NEW |