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 1815 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1826 ? UseTempRegister(instr->value()) | 1826 ? UseTempRegister(instr->value()) |
1827 : UseRegisterAtStart(instr->value()); | 1827 : UseRegisterAtStart(instr->value()); |
1828 LOperand* key = needs_write_barrier | 1828 LOperand* key = needs_write_barrier |
1829 ? UseTempRegister(instr->key()) | 1829 ? UseTempRegister(instr->key()) |
1830 : UseRegisterOrConstantAtStart(instr->key()); | 1830 : UseRegisterOrConstantAtStart(instr->key()); |
1831 | 1831 |
1832 return AssignEnvironment(new LStoreKeyedFastElement(obj, key, val)); | 1832 return AssignEnvironment(new LStoreKeyedFastElement(obj, key, val)); |
1833 } | 1833 } |
1834 | 1834 |
1835 | 1835 |
1836 LInstruction* LChunkBuilder::DoStorePixelArrayElement( | |
1837 HStorePixelArrayElement* instr) { | |
1838 ASSERT(instr->value()->representation().IsInteger32()); | |
1839 ASSERT(instr->external_pointer()->representation().IsExternal()); | |
1840 ASSERT(instr->key()->representation().IsInteger32()); | |
1841 | |
1842 LOperand* external_pointer = UseRegister(instr->external_pointer()); | |
1843 LOperand* val = UseRegister(instr->value()); | |
1844 LOperand* key = UseRegister(instr->key()); | |
1845 LOperand* clamped = FixedTemp(eax); | |
Kevin Millikin (Chromium)
2011/02/16 08:51:25
Maybe a simple comment that this has to be a byte
danno
2011/02/16 13:54:22
Done.
| |
1846 | |
1847 return new LStorePixelArrayElement(external_pointer, key, val, clamped); | |
1848 } | |
1849 | |
1850 | |
1836 LInstruction* LChunkBuilder::DoStoreKeyedGeneric(HStoreKeyedGeneric* instr) { | 1851 LInstruction* LChunkBuilder::DoStoreKeyedGeneric(HStoreKeyedGeneric* instr) { |
1837 LOperand* context = UseFixed(instr->context(), esi); | 1852 LOperand* context = UseFixed(instr->context(), esi); |
1838 LOperand* object = UseFixed(instr->object(), edx); | 1853 LOperand* object = UseFixed(instr->object(), edx); |
1839 LOperand* key = UseFixed(instr->key(), ecx); | 1854 LOperand* key = UseFixed(instr->key(), ecx); |
1840 LOperand* value = UseFixed(instr->value(), eax); | 1855 LOperand* value = UseFixed(instr->value(), eax); |
1841 | 1856 |
1842 ASSERT(instr->object()->representation().IsTagged()); | 1857 ASSERT(instr->object()->representation().IsTagged()); |
1843 ASSERT(instr->key()->representation().IsTagged()); | 1858 ASSERT(instr->key()->representation().IsTagged()); |
1844 ASSERT(instr->value()->representation().IsTagged()); | 1859 ASSERT(instr->value()->representation().IsTagged()); |
1845 | 1860 |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2035 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { | 2050 LInstruction* LChunkBuilder::DoLeaveInlined(HLeaveInlined* instr) { |
2036 HEnvironment* outer = current_block_->last_environment()->outer(); | 2051 HEnvironment* outer = current_block_->last_environment()->outer(); |
2037 current_block_->UpdateEnvironment(outer); | 2052 current_block_->UpdateEnvironment(outer); |
2038 return NULL; | 2053 return NULL; |
2039 } | 2054 } |
2040 | 2055 |
2041 | 2056 |
2042 } } // namespace v8::internal | 2057 } } // namespace v8::internal |
2043 | 2058 |
2044 #endif // V8_TARGET_ARCH_IA32 | 2059 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |