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 1537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1548 return DefineAsRegister(new LJSArrayLength(array)); | 1548 return DefineAsRegister(new LJSArrayLength(array)); |
1549 } | 1549 } |
1550 | 1550 |
1551 | 1551 |
1552 LInstruction* LChunkBuilder::DoFixedArrayLength(HFixedArrayLength* instr) { | 1552 LInstruction* LChunkBuilder::DoFixedArrayLength(HFixedArrayLength* instr) { |
1553 LOperand* array = UseRegisterAtStart(instr->value()); | 1553 LOperand* array = UseRegisterAtStart(instr->value()); |
1554 return DefineAsRegister(new LFixedArrayLength(array)); | 1554 return DefineAsRegister(new LFixedArrayLength(array)); |
1555 } | 1555 } |
1556 | 1556 |
1557 | 1557 |
1558 LInstruction* LChunkBuilder::DoPixelArrayLength(HPixelArrayLength* instr) { | 1558 LInstruction* LChunkBuilder::DoExternalArrayLength( |
| 1559 HExternalArrayLength* instr) { |
1559 LOperand* array = UseRegisterAtStart(instr->value()); | 1560 LOperand* array = UseRegisterAtStart(instr->value()); |
1560 return DefineAsRegister(new LPixelArrayLength(array)); | 1561 return DefineAsRegister(new LExternalArrayLength(array)); |
1561 } | 1562 } |
1562 | 1563 |
1563 | 1564 |
1564 LInstruction* LChunkBuilder::DoValueOf(HValueOf* instr) { | 1565 LInstruction* LChunkBuilder::DoValueOf(HValueOf* instr) { |
1565 LOperand* object = UseRegister(instr->value()); | 1566 LOperand* object = UseRegister(instr->value()); |
1566 LValueOf* result = new LValueOf(object); | 1567 LValueOf* result = new LValueOf(object); |
1567 return AssignEnvironment(DefineSameAsFirst(result)); | 1568 return AssignEnvironment(DefineSameAsFirst(result)); |
1568 } | 1569 } |
1569 | 1570 |
1570 | 1571 |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1762 new LLoadFunctionPrototype(UseRegister(instr->function())))); | 1763 new LLoadFunctionPrototype(UseRegister(instr->function())))); |
1763 } | 1764 } |
1764 | 1765 |
1765 | 1766 |
1766 LInstruction* LChunkBuilder::DoLoadElements(HLoadElements* instr) { | 1767 LInstruction* LChunkBuilder::DoLoadElements(HLoadElements* instr) { |
1767 LOperand* input = UseRegisterAtStart(instr->value()); | 1768 LOperand* input = UseRegisterAtStart(instr->value()); |
1768 return DefineAsRegister(new LLoadElements(input)); | 1769 return DefineAsRegister(new LLoadElements(input)); |
1769 } | 1770 } |
1770 | 1771 |
1771 | 1772 |
1772 LInstruction* LChunkBuilder::DoLoadPixelArrayExternalPointer( | 1773 LInstruction* LChunkBuilder::DoLoadExternalArrayPointer( |
1773 HLoadPixelArrayExternalPointer* instr) { | 1774 HLoadExternalArrayPointer* instr) { |
1774 LOperand* input = UseRegisterAtStart(instr->value()); | 1775 LOperand* input = UseRegisterAtStart(instr->value()); |
1775 return DefineAsRegister(new LLoadPixelArrayExternalPointer(input)); | 1776 return DefineAsRegister(new LLoadExternalArrayPointer(input)); |
1776 } | 1777 } |
1777 | 1778 |
1778 | 1779 |
1779 LInstruction* LChunkBuilder::DoLoadKeyedFastElement( | 1780 LInstruction* LChunkBuilder::DoLoadKeyedFastElement( |
1780 HLoadKeyedFastElement* instr) { | 1781 HLoadKeyedFastElement* instr) { |
1781 ASSERT(instr->representation().IsTagged()); | 1782 ASSERT(instr->representation().IsTagged()); |
1782 ASSERT(instr->key()->representation().IsInteger32()); | 1783 ASSERT(instr->key()->representation().IsInteger32()); |
1783 LOperand* obj = UseRegisterAtStart(instr->object()); | 1784 LOperand* obj = UseRegisterAtStart(instr->object()); |
1784 LOperand* key = UseRegisterAtStart(instr->key()); | 1785 LOperand* key = UseRegisterAtStart(instr->key()); |
1785 LLoadKeyedFastElement* result = new LLoadKeyedFastElement(obj, key); | 1786 LLoadKeyedFastElement* result = new LLoadKeyedFastElement(obj, key); |
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2037 | 2038 |
2038 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { | 2039 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { |
2039 HEnvironment* outer = current_block_->last_environment()->outer(); | 2040 HEnvironment* outer = current_block_->last_environment()->outer(); |
2040 current_block_->UpdateEnvironment(outer); | 2041 current_block_->UpdateEnvironment(outer); |
2041 return NULL; | 2042 return NULL; |
2042 } | 2043 } |
2043 | 2044 |
2044 } } // namespace v8::internal | 2045 } } // namespace v8::internal |
2045 | 2046 |
2046 #endif // V8_TARGET_ARCH_X64 | 2047 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |