Changeset 105705 in webkit
- Timestamp:
- Jan 24, 2012 12:54:47 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 1 deleted
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r105701 r105705 1 2012-01-24 Kenichi Ishibashi <bashi@chromium.org> 2 3 [V8] Add Uint8ClampedArray support 4 https://bugs.webkit.org/show_bug.cgi?id=76803 5 6 Reviewed by Kenneth Russell. 7 8 * platform/chromium/fast/canvas/webgl/array-unit-tests-expected.txt: Removed. 9 * platform/chromium/test_expectations.txt: Removed fast/js/dfg-uint8clampedarray.html. 10 1 11 2012-01-23 Csaba Osztrogonác <ossy@webkit.org> 2 12 -
trunk/LayoutTests/platform/chromium/test_expectations.txt
r105691 r105705 3878 3878 BUGWK65711 : svg/text/append-text-node-to-tspan.html = IMAGE+TEXT IMAGE 3879 3879 3880 // Uint8ClampedArray still not implemented.3881 BUGWK74455 : fast/js/dfg-uint8clampedarray.html = TEXT3882 3883 3880 // Needs baseline 3884 3881 BUGWK76118 : fast/css/text-overflow-input.html = MISSING -
trunk/Source/JavaScriptCore/ChangeLog
r105704 r105705 1 2012-01-24 Kenichi Ishibashi <bashi@chromium.org> 2 3 [V8] Add Uint8ClampedArray support 4 https://bugs.webkit.org/show_bug.cgi?id=76803 5 6 Reviewed by Kenneth Russell. 7 8 * wtf/ArrayBufferView.h: 9 (WTF::ArrayBufferView::isUnsignedByteClampedArray): Added. 10 * wtf/Uint8ClampedArray.h: 11 (WTF::Uint8ClampedArray::isUnsignedByteClampedArray): Overridden to return true. 12 1 13 2012-01-23 Carlos Garcia Campos <cgarcia@igalia.com> 2 14 -
trunk/Source/JavaScriptCore/wtf/ArrayBufferView.h
r104900 r105705 41 41 virtual bool isByteArray() const { return false; } 42 42 virtual bool isUnsignedByteArray() const { return false; } 43 virtual bool isUnsignedByteClampedArray() const { return false; } 43 44 virtual bool isShortArray() const { return false; } 44 45 virtual bool isUnsignedShortArray() const { return false; } -
trunk/Source/JavaScriptCore/wtf/Uint8ClampedArray.h
r105217 r105705 52 52 // Make constructor visible to superclass. 53 53 friend class TypedArrayBase<unsigned char>; 54 55 // Overridden from ArrayBufferView. 56 virtual bool isUnsignedByteClampedArray() const { return true; } 54 57 }; 55 58 -
trunk/Source/WebCore/ChangeLog
r105703 r105705 1 2012-01-24 Kenichi Ishibashi <bashi@chromium.org> 2 3 [V8] Add Uint8ClampedArray support 4 https://bugs.webkit.org/show_bug.cgi?id=76803 5 6 Reviewed by Kenneth Russell. 7 8 No new tests. fast/js/script-tests/dfg-uint8clampedarray.js should pass on chromium port. 9 10 * WebCore.gypi: Added required files. 11 * bindings/scripts/CodeGeneratorV8.pm: 12 (IsTypedArrayType): Added Uint8ClampedArray. 13 * bindings/v8/SerializedScriptValue.cpp: Added the tag for Uint8ClampedArray. 14 (WebCore::V8ObjectMap::Writer::writeArrayBufferView): Appends the tag when buffer is Uint8ClampedArray. 15 (WebCore::V8ObjectMap::Reader::readArrayBufferView): Creates Uint8ClampedArray instance when the tag represents Uint8ClampedArray. 16 * bindings/v8/custom/V8ArrayBufferViewCustomScript.js: 17 * bindings/v8/custom/V8Uint8ClampedArrayCustom.cpp: Added. 18 (WebCore::V8Uint8ClampedArray::constructorCallback): 19 (WebCore::V8Uint8ClampedArray::setCallback): 20 (WebCore::toV8): 21 * page/Crypto.cpp: Added isUnsignedByteClampedArray() call to isIntegerArray(). 22 * page/DOMWindow.idl: Removed ifdefs. 23 * workers/WorkerContext.idl: Added Uint8ArrayConstructor. 24 1 25 2012-01-24 Ilya Tikhonovsky <loislo@chromium.org> 2 26 -
trunk/Source/WebCore/WebCore.gypi
r105700 r105705 962 962 'html/canvas/Uint32Array.idl', 963 963 'html/canvas/Uint8Array.idl', 964 'html/canvas/Uint8ClampedArray.idl', 964 965 'html/canvas/WebGLActiveInfo.idl', 965 966 'html/canvas/WebGLBuffer.idl', … … 1874 1875 'bindings/v8/custom/V8Uint32ArrayCustom.cpp', 1875 1876 'bindings/v8/custom/V8Uint8ArrayCustom.cpp', 1877 'bindings/v8/custom/V8Uint8ClampedArrayCustom.cpp', 1876 1878 'bindings/v8/custom/V8WebGLRenderingContextCustom.cpp', 1877 1879 'bindings/v8/custom/V8WebKitAnimationCustom.cpp', -
trunk/Source/WebCore/bindings/scripts/CodeGeneratorV8.pm
r105308 r105705 2244 2244 my $type = shift; 2245 2245 return 1 if (($type eq "ArrayBuffer") or ($type eq "ArrayBufferView")); 2246 return 1 if (($type eq "Uint8Array") or ($type eq "Uint 16Array") or ($type eq "Uint32Array"));2246 return 1 if (($type eq "Uint8Array") or ($type eq "Uint8ClampedArray") or ($type eq "Uint16Array") or ($type eq "Uint32Array")); 2247 2247 return 1 if (($type eq "Int8Array") or ($type eq "Int16Array") or ($type eq "Int32Array")); 2248 2248 return 1 if (($type eq "Float32Array") or ($type eq "Float64Array")); -
trunk/Source/WebCore/bindings/v8/SerializedScriptValue.cpp
r103100 r105705 52 52 #include "Uint32Array.h" 53 53 #include "Uint8Array.h" 54 #include "Uint8ClampedArray.h" 54 55 #include "V8ArrayBuffer.h" 55 56 #include "V8ArrayBufferView.h" … … 70 71 #include "V8Uint32Array.h" 71 72 #include "V8Uint8Array.h" 73 #include "V8Uint8ClampedArray.h" 72 74 #include "V8Utilities.h" 73 75 … … 215 217 ByteArrayTag = 'b', 216 218 UnsignedByteArrayTag = 'B', 219 UnsignedByteClampedArrayTag = 'C', 217 220 ShortArrayTag = 'w', 218 221 UnsignedShortArrayTag = 'W', … … 397 400 else if (arrayBufferView.isUnsignedByteArray()) 398 401 append(UnsignedByteArrayTag); 402 else if (arrayBufferView.isUnsignedByteClampedArray()) 403 append(UnsignedByteClampedArrayTag); 399 404 else if (arrayBufferView.isShortArray()) 400 405 append(ShortArrayTag); … … 1629 1634 *value = toV8(Uint8Array::create(arrayBuffer.release(), byteOffset, byteLength)); 1630 1635 break; 1636 case UnsignedByteClampedArrayTag: 1637 *value = toV8(Uint8ClampedArray::create(arrayBuffer.release(), byteOffset, byteLength)); 1638 break; 1631 1639 case ShortArrayTag: { 1632 1640 uint32_t shortLength = byteLength / sizeof(int16_t); -
trunk/Source/WebCore/bindings/v8/custom/V8ArrayBufferViewCustomScript.js
r104196 r105705 57 57 optimizeSetMethod(Int32Array); 58 58 optimizeSetMethod(Uint8Array); 59 optimizeSetMethod(Uint8ClampedArray); 59 60 optimizeSetMethod(Uint16Array); 60 61 optimizeSetMethod(Uint32Array); -
trunk/Source/WebCore/page/Crypto.cpp
r101295 r105705 43 43 return array->isByteArray() 44 44 || array->isUnsignedByteArray() 45 || array->isUnsignedByteClampedArray() 45 46 || array->isShortArray() 46 47 || array->isUnsignedShortArray() -
trunk/Source/WebCore/page/DOMWindow.idl
r105569 r105705 496 496 attribute Int8ArrayConstructor Int8Array; // Usable with new operator 497 497 attribute Uint8ArrayConstructor Uint8Array; // Usable with new operator 498 #if !defined(V8_BINDING) || !V8_BINDING499 498 attribute Uint8ClampedArrayConstructor Uint8ClampedArray; // Usable with new operator 500 #endif501 499 attribute Int16ArrayConstructor Int16Array; // Usable with new operator 502 500 attribute Uint16ArrayConstructor Uint16Array; // Usable with new operator -
trunk/Source/WebCore/workers/WorkerContext.idl
r105486 r105705 119 119 attribute Int8ArrayConstructor Int8Array; // Usable with new operator 120 120 attribute Uint8ArrayConstructor Uint8Array; // Usable with new operator 121 attribute Uint8ArrayConstructor Uint8ClampedArray; // Usable with new operator 121 122 attribute Int16ArrayConstructor Int16Array; // Usable with new operator 122 123 attribute Uint16ArrayConstructor Uint16Array; // Usable with new operator
Note: See TracChangeset
for help on using the changeset viewer.