Changeset 160876 in webkit
- Timestamp:
- Dec 19, 2013 4:42:47 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r160875 r160876 1 2013-12-19 Brent Fulgham <bfulgham@apple.com> 2 3 Implement ArrayBuffer.isView 4 https://bugs.webkit.org/show_bug.cgi?id=126004 5 6 Reviewed by Filip Pizlo. 7 8 * webgl/1.0.2/resources/webgl_test_files/conformance/typedarrays/array-unit-tests.html: 9 Correct test for 'isView' to actually check for 'isView' function. 10 1 11 2013-12-19 Alexey Proskuryakov <ap@apple.com> 2 12 -
trunk/LayoutTests/webgl/1.0.2/resources/webgl_test_files/conformance/typedarrays/array-unit-tests.html
r157888 r160876 149 149 150 150 try { 151 if (!ArrayBuffer. create) {151 if (!ArrayBuffer.isView) { 152 152 testFailed('ArrayBuffer.isView() method does not exist'); 153 153 } else { -
trunk/Source/JavaScriptCore/ChangeLog
r160869 r160876 1 2013-12-19 Brent Fulgham <bfulgham@apple.com> 2 3 Implement ArrayBuffer.isView 4 https://bugs.webkit.org/show_bug.cgi?id=126004 5 6 Reviewed by Filip Pizlo. 7 8 Test coverage in webgl/1.0.2/resources/webgl_test_files/conformance/typedarrays/array-unit-tests.html 9 10 * runtime/JSArrayBufferConstructor.cpp: 11 (JSC::JSArrayBufferConstructor::finishCreation): Add 'isView' to object constructor. 12 (JSC::arrayBufferFuncIsView): New method. 13 1 14 2013-12-19 Mark Lam <mark.lam@apple.com> 2 15 -
trunk/Source/JavaScriptCore/runtime/CommonIdentifiers.h
r159031 r160876 113 113 macro(isArray) \ 114 114 macro(isPrototypeOf) \ 115 macro(isView) \ 115 116 macro(isWatchpoint) \ 116 117 macro(join) \ -
trunk/Source/JavaScriptCore/runtime/JSArrayBufferConstructor.cpp
r156624 r160876 36 36 namespace JSC { 37 37 38 static EncodedJSValue JSC_HOST_CALL arrayBufferFuncIsView(ExecState*); 39 38 40 const ClassInfo JSArrayBufferConstructor::s_info = { 39 41 "Function", &Base::s_info, 0, 0, … … 51 53 putDirectWithoutTransition(vm, vm.propertyNames->prototype, prototype, DontEnum | DontDelete | ReadOnly); 52 54 putDirectWithoutTransition(vm, vm.propertyNames->length, jsNumber(1), DontEnum | DontDelete | ReadOnly); 55 56 JSGlobalObject* globalObject = this->globalObject(); 57 JSC_NATIVE_FUNCTION(vm.propertyNames->isView, arrayBufferFuncIsView, DontEnum, 1); 53 58 } 54 59 … … 109 114 } 110 115 116 // ------------------------------ Functions -------------------------------- 117 118 // ECMA 24.1.3.1 119 EncodedJSValue JSC_HOST_CALL arrayBufferFuncIsView(ExecState* exec) 120 { 121 return JSValue::encode(jsBoolean(jsDynamicCast<JSArrayBufferView*>(exec->argument(0)))); 122 } 123 124 111 125 } // namespace JSC 112 126
Note: See TracChangeset
for help on using the changeset viewer.