| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 1676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1687 | 1687 |
| 1688 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") | 1688 DECLARE_CONCRETE_INSTRUCTION(LoadGlobalGeneric, "load-global-generic") |
| 1689 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) | 1689 DECLARE_HYDROGEN_ACCESSOR(LoadGlobalGeneric) |
| 1690 | 1690 |
| 1691 Handle<Object> name() const { return hydrogen()->name(); } | 1691 Handle<Object> name() const { return hydrogen()->name(); } |
| 1692 bool for_typeof() const { return hydrogen()->for_typeof(); } | 1692 bool for_typeof() const { return hydrogen()->for_typeof(); } |
| 1693 }; | 1693 }; |
| 1694 | 1694 |
| 1695 | 1695 |
| 1696 template<int T> | 1696 template<int T> |
| 1697 class LLoadKeyed V8_FINAL : public LTemplateInstruction<1, 2, T> { | 1697 class LLoadKeyed : public LTemplateInstruction<1, 2, T> { |
| 1698 public: | 1698 public: |
| 1699 LLoadKeyed(LOperand* elements, LOperand* key) { | 1699 LLoadKeyed(LOperand* elements, LOperand* key) { |
| 1700 this->inputs_[0] = elements; | 1700 this->inputs_[0] = elements; |
| 1701 this->inputs_[1] = key; | 1701 this->inputs_[1] = key; |
| 1702 } | 1702 } |
| 1703 | 1703 |
| 1704 LOperand* elements() { return this->inputs_[0]; } | 1704 LOperand* elements() { return this->inputs_[0]; } |
| 1705 LOperand* key() { return this->inputs_[1]; } | 1705 LOperand* key() { return this->inputs_[1]; } |
| 1706 ElementsKind elements_kind() const { | 1706 ElementsKind elements_kind() const { |
| 1707 return this->hydrogen()->elements_kind(); | 1707 return this->hydrogen()->elements_kind(); |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1801 inputs_[0] = value; | 1801 inputs_[0] = value; |
| 1802 } | 1802 } |
| 1803 | 1803 |
| 1804 LOperand* value() { return inputs_[0]; } | 1804 LOperand* value() { return inputs_[0]; } |
| 1805 | 1805 |
| 1806 DECLARE_CONCRETE_INSTRUCTION(MapEnumLength, "map-enum-length") | 1806 DECLARE_CONCRETE_INSTRUCTION(MapEnumLength, "map-enum-length") |
| 1807 }; | 1807 }; |
| 1808 | 1808 |
| 1809 | 1809 |
| 1810 template<int T> | 1810 template<int T> |
| 1811 class LUnaryMathOperation V8_FINAL : public LTemplateInstruction<1, 1, T> { | 1811 class LUnaryMathOperation : public LTemplateInstruction<1, 1, T> { |
| 1812 public: | 1812 public: |
| 1813 explicit LUnaryMathOperation(LOperand* value) { | 1813 explicit LUnaryMathOperation(LOperand* value) { |
| 1814 this->inputs_[0] = value; | 1814 this->inputs_[0] = value; |
| 1815 } | 1815 } |
| 1816 | 1816 |
| 1817 LOperand* value() { return this->inputs_[0]; } | 1817 LOperand* value() { return this->inputs_[0]; } |
| 1818 BuiltinFunctionId op() const { return this->hydrogen()->op(); } | 1818 BuiltinFunctionId op() const { return this->hydrogen()->op(); } |
| 1819 | 1819 |
| 1820 void PrintDataTo(StringStream* stream) V8_OVERRIDE; | 1820 void PrintDataTo(StringStream* stream) V8_OVERRIDE; |
| 1821 | 1821 |
| (...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2217 DECLARE_HYDROGEN_ACCESSOR(StackCheck) | 2217 DECLARE_HYDROGEN_ACCESSOR(StackCheck) |
| 2218 | 2218 |
| 2219 Label* done_label() { return &done_label_; } | 2219 Label* done_label() { return &done_label_; } |
| 2220 | 2220 |
| 2221 private: | 2221 private: |
| 2222 Label done_label_; | 2222 Label done_label_; |
| 2223 }; | 2223 }; |
| 2224 | 2224 |
| 2225 | 2225 |
| 2226 template<int T> | 2226 template<int T> |
| 2227 class LStoreKeyed V8_FINAL : public LTemplateInstruction<0, 3, T> { | 2227 class LStoreKeyed : public LTemplateInstruction<0, 3, T> { |
| 2228 public: | 2228 public: |
| 2229 LStoreKeyed(LOperand* elements, LOperand* key, LOperand* value) { | 2229 LStoreKeyed(LOperand* elements, LOperand* key, LOperand* value) { |
| 2230 this->inputs_[0] = elements; | 2230 this->inputs_[0] = elements; |
| 2231 this->inputs_[1] = key; | 2231 this->inputs_[1] = key; |
| 2232 this->inputs_[2] = value; | 2232 this->inputs_[2] = value; |
| 2233 } | 2233 } |
| 2234 | 2234 |
| 2235 bool is_external() const { return this->hydrogen()->is_external(); } | 2235 bool is_external() const { return this->hydrogen()->is_external(); } |
| 2236 LOperand* elements() { return this->inputs_[0]; } | 2236 LOperand* elements() { return this->inputs_[0]; } |
| 2237 LOperand* key() { return this->inputs_[1]; } | 2237 LOperand* key() { return this->inputs_[1]; } |
| (...skipping 727 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2965 | 2965 |
| 2966 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2966 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
| 2967 }; | 2967 }; |
| 2968 | 2968 |
| 2969 #undef DECLARE_HYDROGEN_ACCESSOR | 2969 #undef DECLARE_HYDROGEN_ACCESSOR |
| 2970 #undef DECLARE_CONCRETE_INSTRUCTION | 2970 #undef DECLARE_CONCRETE_INSTRUCTION |
| 2971 | 2971 |
| 2972 } } // namespace v8::internal | 2972 } } // namespace v8::internal |
| 2973 | 2973 |
| 2974 #endif // V8_A64_LITHIUM_A64_H_ | 2974 #endif // V8_A64_LITHIUM_A64_H_ |
| OLD | NEW |