| 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 1764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1775 LInstruction* LChunkBuilder::DoStoreNamedGeneric(HStoreNamedGeneric* instr) { | 1775 LInstruction* LChunkBuilder::DoStoreNamedGeneric(HStoreNamedGeneric* instr) { |
| 1776 LOperand* object = UseFixed(instr->object(), rdx); | 1776 LOperand* object = UseFixed(instr->object(), rdx); |
| 1777 LOperand* value = UseFixed(instr->value(), rax); | 1777 LOperand* value = UseFixed(instr->value(), rax); |
| 1778 | 1778 |
| 1779 LStoreNamedGeneric* result = new LStoreNamedGeneric(object, value); | 1779 LStoreNamedGeneric* result = new LStoreNamedGeneric(object, value); |
| 1780 return MarkAsCall(result, instr); | 1780 return MarkAsCall(result, instr); |
| 1781 } | 1781 } |
| 1782 | 1782 |
| 1783 | 1783 |
| 1784 LInstruction* LChunkBuilder::DoStringCharCodeAt(HStringCharCodeAt* instr) { | 1784 LInstruction* LChunkBuilder::DoStringCharCodeAt(HStringCharCodeAt* instr) { |
| 1785 Abort("Unimplemented: %s", "DoStringCharCodeAt"); | 1785 LOperand* string = UseRegister(instr->string()); |
| 1786 return NULL; | 1786 LOperand* index = UseRegisterOrConstant(instr->index()); |
| 1787 LStringCharCodeAt* result = new LStringCharCodeAt(string, index); |
| 1788 return AssignEnvironment(AssignPointerMap(DefineAsRegister(result))); |
| 1787 } | 1789 } |
| 1788 | 1790 |
| 1789 | 1791 |
| 1790 LInstruction* LChunkBuilder::DoStringLength(HStringLength* instr) { | 1792 LInstruction* LChunkBuilder::DoStringLength(HStringLength* instr) { |
| 1791 LOperand* string = UseRegisterAtStart(instr->value()); | 1793 LOperand* string = UseRegisterAtStart(instr->value()); |
| 1792 return DefineAsRegister(new LStringLength(string)); | 1794 return DefineAsRegister(new LStringLength(string)); |
| 1793 } | 1795 } |
| 1794 | 1796 |
| 1795 | 1797 |
| 1796 LInstruction* LChunkBuilder::DoArrayLiteral(HArrayLiteral* instr) { | 1798 LInstruction* LChunkBuilder::DoArrayLiteral(HArrayLiteral* instr) { |
| 1797 return MarkAsCall(DefineFixed(new LArrayLiteral, rax), instr); | 1799 return MarkAsCall(DefineFixed(new LArrayLiteral, rax), instr); |
| 1798 } | 1800 } |
| 1799 | 1801 |
| 1800 | 1802 |
| 1801 LInstruction* LChunkBuilder::DoObjectLiteral(HObjectLiteral* instr) { | 1803 LInstruction* LChunkBuilder::DoObjectLiteral(HObjectLiteral* instr) { |
| 1802 return MarkAsCall(DefineFixed(new LObjectLiteral, rax), instr); | 1804 return MarkAsCall(DefineFixed(new LObjectLiteral, rax), instr); |
| 1803 } | 1805 } |
| 1804 | 1806 |
| 1805 | 1807 |
| 1806 LInstruction* LChunkBuilder::DoRegExpLiteral(HRegExpLiteral* instr) { | 1808 LInstruction* LChunkBuilder::DoRegExpLiteral(HRegExpLiteral* instr) { |
| 1807 Abort("Unimplemented: %s", "DoRegExpLiteral"); | 1809 return MarkAsCall(DefineFixed(new LRegExpLiteral, rax), instr); |
| 1808 return NULL; | |
| 1809 } | 1810 } |
| 1810 | 1811 |
| 1811 | 1812 |
| 1812 LInstruction* LChunkBuilder::DoFunctionLiteral(HFunctionLiteral* instr) { | 1813 LInstruction* LChunkBuilder::DoFunctionLiteral(HFunctionLiteral* instr) { |
| 1813 return MarkAsCall(DefineFixed(new LFunctionLiteral, rax), instr); | 1814 return MarkAsCall(DefineFixed(new LFunctionLiteral, rax), instr); |
| 1814 } | 1815 } |
| 1815 | 1816 |
| 1816 | 1817 |
| 1817 LInstruction* LChunkBuilder::DoDeleteProperty(HDeleteProperty* instr) { | 1818 LInstruction* LChunkBuilder::DoDeleteProperty(HDeleteProperty* instr) { |
| 1818 Abort("Unimplemented: %s", "DoDeleteProperty"); | 1819 Abort("Unimplemented: %s", "DoDeleteProperty"); |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1931 | 1932 |
| 1932 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { | 1933 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { |
| 1933 HEnvironment* outer = current_block_->last_environment()->outer(); | 1934 HEnvironment* outer = current_block_->last_environment()->outer(); |
| 1934 current_block_->UpdateEnvironment(outer); | 1935 current_block_->UpdateEnvironment(outer); |
| 1935 return NULL; | 1936 return NULL; |
| 1936 } | 1937 } |
| 1937 | 1938 |
| 1938 } } // namespace v8::internal | 1939 } } // namespace v8::internal |
| 1939 | 1940 |
| 1940 #endif // V8_TARGET_ARCH_X64 | 1941 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |