| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 | 42 |
| 43 #define LITHIUM_ALL_INSTRUCTION_LIST(V) \ | 43 #define LITHIUM_ALL_INSTRUCTION_LIST(V) \ |
| 44 V(ControlInstruction) \ | 44 V(ControlInstruction) \ |
| 45 V(Call) \ | 45 V(Call) \ |
| 46 LITHIUM_CONCRETE_INSTRUCTION_LIST(V) | 46 LITHIUM_CONCRETE_INSTRUCTION_LIST(V) |
| 47 | 47 |
| 48 | 48 |
| 49 #define LITHIUM_CONCRETE_INSTRUCTION_LIST(V) \ | 49 #define LITHIUM_CONCRETE_INSTRUCTION_LIST(V) \ |
| 50 V(AccessArgumentsAt) \ | 50 V(AccessArgumentsAt) \ |
| 51 V(AddI) \ | 51 V(AddI) \ |
| 52 V(Allocate) \ |
| 52 V(AllocateObject) \ | 53 V(AllocateObject) \ |
| 53 V(ApplyArguments) \ | 54 V(ApplyArguments) \ |
| 54 V(ArgumentsElements) \ | 55 V(ArgumentsElements) \ |
| 55 V(ArgumentsLength) \ | 56 V(ArgumentsLength) \ |
| 56 V(ArithmeticD) \ | 57 V(ArithmeticD) \ |
| 57 V(ArithmeticT) \ | 58 V(ArithmeticT) \ |
| 58 V(ArrayLiteral) \ | 59 V(ArrayLiteral) \ |
| 59 V(BitI) \ | 60 V(BitI) \ |
| 60 V(BitNotI) \ | 61 V(BitNotI) \ |
| 61 V(BoundsCheck) \ | 62 V(BoundsCheck) \ |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 V(StringCharCodeAt) \ | 167 V(StringCharCodeAt) \ |
| 167 V(StringCharFromCode) \ | 168 V(StringCharFromCode) \ |
| 168 V(StringCompareAndBranch) \ | 169 V(StringCompareAndBranch) \ |
| 169 V(StringLength) \ | 170 V(StringLength) \ |
| 170 V(SubI) \ | 171 V(SubI) \ |
| 171 V(TaggedToI) \ | 172 V(TaggedToI) \ |
| 172 V(ThisFunction) \ | 173 V(ThisFunction) \ |
| 173 V(Throw) \ | 174 V(Throw) \ |
| 174 V(ToFastProperties) \ | 175 V(ToFastProperties) \ |
| 175 V(TransitionElementsKind) \ | 176 V(TransitionElementsKind) \ |
| 177 V(TrapAllocationMemento) \ |
| 176 V(Typeof) \ | 178 V(Typeof) \ |
| 177 V(TypeofIsAndBranch) \ | 179 V(TypeofIsAndBranch) \ |
| 178 V(UnaryMathOperation) \ | 180 V(UnaryMathOperation) \ |
| 179 V(UnknownOSRValue) \ | 181 V(UnknownOSRValue) \ |
| 180 V(ValueOf) \ | 182 V(ValueOf) \ |
| 181 V(ForInPrepareMap) \ | 183 V(ForInPrepareMap) \ |
| 182 V(ForInCacheArray) \ | 184 V(ForInCacheArray) \ |
| 183 V(CheckMapValue) \ | 185 V(CheckMapValue) \ |
| 184 V(LoadFieldByIndex) \ | 186 V(LoadFieldByIndex) \ |
| 185 V(DateField) \ | 187 V(DateField) \ |
| (...skipping 1384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1570 class LThisFunction: public LTemplateInstruction<1, 0, 0> { | 1572 class LThisFunction: public LTemplateInstruction<1, 0, 0> { |
| 1571 public: | 1573 public: |
| 1572 DECLARE_CONCRETE_INSTRUCTION(ThisFunction, "this-function") | 1574 DECLARE_CONCRETE_INSTRUCTION(ThisFunction, "this-function") |
| 1573 DECLARE_HYDROGEN_ACCESSOR(ThisFunction) | 1575 DECLARE_HYDROGEN_ACCESSOR(ThisFunction) |
| 1574 }; | 1576 }; |
| 1575 | 1577 |
| 1576 | 1578 |
| 1577 class LContext: public LTemplateInstruction<1, 0, 0> { | 1579 class LContext: public LTemplateInstruction<1, 0, 0> { |
| 1578 public: | 1580 public: |
| 1579 DECLARE_CONCRETE_INSTRUCTION(Context, "context") | 1581 DECLARE_CONCRETE_INSTRUCTION(Context, "context") |
| 1582 DECLARE_HYDROGEN_ACCESSOR(Context) |
| 1580 }; | 1583 }; |
| 1581 | 1584 |
| 1582 | 1585 |
| 1583 class LOuterContext: public LTemplateInstruction<1, 1, 0> { | 1586 class LOuterContext: public LTemplateInstruction<1, 1, 0> { |
| 1584 public: | 1587 public: |
| 1585 explicit LOuterContext(LOperand* context) { | 1588 explicit LOuterContext(LOperand* context) { |
| 1586 inputs_[0] = context; | 1589 inputs_[0] = context; |
| 1587 } | 1590 } |
| 1588 | 1591 |
| 1589 LOperand* context() { return inputs_[0]; } | 1592 LOperand* context() { return inputs_[0]; } |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1797 public: | 1800 public: |
| 1798 explicit LNumberTagD(LOperand* value, LOperand* temp) { | 1801 explicit LNumberTagD(LOperand* value, LOperand* temp) { |
| 1799 inputs_[0] = value; | 1802 inputs_[0] = value; |
| 1800 temps_[0] = temp; | 1803 temps_[0] = temp; |
| 1801 } | 1804 } |
| 1802 | 1805 |
| 1803 LOperand* value() { return inputs_[0]; } | 1806 LOperand* value() { return inputs_[0]; } |
| 1804 LOperand* temp() { return temps_[0]; } | 1807 LOperand* temp() { return temps_[0]; } |
| 1805 | 1808 |
| 1806 DECLARE_CONCRETE_INSTRUCTION(NumberTagD, "number-tag-d") | 1809 DECLARE_CONCRETE_INSTRUCTION(NumberTagD, "number-tag-d") |
| 1810 DECLARE_HYDROGEN_ACCESSOR(Change) |
| 1807 }; | 1811 }; |
| 1808 | 1812 |
| 1809 | 1813 |
| 1810 // Sometimes truncating conversion from a tagged value to an int32. | 1814 // Sometimes truncating conversion from a tagged value to an int32. |
| 1811 class LDoubleToI: public LTemplateInstruction<1, 1, 0> { | 1815 class LDoubleToI: public LTemplateInstruction<1, 1, 0> { |
| 1812 public: | 1816 public: |
| 1813 explicit LDoubleToI(LOperand* value) { | 1817 explicit LDoubleToI(LOperand* value) { |
| 1814 inputs_[0] = value; | 1818 inputs_[0] = value; |
| 1815 } | 1819 } |
| 1816 | 1820 |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1991 | 1995 |
| 1992 virtual void PrintDataTo(StringStream* stream); | 1996 virtual void PrintDataTo(StringStream* stream); |
| 1993 | 1997 |
| 1994 Handle<Map> original_map() { return hydrogen()->original_map(); } | 1998 Handle<Map> original_map() { return hydrogen()->original_map(); } |
| 1995 Handle<Map> transitioned_map() { return hydrogen()->transitioned_map(); } | 1999 Handle<Map> transitioned_map() { return hydrogen()->transitioned_map(); } |
| 1996 ElementsKind from_kind() { return hydrogen()->from_kind(); } | 2000 ElementsKind from_kind() { return hydrogen()->from_kind(); } |
| 1997 ElementsKind to_kind() { return hydrogen()->to_kind(); } | 2001 ElementsKind to_kind() { return hydrogen()->to_kind(); } |
| 1998 }; | 2002 }; |
| 1999 | 2003 |
| 2000 | 2004 |
| 2005 class LTrapAllocationMemento : public LTemplateInstruction<0, 1, 1> { |
| 2006 public: |
| 2007 LTrapAllocationMemento(LOperand* object, |
| 2008 LOperand* temp) { |
| 2009 inputs_[0] = object; |
| 2010 temps_[0] = temp; |
| 2011 } |
| 2012 |
| 2013 LOperand* object() { return inputs_[0]; } |
| 2014 LOperand* temp() { return temps_[0]; } |
| 2015 |
| 2016 DECLARE_CONCRETE_INSTRUCTION(TrapAllocationMemento, |
| 2017 "trap-allocation-memento") |
| 2018 }; |
| 2019 |
| 2020 |
| 2001 class LStringAdd: public LTemplateInstruction<1, 2, 0> { | 2021 class LStringAdd: public LTemplateInstruction<1, 2, 0> { |
| 2002 public: | 2022 public: |
| 2003 LStringAdd(LOperand* left, LOperand* right) { | 2023 LStringAdd(LOperand* left, LOperand* right) { |
| 2004 inputs_[0] = left; | 2024 inputs_[0] = left; |
| 2005 inputs_[1] = right; | 2025 inputs_[1] = right; |
| 2006 } | 2026 } |
| 2007 | 2027 |
| 2008 LOperand* left() { return inputs_[0]; } | 2028 LOperand* left() { return inputs_[0]; } |
| 2009 LOperand* right() { return inputs_[1]; } | 2029 LOperand* right() { return inputs_[1]; } |
| 2010 | 2030 |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2180 temps_[0] = temp; | 2200 temps_[0] = temp; |
| 2181 } | 2201 } |
| 2182 | 2202 |
| 2183 LOperand* temp() { return temps_[0]; } | 2203 LOperand* temp() { return temps_[0]; } |
| 2184 | 2204 |
| 2185 DECLARE_CONCRETE_INSTRUCTION(AllocateObject, "allocate-object") | 2205 DECLARE_CONCRETE_INSTRUCTION(AllocateObject, "allocate-object") |
| 2186 DECLARE_HYDROGEN_ACCESSOR(AllocateObject) | 2206 DECLARE_HYDROGEN_ACCESSOR(AllocateObject) |
| 2187 }; | 2207 }; |
| 2188 | 2208 |
| 2189 | 2209 |
| 2210 class LAllocate: public LTemplateInstruction<1, 1, 1> { |
| 2211 public: |
| 2212 LAllocate(LOperand* size, LOperand* temp) { |
| 2213 inputs_[0] = size; |
| 2214 temps_[0] = temp; |
| 2215 } |
| 2216 |
| 2217 LOperand* size() { return inputs_[0]; } |
| 2218 LOperand* temp() { return temps_[0]; } |
| 2219 |
| 2220 DECLARE_CONCRETE_INSTRUCTION(Allocate, "allocate") |
| 2221 DECLARE_HYDROGEN_ACCESSOR(Allocate) |
| 2222 }; |
| 2223 |
| 2224 |
| 2190 class LFastLiteral: public LTemplateInstruction<1, 0, 0> { | 2225 class LFastLiteral: public LTemplateInstruction<1, 0, 0> { |
| 2191 public: | 2226 public: |
| 2192 DECLARE_CONCRETE_INSTRUCTION(FastLiteral, "fast-literal") | 2227 DECLARE_CONCRETE_INSTRUCTION(FastLiteral, "fast-literal") |
| 2193 DECLARE_HYDROGEN_ACCESSOR(FastLiteral) | 2228 DECLARE_HYDROGEN_ACCESSOR(FastLiteral) |
| 2194 }; | 2229 }; |
| 2195 | 2230 |
| 2196 | 2231 |
| 2197 class LArrayLiteral: public LTemplateInstruction<1, 0, 0> { | 2232 class LArrayLiteral: public LTemplateInstruction<1, 0, 0> { |
| 2198 public: | 2233 public: |
| 2199 DECLARE_CONCRETE_INSTRUCTION(ArrayLiteral, "array-literal") | 2234 DECLARE_CONCRETE_INSTRUCTION(ArrayLiteral, "array-literal") |
| (...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2553 | 2588 |
| 2554 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2589 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2555 }; | 2590 }; |
| 2556 | 2591 |
| 2557 #undef DECLARE_HYDROGEN_ACCESSOR | 2592 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2558 #undef DECLARE_CONCRETE_INSTRUCTION | 2593 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2559 | 2594 |
| 2560 } } // namespace v8::int | 2595 } } // namespace v8::int |
| 2561 | 2596 |
| 2562 #endif // V8_X64_LITHIUM_X64_H_ | 2597 #endif // V8_X64_LITHIUM_X64_H_ |
| OLD | NEW |