From: whesse@chromium.org Date: Tue, 24 May 2011 16:23:22 +0000 (+0000) Subject: Ensure that external pixel arrays use a byte register in Crankshaft. X-Git-Tag: upstream/4.7.83~19317 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cc14935ddf60f152519f0eb794cf3bbf8d6c9e3e;p=platform%2Fupstream%2Fv8.git Ensure that external pixel arrays use a byte register in Crankshaft. BUG=v8:1406 TEST=fast/canvas/canvas-putImageData.html Review URL: http://codereview.chromium.org/7067028 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@8048 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/ia32/lithium-ia32.cc b/src/ia32/lithium-ia32.cc index 1d7bc1071..986bb9811 100644 --- a/src/ia32/lithium-ia32.cc +++ b/src/ia32/lithium-ia32.cc @@ -2004,7 +2004,8 @@ LInstruction* LChunkBuilder::DoStoreKeyedSpecializedArrayElement( LOperand* key = UseRegisterOrConstant(instr->key()); LOperand* val = NULL; if (array_type == kExternalByteArray || - array_type == kExternalUnsignedByteArray) { + array_type == kExternalUnsignedByteArray || + array_type == kExternalPixelArray) { // We need a byte register in this case for the value. val = UseFixed(instr->value(), eax); } else {