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 1691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1702 ? UseTempRegister(instr->value()) | 1702 ? UseTempRegister(instr->value()) |
1703 : UseRegisterAtStart(instr->value()); | 1703 : UseRegisterAtStart(instr->value()); |
1704 LOperand* key = needs_write_barrier | 1704 LOperand* key = needs_write_barrier |
1705 ? UseTempRegister(instr->key()) | 1705 ? UseTempRegister(instr->key()) |
1706 : UseRegisterOrConstantAtStart(instr->key()); | 1706 : UseRegisterOrConstantAtStart(instr->key()); |
1707 | 1707 |
1708 return AssignEnvironment(new LStoreKeyedFastElement(obj, key, val)); | 1708 return AssignEnvironment(new LStoreKeyedFastElement(obj, key, val)); |
1709 } | 1709 } |
1710 | 1710 |
1711 | 1711 |
| 1712 LInstruction* LChunkBuilder::DoStorePixelArrayElement( |
| 1713 HStorePixelArrayElement* instr) { |
| 1714 ASSERT(instr->value()->representation().IsInteger32()); |
| 1715 ASSERT(instr->external_pointer()->representation().IsExternal()); |
| 1716 ASSERT(instr->key()->representation().IsInteger32()); |
| 1717 |
| 1718 LOperand* external_pointer = UseRegister(instr->external_pointer()); |
| 1719 LOperand* val = UseTempRegister(instr->value()); |
| 1720 LOperand* key = UseRegister(instr->key()); |
| 1721 |
| 1722 return new LStorePixelArrayElement(external_pointer, key, val); |
| 1723 } |
| 1724 |
| 1725 |
1712 LInstruction* LChunkBuilder::DoStoreKeyedGeneric(HStoreKeyedGeneric* instr) { | 1726 LInstruction* LChunkBuilder::DoStoreKeyedGeneric(HStoreKeyedGeneric* instr) { |
1713 Abort("Unimplemented: %s", "DoStoreKeyedGeneric"); | 1727 Abort("Unimplemented: %s", "DoStoreKeyedGeneric"); |
1714 return NULL; | 1728 return NULL; |
1715 } | 1729 } |
1716 | 1730 |
1717 | 1731 |
1718 LInstruction* LChunkBuilder::DoStoreNamedField(HStoreNamedField* instr) { | 1732 LInstruction* LChunkBuilder::DoStoreNamedField(HStoreNamedField* instr) { |
1719 bool needs_write_barrier = instr->NeedsWriteBarrier(); | 1733 bool needs_write_barrier = instr->NeedsWriteBarrier(); |
1720 | 1734 |
1721 LOperand* obj = needs_write_barrier | 1735 LOperand* obj = needs_write_barrier |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1888 | 1902 |
1889 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { | 1903 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { |
1890 HEnvironment* outer = current_block_->last_environment()->outer(); | 1904 HEnvironment* outer = current_block_->last_environment()->outer(); |
1891 current_block_->UpdateEnvironment(outer); | 1905 current_block_->UpdateEnvironment(outer); |
1892 return NULL; | 1906 return NULL; |
1893 } | 1907 } |
1894 | 1908 |
1895 } } // namespace v8::internal | 1909 } } // namespace v8::internal |
1896 | 1910 |
1897 #endif // V8_TARGET_ARCH_X64 | 1911 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |