Revision: 8048
Author: [email protected]
Date: Tue May 24 09:23:22 2011
Log: 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
http://code.google.com/p/v8/source/detail?r=8048
Modified:
/branches/bleeding_edge/src/ia32/lithium-ia32.cc
=======================================
--- /branches/bleeding_edge/src/ia32/lithium-ia32.cc Tue May 24 07:01:36
2011
+++ /branches/bleeding_edge/src/ia32/lithium-ia32.cc Tue May 24 09:23:22
2011
@@ -2004,7 +2004,8 @@
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 {
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev