| 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 923 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 934 | 934 |
| 935 class LConstantI: public LTemplateInstruction<1, 0, 0> { | 935 class LConstantI: public LTemplateInstruction<1, 0, 0> { |
| 936 public: | 936 public: |
| 937 DECLARE_CONCRETE_INSTRUCTION(ConstantI, "constant-i") | 937 DECLARE_CONCRETE_INSTRUCTION(ConstantI, "constant-i") |
| 938 DECLARE_HYDROGEN_ACCESSOR(Constant) | 938 DECLARE_HYDROGEN_ACCESSOR(Constant) |
| 939 | 939 |
| 940 int32_t value() const { return hydrogen()->Integer32Value(); } | 940 int32_t value() const { return hydrogen()->Integer32Value(); } |
| 941 }; | 941 }; |
| 942 | 942 |
| 943 | 943 |
| 944 class LConstantD: public LTemplateInstruction<1, 0, 0> { | 944 class LConstantD: public LTemplateInstruction<1, 0, 1> { |
| 945 public: | 945 public: |
| 946 explicit LConstantD(LOperand* temp) { |
| 947 temps_[0] = temp; |
| 948 } |
| 949 |
| 946 DECLARE_CONCRETE_INSTRUCTION(ConstantD, "constant-d") | 950 DECLARE_CONCRETE_INSTRUCTION(ConstantD, "constant-d") |
| 947 DECLARE_HYDROGEN_ACCESSOR(Constant) | 951 DECLARE_HYDROGEN_ACCESSOR(Constant) |
| 948 | 952 |
| 949 double value() const { return hydrogen()->DoubleValue(); } | 953 double value() const { return hydrogen()->DoubleValue(); } |
| 950 }; | 954 }; |
| 951 | 955 |
| 952 | 956 |
| 953 class LConstantT: public LTemplateInstruction<1, 0, 0> { | 957 class LConstantT: public LTemplateInstruction<1, 0, 0> { |
| 954 public: | 958 public: |
| 955 DECLARE_CONCRETE_INSTRUCTION(ConstantT, "constant-t") | 959 DECLARE_CONCRETE_INSTRUCTION(ConstantT, "constant-t") |
| (...skipping 1046 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2002 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2006 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2003 }; | 2007 }; |
| 2004 | 2008 |
| 2005 #undef DECLARE_HYDROGEN_ACCESSOR | 2009 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2006 #undef DECLARE_INSTRUCTION | 2010 #undef DECLARE_INSTRUCTION |
| 2007 #undef DECLARE_CONCRETE_INSTRUCTION | 2011 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2008 | 2012 |
| 2009 } } // namespace v8::internal | 2013 } } // namespace v8::internal |
| 2010 | 2014 |
| 2011 #endif // V8_IA32_LITHIUM_IA32_H_ | 2015 #endif // V8_IA32_LITHIUM_IA32_H_ |
| OLD | NEW |