| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 V(StoreKeyed) \ | 158 V(StoreKeyed) \ |
| 159 V(StoreKeyedGeneric) \ | 159 V(StoreKeyedGeneric) \ |
| 160 V(StoreNamedField) \ | 160 V(StoreNamedField) \ |
| 161 V(StoreNamedGeneric) \ | 161 V(StoreNamedGeneric) \ |
| 162 V(StringAdd) \ | 162 V(StringAdd) \ |
| 163 V(StringCharCodeAt) \ | 163 V(StringCharCodeAt) \ |
| 164 V(StringCharFromCode) \ | 164 V(StringCharFromCode) \ |
| 165 V(StringCompareAndBranch) \ | 165 V(StringCompareAndBranch) \ |
| 166 V(SubI) \ | 166 V(SubI) \ |
| 167 V(TaggedToI) \ | 167 V(TaggedToI) \ |
| 168 V(TaggedToSmi) \ |
| 168 V(ThisFunction) \ | 169 V(ThisFunction) \ |
| 169 V(ToFastProperties) \ | 170 V(ToFastProperties) \ |
| 170 V(TransitionElementsKind) \ | 171 V(TransitionElementsKind) \ |
| 171 V(TrapAllocationMemento) \ | 172 V(TrapAllocationMemento) \ |
| 172 V(Typeof) \ | 173 V(Typeof) \ |
| 173 V(TypeofIsAndBranch) \ | 174 V(TypeofIsAndBranch) \ |
| 174 V(Uint32ToDouble) \ | 175 V(Uint32ToDouble) \ |
| 175 V(Uint32ToSmi) \ | 176 V(Uint32ToSmi) \ |
| 176 V(UnknownOSRValue) \ | 177 V(UnknownOSRValue) \ |
| 177 V(WrapReceiver) | 178 V(WrapReceiver) |
| (...skipping 1808 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1986 class LDoubleToSmi V8_FINAL : public LTemplateInstruction<1, 1, 0> { | 1987 class LDoubleToSmi V8_FINAL : public LTemplateInstruction<1, 1, 0> { |
| 1987 public: | 1988 public: |
| 1988 explicit LDoubleToSmi(LOperand* value) { | 1989 explicit LDoubleToSmi(LOperand* value) { |
| 1989 inputs_[0] = value; | 1990 inputs_[0] = value; |
| 1990 } | 1991 } |
| 1991 | 1992 |
| 1992 LOperand* value() { return inputs_[0]; } | 1993 LOperand* value() { return inputs_[0]; } |
| 1993 | 1994 |
| 1994 DECLARE_CONCRETE_INSTRUCTION(DoubleToSmi, "double-to-smi") | 1995 DECLARE_CONCRETE_INSTRUCTION(DoubleToSmi, "double-to-smi") |
| 1995 DECLARE_HYDROGEN_ACCESSOR(UnaryOperation) | 1996 DECLARE_HYDROGEN_ACCESSOR(UnaryOperation) |
| 1997 |
| 1998 bool truncating() { return hydrogen()->CanTruncateToSmi(); } |
| 1996 }; | 1999 }; |
| 1997 | 2000 |
| 1998 | 2001 |
| 1999 // Truncating conversion from a tagged value to an int32. | 2002 // Truncating conversion from a tagged value to an int32. |
| 2000 class LTaggedToI V8_FINAL : public LTemplateInstruction<1, 1, 1> { | 2003 class LTaggedToI V8_FINAL : public LTemplateInstruction<1, 1, 1> { |
| 2001 public: | 2004 public: |
| 2002 LTaggedToI(LOperand* value, LOperand* temp) { | 2005 LTaggedToI(LOperand* value, LOperand* temp) { |
| 2003 inputs_[0] = value; | 2006 inputs_[0] = value; |
| 2004 temps_[0] = temp; | 2007 temps_[0] = temp; |
| 2005 } | 2008 } |
| 2006 | 2009 |
| 2007 LOperand* value() { return inputs_[0]; } | 2010 LOperand* value() { return inputs_[0]; } |
| 2008 LOperand* temp() { return temps_[0]; } | 2011 LOperand* temp() { return temps_[0]; } |
| 2009 | 2012 |
| 2010 DECLARE_CONCRETE_INSTRUCTION(TaggedToI, "tagged-to-i") | 2013 DECLARE_CONCRETE_INSTRUCTION(TaggedToI, "tagged-to-i") |
| 2011 DECLARE_HYDROGEN_ACCESSOR(Change) | 2014 DECLARE_HYDROGEN_ACCESSOR(Change) |
| 2012 | 2015 |
| 2013 bool truncating() { return hydrogen()->CanTruncateToInt32(); } | 2016 bool truncating() { return hydrogen()->CanTruncateToInt32(); } |
| 2014 }; | 2017 }; |
| 2015 | 2018 |
| 2016 | 2019 |
| 2020 class LTaggedToSmi V8_FINAL : public LTemplateInstruction<1, 1, 1> { |
| 2021 public: |
| 2022 LTaggedToSmi(LOperand* value, LOperand* temp) { |
| 2023 inputs_[0] = value; |
| 2024 temps_[0] = temp; |
| 2025 } |
| 2026 |
| 2027 LOperand* value() { return inputs_[0]; } |
| 2028 LOperand* temp() { return temps_[0]; } |
| 2029 |
| 2030 DECLARE_CONCRETE_INSTRUCTION(TaggedToSmi, "tagged-to-smi") |
| 2031 DECLARE_HYDROGEN_ACCESSOR(Change) |
| 2032 |
| 2033 bool truncating() { return hydrogen()->CanTruncateToSmi(); } |
| 2034 }; |
| 2035 |
| 2036 |
| 2017 class LSmiTag V8_FINAL : public LTemplateInstruction<1, 1, 0> { | 2037 class LSmiTag V8_FINAL : public LTemplateInstruction<1, 1, 0> { |
| 2018 public: | 2038 public: |
| 2019 explicit LSmiTag(LOperand* value) { | 2039 explicit LSmiTag(LOperand* value) { |
| 2020 inputs_[0] = value; | 2040 inputs_[0] = value; |
| 2021 } | 2041 } |
| 2022 | 2042 |
| 2023 LOperand* value() { return inputs_[0]; } | 2043 LOperand* value() { return inputs_[0]; } |
| 2024 | 2044 |
| 2025 DECLARE_CONCRETE_INSTRUCTION(SmiTag, "smi-tag") | 2045 DECLARE_CONCRETE_INSTRUCTION(SmiTag, "smi-tag") |
| 2026 }; | 2046 }; |
| (...skipping 714 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2741 | 2761 |
| 2742 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2762 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2743 }; | 2763 }; |
| 2744 | 2764 |
| 2745 #undef DECLARE_HYDROGEN_ACCESSOR | 2765 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2746 #undef DECLARE_CONCRETE_INSTRUCTION | 2766 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2747 | 2767 |
| 2748 } } // namespace v8::internal | 2768 } } // namespace v8::internal |
| 2749 | 2769 |
| 2750 #endif // V8_IA32_LITHIUM_IA32_H_ | 2770 #endif // V8_IA32_LITHIUM_IA32_H_ |
| OLD | NEW |