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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 V(Power) \ | 153 V(Power) \ |
154 V(PushArgument) \ | 154 V(PushArgument) \ |
155 V(Random) \ | 155 V(Random) \ |
156 V(RegExpLiteral) \ | 156 V(RegExpLiteral) \ |
157 V(Return) \ | 157 V(Return) \ |
158 V(SeqStringSetChar) \ | 158 V(SeqStringSetChar) \ |
159 V(ShiftI) \ | 159 V(ShiftI) \ |
160 V(SmiTag) \ | 160 V(SmiTag) \ |
161 V(SmiUntag) \ | 161 V(SmiUntag) \ |
162 V(StackCheck) \ | 162 V(StackCheck) \ |
| 163 V(StoreCodeEntry) \ |
163 V(StoreContextSlot) \ | 164 V(StoreContextSlot) \ |
164 V(StoreGlobalCell) \ | 165 V(StoreGlobalCell) \ |
165 V(StoreGlobalGeneric) \ | 166 V(StoreGlobalGeneric) \ |
166 V(StoreKeyed) \ | 167 V(StoreKeyed) \ |
167 V(StoreKeyedGeneric) \ | 168 V(StoreKeyedGeneric) \ |
168 V(StoreNamedField) \ | 169 V(StoreNamedField) \ |
169 V(StoreNamedGeneric) \ | 170 V(StoreNamedGeneric) \ |
170 V(StringAdd) \ | 171 V(StringAdd) \ |
171 V(StringCharCodeAt) \ | 172 V(StringCharCodeAt) \ |
172 V(StringCharFromCode) \ | 173 V(StringCharFromCode) \ |
(...skipping 1513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1686 | 1687 |
1687 int count() const { return count_; } | 1688 int count() const { return count_; } |
1688 | 1689 |
1689 DECLARE_CONCRETE_INSTRUCTION(Drop, "drop") | 1690 DECLARE_CONCRETE_INSTRUCTION(Drop, "drop") |
1690 | 1691 |
1691 private: | 1692 private: |
1692 int count_; | 1693 int count_; |
1693 }; | 1694 }; |
1694 | 1695 |
1695 | 1696 |
1696 class LInnerAllocatedObject V8_FINAL : public LTemplateInstruction<1, 1, 0> { | 1697 class LStoreCodeEntry V8_FINAL: public LTemplateInstruction<0, 1, 1> { |
| 1698 public: |
| 1699 LStoreCodeEntry(LOperand* js_function, LOperand* code_object) { |
| 1700 inputs_[0] = js_function; |
| 1701 temps_[0] = code_object; |
| 1702 } |
| 1703 |
| 1704 LOperand* js_function() { return inputs_[0]; } |
| 1705 LOperand* code_object() { return temps_[0]; } |
| 1706 |
| 1707 virtual void PrintDataTo(StringStream* stream); |
| 1708 |
| 1709 DECLARE_CONCRETE_INSTRUCTION(StoreCodeEntry, "store-code-entry") |
| 1710 DECLARE_HYDROGEN_ACCESSOR(StoreCodeEntry) |
| 1711 }; |
| 1712 |
| 1713 |
| 1714 class LInnerAllocatedObject V8_FINAL: public LTemplateInstruction<1, 1, 0> { |
1697 public: | 1715 public: |
1698 explicit LInnerAllocatedObject(LOperand* base_object) { | 1716 explicit LInnerAllocatedObject(LOperand* base_object) { |
1699 inputs_[0] = base_object; | 1717 inputs_[0] = base_object; |
1700 } | 1718 } |
1701 | 1719 |
1702 LOperand* base_object() { return inputs_[0]; } | 1720 LOperand* base_object() { return inputs_[0]; } |
1703 int offset() { return hydrogen()->offset(); } | 1721 int offset() { return hydrogen()->offset(); } |
1704 | 1722 |
1705 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; | 1723 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; |
1706 | 1724 |
(...skipping 983 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2690 | 2708 |
2691 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2709 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2692 }; | 2710 }; |
2693 | 2711 |
2694 #undef DECLARE_HYDROGEN_ACCESSOR | 2712 #undef DECLARE_HYDROGEN_ACCESSOR |
2695 #undef DECLARE_CONCRETE_INSTRUCTION | 2713 #undef DECLARE_CONCRETE_INSTRUCTION |
2696 | 2714 |
2697 } } // namespace v8::int | 2715 } } // namespace v8::int |
2698 | 2716 |
2699 #endif // V8_X64_LITHIUM_X64_H_ | 2717 #endif // V8_X64_LITHIUM_X64_H_ |
OLD | NEW |