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 1760 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1771 LOperand* function() { return inputs_[0]; } | 1771 LOperand* function() { return inputs_[0]; } |
1772 LOperand* code_object() { return temps_[0]; } | 1772 LOperand* code_object() { return temps_[0]; } |
1773 | 1773 |
1774 virtual void PrintDataTo(StringStream* stream); | 1774 virtual void PrintDataTo(StringStream* stream); |
1775 | 1775 |
1776 DECLARE_CONCRETE_INSTRUCTION(StoreCodeEntry, "store-code-entry") | 1776 DECLARE_CONCRETE_INSTRUCTION(StoreCodeEntry, "store-code-entry") |
1777 DECLARE_HYDROGEN_ACCESSOR(StoreCodeEntry) | 1777 DECLARE_HYDROGEN_ACCESSOR(StoreCodeEntry) |
1778 }; | 1778 }; |
1779 | 1779 |
1780 | 1780 |
1781 class LInnerAllocatedObject V8_FINAL: public LTemplateInstruction<1, 1, 0> { | 1781 class LInnerAllocatedObject V8_FINAL: public LTemplateInstruction<1, 2, 0> { |
1782 public: | 1782 public: |
1783 explicit LInnerAllocatedObject(LOperand* base_object) { | 1783 LInnerAllocatedObject(LOperand* base_object, LOperand* offset) { |
1784 inputs_[0] = base_object; | 1784 inputs_[0] = base_object; |
| 1785 inputs_[1] = offset; |
1785 } | 1786 } |
1786 | 1787 |
1787 LOperand* base_object() { return inputs_[0]; } | 1788 LOperand* base_object() const { return inputs_[0]; } |
1788 int offset() { return hydrogen()->offset(); } | 1789 LOperand* offset() const { return inputs_[1]; } |
1789 | 1790 |
1790 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; | 1791 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; |
1791 | 1792 |
1792 DECLARE_CONCRETE_INSTRUCTION(InnerAllocatedObject, "sub-allocated-object") | 1793 DECLARE_CONCRETE_INSTRUCTION(InnerAllocatedObject, "inner-allocated-object") |
1793 DECLARE_HYDROGEN_ACCESSOR(InnerAllocatedObject) | |
1794 }; | 1794 }; |
1795 | 1795 |
1796 | 1796 |
1797 class LThisFunction V8_FINAL : public LTemplateInstruction<1, 0, 0> { | 1797 class LThisFunction V8_FINAL : public LTemplateInstruction<1, 0, 0> { |
1798 public: | 1798 public: |
1799 DECLARE_CONCRETE_INSTRUCTION(ThisFunction, "this-function") | 1799 DECLARE_CONCRETE_INSTRUCTION(ThisFunction, "this-function") |
1800 DECLARE_HYDROGEN_ACCESSOR(ThisFunction) | 1800 DECLARE_HYDROGEN_ACCESSOR(ThisFunction) |
1801 }; | 1801 }; |
1802 | 1802 |
1803 | 1803 |
(...skipping 1084 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2888 | 2888 |
2889 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2889 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2890 }; | 2890 }; |
2891 | 2891 |
2892 #undef DECLARE_HYDROGEN_ACCESSOR | 2892 #undef DECLARE_HYDROGEN_ACCESSOR |
2893 #undef DECLARE_CONCRETE_INSTRUCTION | 2893 #undef DECLARE_CONCRETE_INSTRUCTION |
2894 | 2894 |
2895 } } // namespace v8::internal | 2895 } } // namespace v8::internal |
2896 | 2896 |
2897 #endif // V8_MIPS_LITHIUM_MIPS_H_ | 2897 #endif // V8_MIPS_LITHIUM_MIPS_H_ |
OLD | NEW |