Ignore:
Timestamp:
Oct 6, 2009, 7:06:03 PM (16 years ago)
Author:
[email protected]
Message:

It should be possible to post (clone) built-in JS objects to Workers
https://bugs.webkit.org/show_bug.cgi?id=22878

Reviewed by Gavin Barraclough.

Implement object cloning semantics for postMessage. Currently only
a partial implementation of the spec -- cloning of File, FileList,
ImageData, and RegExp were left out as they would have significantly
increased patch size.

Cloning requires multiple tree walks so we use a templated tree
walk function, allowing us to share a single implementation for
serialization, deserialization, and eventual destruction of the
serialized object tree.

Test: fast/dom/Window/window-postmessage-clone.html

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/JavaScriptCore.exp

    r48905 r49214  
    105105__ZN3JSC11checkSyntaxEPNS_9ExecStateERKNS_10SourceCodeE
    106106__ZN3JSC12DateInstance4infoE
     107__ZN3JSC12DateInstanceC1EPNS_9ExecStateEd
    107108__ZN3JSC12JSGlobalData10ClientDataD2Ev
    108109__ZN3JSC12JSGlobalData12createLeakedEv
     
    142143__ZN3JSC14SamplingThread4stopEv
    143144__ZN3JSC14SamplingThread5startEj
     145__ZN3JSC14TimeoutChecker10didTimeOutEPNS_9ExecStateE
    144146__ZN3JSC14TimeoutChecker5resetEv
     147__ZN3JSC15createTypeErrorEPNS_9ExecStateEPKc
    145148__ZN3JSC15JSWrapperObject12markChildrenERNS_9MarkStackE
    146149__ZN3JSC15toInt32SlowCaseEdRb
     
    172175__ZN3JSC23objectProtoFuncToStringEPNS_9ExecStateEPNS_8JSObjectENS_7JSValueERKNS_7ArgListE
    173176__ZN3JSC23setUpStaticFunctionSlotEPNS_9ExecStateEPKNS_9HashEntryEPNS_8JSObjectERKNS_10IdentifierERNS_12PropertySlotE
     177__ZN3JSC24createStackOverflowErrorEPNS_9ExecStateE
    174178__ZN3JSC25evaluateInGlobalCallFrameERKNS_7UStringERNS_7JSValueEPNS_14JSGlobalObjectE
     179__ZN3JSC35createInterruptedExecutionExceptionEPNS_12JSGlobalDataE
    175180__ZN3JSC4Heap11objectCountEv
    176181__ZN3JSC4Heap14primaryHeapEndEv
     
    214219__ZN3JSC7CStringaSERKS0_
    215220__ZN3JSC7JSArray4infoE
     221__ZN3JSC7JSArray9setLengthEj
    216222__ZN3JSC7JSArrayC1EN3WTF17NonNullPassRefPtrINS_9StructureEEE
    217223__ZN3JSC7JSArrayC1EN3WTF17NonNullPassRefPtrINS_9StructureEEERKNS_7ArgListE
Note: See TracChangeset for help on using the changeset viewer.