OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 V(StoreKeyedFastElement) \ | 252 V(StoreKeyedFastElement) \ |
253 V(StoreKeyedGeneric) \ | 253 V(StoreKeyedGeneric) \ |
254 V(StoreNamedField) \ | 254 V(StoreNamedField) \ |
255 V(StoreNamedGeneric) \ | 255 V(StoreNamedGeneric) \ |
256 V(SubI) \ | 256 V(SubI) \ |
257 V(TaggedToI) \ | 257 V(TaggedToI) \ |
258 V(Throw) \ | 258 V(Throw) \ |
259 V(Typeof) \ | 259 V(Typeof) \ |
260 V(TypeofIs) \ | 260 V(TypeofIs) \ |
261 V(TypeofIsAndBranch) \ | 261 V(TypeofIsAndBranch) \ |
| 262 V(IsConstructCall) \ |
| 263 V(IsConstructCallAndBranch) \ |
262 V(UnaryMathOperation) \ | 264 V(UnaryMathOperation) \ |
263 V(UnknownOSRValue) \ | 265 V(UnknownOSRValue) \ |
264 V(ValueOf) | 266 V(ValueOf) |
265 | 267 |
266 | 268 |
267 #define DECLARE_INSTRUCTION(type) \ | 269 #define DECLARE_INSTRUCTION(type) \ |
268 virtual bool Is##type() const { return true; } \ | 270 virtual bool Is##type() const { return true; } \ |
269 static L##type* cast(LInstruction* instr) { \ | 271 static L##type* cast(LInstruction* instr) { \ |
270 ASSERT(instr->Is##type()); \ | 272 ASSERT(instr->Is##type()); \ |
271 return reinterpret_cast<L##type*>(instr); \ | 273 return reinterpret_cast<L##type*>(instr); \ |
(...skipping 1484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1756 | 1758 |
1757 DECLARE_CONCRETE_INSTRUCTION(TypeofIsAndBranch, "typeof-is-and-branch") | 1759 DECLARE_CONCRETE_INSTRUCTION(TypeofIsAndBranch, "typeof-is-and-branch") |
1758 DECLARE_HYDROGEN_ACCESSOR(TypeofIs) | 1760 DECLARE_HYDROGEN_ACCESSOR(TypeofIs) |
1759 | 1761 |
1760 Handle<String> type_literal() { return hydrogen()->type_literal(); } | 1762 Handle<String> type_literal() { return hydrogen()->type_literal(); } |
1761 | 1763 |
1762 virtual void PrintDataTo(StringStream* stream); | 1764 virtual void PrintDataTo(StringStream* stream); |
1763 }; | 1765 }; |
1764 | 1766 |
1765 | 1767 |
| 1768 class LIsConstructCall: public LTemplateInstruction<1, 0, 0> { |
| 1769 public: |
| 1770 DECLARE_CONCRETE_INSTRUCTION(IsConstructCall, "is-construct-call") |
| 1771 DECLARE_HYDROGEN_ACCESSOR(IsConstructCall) |
| 1772 }; |
| 1773 |
| 1774 |
| 1775 class LIsConstructCallAndBranch: public LControlInstruction<0, 1> { |
| 1776 public: |
| 1777 explicit LIsConstructCallAndBranch(LOperand* temp) { |
| 1778 temps_[0] = temp; |
| 1779 } |
| 1780 |
| 1781 DECLARE_CONCRETE_INSTRUCTION(IsConstructCallAndBranch, |
| 1782 "is-construct-call-and-branch") |
| 1783 }; |
| 1784 |
| 1785 |
1766 class LDeleteProperty: public LTemplateInstruction<1, 2, 0> { | 1786 class LDeleteProperty: public LTemplateInstruction<1, 2, 0> { |
1767 public: | 1787 public: |
1768 LDeleteProperty(LOperand* obj, LOperand* key) { | 1788 LDeleteProperty(LOperand* obj, LOperand* key) { |
1769 inputs_[0] = obj; | 1789 inputs_[0] = obj; |
1770 inputs_[1] = key; | 1790 inputs_[1] = key; |
1771 } | 1791 } |
1772 | 1792 |
1773 DECLARE_CONCRETE_INSTRUCTION(DeleteProperty, "delete-property") | 1793 DECLARE_CONCRETE_INSTRUCTION(DeleteProperty, "delete-property") |
1774 | 1794 |
1775 LOperand* object() { return inputs_[0]; } | 1795 LOperand* object() { return inputs_[0]; } |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2022 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2042 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2023 }; | 2043 }; |
2024 | 2044 |
2025 #undef DECLARE_HYDROGEN_ACCESSOR | 2045 #undef DECLARE_HYDROGEN_ACCESSOR |
2026 #undef DECLARE_INSTRUCTION | 2046 #undef DECLARE_INSTRUCTION |
2027 #undef DECLARE_CONCRETE_INSTRUCTION | 2047 #undef DECLARE_CONCRETE_INSTRUCTION |
2028 | 2048 |
2029 } } // namespace v8::int | 2049 } } // namespace v8::int |
2030 | 2050 |
2031 #endif // V8_X64_LITHIUM_X64_H_ | 2051 #endif // V8_X64_LITHIUM_X64_H_ |
OLD | NEW |