| Index: src/ia32/stub-cache-ia32.cc
|
| diff --git a/src/ia32/stub-cache-ia32.cc b/src/ia32/stub-cache-ia32.cc
|
| index 27d28868f393eeb4878750b349d8c7d9941b592b..31bc58ddf5a914185781584ef3ebf48b110d335a 100644
|
| --- a/src/ia32/stub-cache-ia32.cc
|
| +++ b/src/ia32/stub-cache-ia32.cc
|
| @@ -3546,14 +3546,7 @@ MaybeObject* ExternalArrayStubCompiler::CompileKeyedStoreStub(
|
| // ecx: base pointer of external storage
|
| switch (array_type) {
|
| case kExternalPixelArray:
|
| - { // Clamp the value to [0..255].
|
| - NearLabel done;
|
| - __ test(ecx, Immediate(0xFFFFFF00));
|
| - __ j(zero, &done);
|
| - __ setcc(negative, ecx); // 1 if negative, 0 if positive.
|
| - __ dec_b(ecx); // 0 if negative, 255 if positive.
|
| - __ bind(&done);
|
| - }
|
| + __ ClampUInt8(ecx);
|
| __ mov_b(Operand(edi, ebx, times_1, 0), ecx);
|
| break;
|
| case kExternalByteArray:
|
|
|