|
| 1 | +2017-02-16 Yusuke Suzuki <utatane.tea@gmail.com> |
| 2 | + |
| 3 | + [JSC] Drop PassRefPtr from ArrayBuffer |
| 4 | + https://bugs.webkit.org/show_bug.cgi?id=168455 |
| 5 | + |
| 6 | + Reviewed by Geoffrey Garen. |
| 7 | + |
| 8 | + This patch finally drops all the PassRefPtr in JSC. |
| 9 | + We changed PassRefPtr<ArrayBuffer> to RefPtr<ArrayBuffer>&&. |
| 10 | + Since ArrayBuffer may be nullptr if the array is neutered, |
| 11 | + we hold it as RefPtr<> instead of Ref<>. |
| 12 | + |
| 13 | + And we also drops 2 files, TypedArrayBase.h and IntegralTypedArrayBase.h. |
| 14 | + They are not used (and they are not referenced from the project file). |
| 15 | + |
| 16 | + * inspector/JavaScriptCallFrame.h: |
| 17 | + * jsc.cpp: |
| 18 | + (functionDollarAgentReceiveBroadcast): |
| 19 | + * runtime/ArrayBufferView.cpp: |
| 20 | + (JSC::ArrayBufferView::ArrayBufferView): |
| 21 | + * runtime/ArrayBufferView.h: |
| 22 | + (JSC::ArrayBufferView::possiblySharedBuffer): |
| 23 | + (JSC::ArrayBufferView::unsharedBuffer): |
| 24 | + (JSC::ArrayBufferView::verifySubRangeLength): |
| 25 | + (JSC::ArrayBufferView::clampOffsetAndNumElements): |
| 26 | + * runtime/ClassInfo.h: |
| 27 | + * runtime/DataView.cpp: |
| 28 | + (JSC::DataView::DataView): |
| 29 | + (JSC::DataView::create): |
| 30 | + * runtime/DataView.h: |
| 31 | + * runtime/GenericTypedArrayView.h: |
| 32 | + * runtime/GenericTypedArrayViewInlines.h: |
| 33 | + (JSC::GenericTypedArrayView<Adaptor>::GenericTypedArrayView): |
| 34 | + (JSC::GenericTypedArrayView<Adaptor>::create): |
| 35 | + (JSC::GenericTypedArrayView<Adaptor>::subarray): |
| 36 | + * runtime/IntegralTypedArrayBase.h: Removed. |
| 37 | + * runtime/JSArrayBuffer.cpp: |
| 38 | + (JSC::JSArrayBuffer::JSArrayBuffer): |
| 39 | + (JSC::JSArrayBuffer::create): |
| 40 | + * runtime/JSArrayBuffer.h: |
| 41 | + * runtime/JSArrayBufferPrototype.cpp: |
| 42 | + (JSC::arrayBufferProtoFuncSlice): |
| 43 | + * runtime/JSArrayBufferView.cpp: |
| 44 | + (JSC::JSArrayBufferView::ConstructionContext::ConstructionContext): |
| 45 | + * runtime/JSArrayBufferView.h: |
| 46 | + * runtime/JSArrayBufferViewInlines.h: |
| 47 | + (JSC::JSArrayBufferView::possiblySharedImpl): |
| 48 | + (JSC::JSArrayBufferView::unsharedImpl): |
| 49 | + * runtime/JSCell.cpp: |
| 50 | + (JSC::JSCell::slowDownAndWasteMemory): |
| 51 | + (JSC::JSCell::getTypedArrayImpl): |
| 52 | + * runtime/JSCell.h: |
| 53 | + * runtime/JSDataView.cpp: |
| 54 | + (JSC::JSDataView::create): |
| 55 | + (JSC::JSDataView::possiblySharedTypedImpl): |
| 56 | + (JSC::JSDataView::unsharedTypedImpl): |
| 57 | + (JSC::JSDataView::getTypedArrayImpl): |
| 58 | + * runtime/JSDataView.h: |
| 59 | + * runtime/JSGenericTypedArrayView.h: |
| 60 | + * runtime/JSGenericTypedArrayViewConstructorInlines.h: |
| 61 | + (JSC::constructGenericTypedArrayViewWithArguments): |
| 62 | + * runtime/JSGenericTypedArrayViewInlines.h: |
| 63 | + (JSC::JSGenericTypedArrayView<Adaptor>::create): |
| 64 | + (JSC::JSGenericTypedArrayView<Adaptor>::possiblySharedTypedImpl): |
| 65 | + (JSC::JSGenericTypedArrayView<Adaptor>::unsharedTypedImpl): |
| 66 | + (JSC::JSGenericTypedArrayView<Adaptor>::getTypedArrayImpl): |
| 67 | + * runtime/JSGenericTypedArrayViewPrototypeFunctions.h: |
| 68 | + (JSC::genericTypedArrayViewPrivateFuncSubarrayCreate): |
| 69 | + * runtime/JSTypedArrays.cpp: |
| 70 | + (JSC::createUint8TypedArray): |
| 71 | + * runtime/TypedArrayBase.h: Removed. |
| 72 | + |
1 | 73 | 2017-02-16 Keith Miller <keith_miller@apple.com> |
2 | 74 |
|
3 | 75 | ASSERTION FAILED: vm.heap.mutatorState() == MutatorState::Running || vm.apiLock().ownerThread() != std::this_thread::get_id() |
|
0 commit comments