Chromium Code Reviews| Index: src/ia32/lithium-ia32.cc |
| diff --git a/src/ia32/lithium-ia32.cc b/src/ia32/lithium-ia32.cc |
| index 0ad3819292b047037b2e43e64265babaf4b38d2d..6f319f37e622f01d147c03bc526217e87b801627 100644 |
| --- a/src/ia32/lithium-ia32.cc |
| +++ b/src/ia32/lithium-ia32.cc |
| @@ -1833,6 +1833,21 @@ LInstruction* LChunkBuilder::DoStoreKeyedFastElement( |
| } |
| +LInstruction* LChunkBuilder::DoStorePixelArrayElement( |
| + HStorePixelArrayElement* instr) { |
| + ASSERT(instr->value()->representation().IsInteger32()); |
| + ASSERT(instr->external_pointer()->representation().IsExternal()); |
| + ASSERT(instr->key()->representation().IsInteger32()); |
| + |
| + LOperand* external_pointer = UseRegister(instr->external_pointer()); |
| + LOperand* val = UseRegister(instr->value()); |
| + LOperand* key = UseRegister(instr->key()); |
| + 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.
|
| + |
| + return new LStorePixelArrayElement(external_pointer, key, val, clamped); |
| +} |
| + |
| + |
| LInstruction* LChunkBuilder::DoStoreKeyedGeneric(HStoreKeyedGeneric* instr) { |
| LOperand* context = UseFixed(instr->context(), esi); |
| LOperand* object = UseFixed(instr->object(), edx); |