| 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 1559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1570 return DefineAsRegister(new LJSArrayLength(array)); | 1570 return DefineAsRegister(new LJSArrayLength(array)); |
| 1571 } | 1571 } |
| 1572 | 1572 |
| 1573 | 1573 |
| 1574 LInstruction* LChunkBuilder::DoFixedArrayLength(HFixedArrayLength* instr) { | 1574 LInstruction* LChunkBuilder::DoFixedArrayLength(HFixedArrayLength* instr) { |
| 1575 LOperand* array = UseRegisterAtStart(instr->value()); | 1575 LOperand* array = UseRegisterAtStart(instr->value()); |
| 1576 return DefineAsRegister(new LFixedArrayLength(array)); | 1576 return DefineAsRegister(new LFixedArrayLength(array)); |
| 1577 } | 1577 } |
| 1578 | 1578 |
| 1579 | 1579 |
| 1580 LInstruction* LChunkBuilder::DoPixelArrayLength(HPixelArrayLength* instr) { | 1580 LInstruction* LChunkBuilder::DoExternalArrayLength( |
| 1581 HExternalArrayLength* instr) { |
| 1581 LOperand* array = UseRegisterAtStart(instr->value()); | 1582 LOperand* array = UseRegisterAtStart(instr->value()); |
| 1582 return DefineAsRegister(new LPixelArrayLength(array)); | 1583 return DefineAsRegister(new LExternalArrayLength(array)); |
| 1583 } | 1584 } |
| 1584 | 1585 |
| 1585 | 1586 |
| 1586 LInstruction* LChunkBuilder::DoValueOf(HValueOf* instr) { | 1587 LInstruction* LChunkBuilder::DoValueOf(HValueOf* instr) { |
| 1587 LOperand* object = UseRegister(instr->value()); | 1588 LOperand* object = UseRegister(instr->value()); |
| 1588 LValueOf* result = new LValueOf(object, TempRegister()); | 1589 LValueOf* result = new LValueOf(object, TempRegister()); |
| 1589 return AssignEnvironment(DefineSameAsFirst(result)); | 1590 return AssignEnvironment(DefineSameAsFirst(result)); |
| 1590 } | 1591 } |
| 1591 | 1592 |
| 1592 | 1593 |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1793 TempRegister()))); | 1794 TempRegister()))); |
| 1794 } | 1795 } |
| 1795 | 1796 |
| 1796 | 1797 |
| 1797 LInstruction* LChunkBuilder::DoLoadElements(HLoadElements* instr) { | 1798 LInstruction* LChunkBuilder::DoLoadElements(HLoadElements* instr) { |
| 1798 LOperand* input = UseRegisterAtStart(instr->value()); | 1799 LOperand* input = UseRegisterAtStart(instr->value()); |
| 1799 return DefineAsRegister(new LLoadElements(input)); | 1800 return DefineAsRegister(new LLoadElements(input)); |
| 1800 } | 1801 } |
| 1801 | 1802 |
| 1802 | 1803 |
| 1803 LInstruction* LChunkBuilder::DoLoadPixelArrayExternalPointer( | 1804 LInstruction* LChunkBuilder::DoLoadExternalArrayPointer( |
| 1804 HLoadPixelArrayExternalPointer* instr) { | 1805 HLoadExternalArrayPointer* instr) { |
| 1805 LOperand* input = UseRegisterAtStart(instr->value()); | 1806 LOperand* input = UseRegisterAtStart(instr->value()); |
| 1806 return DefineAsRegister(new LLoadPixelArrayExternalPointer(input)); | 1807 return DefineAsRegister(new LLoadExternalArrayPointer(input)); |
| 1807 } | 1808 } |
| 1808 | 1809 |
| 1809 | 1810 |
| 1810 LInstruction* LChunkBuilder::DoLoadKeyedFastElement( | 1811 LInstruction* LChunkBuilder::DoLoadKeyedFastElement( |
| 1811 HLoadKeyedFastElement* instr) { | 1812 HLoadKeyedFastElement* instr) { |
| 1812 ASSERT(instr->representation().IsTagged()); | 1813 ASSERT(instr->representation().IsTagged()); |
| 1813 ASSERT(instr->key()->representation().IsInteger32()); | 1814 ASSERT(instr->key()->representation().IsInteger32()); |
| 1814 LOperand* obj = UseRegisterAtStart(instr->object()); | 1815 LOperand* obj = UseRegisterAtStart(instr->object()); |
| 1815 LOperand* key = UseRegisterAtStart(instr->key()); | 1816 LOperand* key = UseRegisterAtStart(instr->key()); |
| 1816 LLoadKeyedFastElement* result = new LLoadKeyedFastElement(obj, key); | 1817 LLoadKeyedFastElement* result = new LLoadKeyedFastElement(obj, key); |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2081 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { | 2082 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { |
| 2082 HEnvironment* outer = current_block_->last_environment()->outer(); | 2083 HEnvironment* outer = current_block_->last_environment()->outer(); |
| 2083 current_block_->UpdateEnvironment(outer); | 2084 current_block_->UpdateEnvironment(outer); |
| 2084 return NULL; | 2085 return NULL; |
| 2085 } | 2086 } |
| 2086 | 2087 |
| 2087 | 2088 |
| 2088 } } // namespace v8::internal | 2089 } } // namespace v8::internal |
| 2089 | 2090 |
| 2090 #endif // V8_TARGET_ARCH_IA32 | 2091 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |