| 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 1447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1458 } | 1458 } |
| 1459 | 1459 |
| 1460 | 1460 |
| 1461 LInstruction* LChunkBuilder::DoPixelArrayLength(HPixelArrayLength* instr) { | 1461 LInstruction* LChunkBuilder::DoPixelArrayLength(HPixelArrayLength* instr) { |
| 1462 LOperand* array = UseRegisterAtStart(instr->value()); | 1462 LOperand* array = UseRegisterAtStart(instr->value()); |
| 1463 return DefineAsRegister(new LPixelArrayLength(array)); | 1463 return DefineAsRegister(new LPixelArrayLength(array)); |
| 1464 } | 1464 } |
| 1465 | 1465 |
| 1466 | 1466 |
| 1467 LInstruction* LChunkBuilder::DoValueOf(HValueOf* instr) { | 1467 LInstruction* LChunkBuilder::DoValueOf(HValueOf* instr) { |
| 1468 Abort("Unimplemented: %s", "DoValueOf"); | 1468 LOperand* object = UseRegister(instr->value()); |
| 1469 return NULL; | 1469 LValueOf* result = new LValueOf(object); |
| 1470 return AssignEnvironment(DefineSameAsFirst(result)); |
| 1470 } | 1471 } |
| 1471 | 1472 |
| 1472 | 1473 |
| 1473 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) { | 1474 LInstruction* LChunkBuilder::DoBoundsCheck(HBoundsCheck* instr) { |
| 1474 return AssignEnvironment(new LBoundsCheck(UseRegisterAtStart(instr->index()), | 1475 return AssignEnvironment(new LBoundsCheck(UseRegisterAtStart(instr->index()), |
| 1475 Use(instr->length()))); | 1476 Use(instr->length()))); |
| 1476 } | 1477 } |
| 1477 | 1478 |
| 1478 | 1479 |
| 1479 LInstruction* LChunkBuilder::DoAbnormalExit(HAbnormalExit* instr) { | 1480 LInstruction* LChunkBuilder::DoAbnormalExit(HAbnormalExit* instr) { |
| (...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1823 } | 1824 } |
| 1824 | 1825 |
| 1825 | 1826 |
| 1826 LInstruction* LChunkBuilder::DoCallStub(HCallStub* instr) { | 1827 LInstruction* LChunkBuilder::DoCallStub(HCallStub* instr) { |
| 1827 argument_count_ -= instr->argument_count(); | 1828 argument_count_ -= instr->argument_count(); |
| 1828 return MarkAsCall(DefineFixed(new LCallStub, rax), instr); | 1829 return MarkAsCall(DefineFixed(new LCallStub, rax), instr); |
| 1829 } | 1830 } |
| 1830 | 1831 |
| 1831 | 1832 |
| 1832 LInstruction* LChunkBuilder::DoArgumentsObject(HArgumentsObject* instr) { | 1833 LInstruction* LChunkBuilder::DoArgumentsObject(HArgumentsObject* instr) { |
| 1833 Abort("Unimplemented: %s", "DoArgumentsObject"); | 1834 // There are no real uses of the arguments object. |
| 1835 // arguments.length and element access are supported directly on |
| 1836 // stack arguments, and any real arguments object use causes a bailout. |
| 1837 // So this value is never used. |
| 1834 return NULL; | 1838 return NULL; |
| 1835 } | 1839 } |
| 1836 | 1840 |
| 1837 | 1841 |
| 1838 LInstruction* LChunkBuilder::DoAccessArgumentsAt(HAccessArgumentsAt* instr) { | 1842 LInstruction* LChunkBuilder::DoAccessArgumentsAt(HAccessArgumentsAt* instr) { |
| 1839 LOperand* arguments = UseRegister(instr->arguments()); | 1843 LOperand* arguments = UseRegister(instr->arguments()); |
| 1840 LOperand* length = UseTempRegister(instr->length()); | 1844 LOperand* length = UseTempRegister(instr->length()); |
| 1841 LOperand* index = Use(instr->index()); | 1845 LOperand* index = Use(instr->index()); |
| 1842 LAccessArgumentsAt* result = new LAccessArgumentsAt(arguments, length, index); | 1846 LAccessArgumentsAt* result = new LAccessArgumentsAt(arguments, length, index); |
| 1843 return AssignEnvironment(DefineAsRegister(result)); | 1847 return AssignEnvironment(DefineAsRegister(result)); |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1913 | 1917 |
| 1914 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { | 1918 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { |
| 1915 HEnvironment* outer = current_block_->last_environment()->outer(); | 1919 HEnvironment* outer = current_block_->last_environment()->outer(); |
| 1916 current_block_->UpdateEnvironment(outer); | 1920 current_block_->UpdateEnvironment(outer); |
| 1917 return NULL; | 1921 return NULL; |
| 1918 } | 1922 } |
| 1919 | 1923 |
| 1920 } } // namespace v8::internal | 1924 } } // namespace v8::internal |
| 1921 | 1925 |
| 1922 #endif // V8_TARGET_ARCH_X64 | 1926 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |