author Nicolas B. Pierron <nicolas.b.pierron@mozilla.com>
Thu, 20 Oct 2016 09:44:33 +0000
changeset 318710 4a8c5061f3b753cb34028b59c9ccc654027ba021
parent 167492 6abb659b106e04cdb97c7545d986025654972514
child 322549 9f9e3ba9227879d0b85ecb0e6456a3dcac0d0d0b
permissions -rw-r--r--
Bug 1288104 part 1 - Move XDR buffer to the caller. r=luke Add a typedef on top of mozilla::Vector to define the TranscodeBuffer which owns the encoded content of a Script / Function. This modification renames JS_EncodeScript, into JS::EncodeScript, and change its prototype to have a JSContext, a TranscodeBuffer, and a Handle on a script that we want to encode. Similar modifications are made to JS_EncodeInterpretedFunction, and the Decode variant of these.