diff options
author | Brian Smith <brian@dbsoft.org> | 2023-04-20 10:15:52 -0500 |
---|---|---|
committer | Brian Smith <brian@dbsoft.org> | 2023-04-27 13:34:48 -0500 |
commit | e29f4488b1d8d33f3ca04531177d1c1690f57577 (patch) | |
tree | 9a96ac5db0e3c7b8b2edf2cc416eebd3bf61ffad /js/src/jsscript.h | |
parent | 8431e52405bf4cd9d34eae9940cb665c7faa2c7e (diff) | |
download | uxp-e29f4488b1d8d33f3ca04531177d1c1690f57577.tar.gz |
Issue #1691 - Part 7f: Split up compile and execute so we can use ClassicScript.
https://bugzilla.mozilla.org/show_bug.cgi?id=1342012
Refactor nsJSUtils::ExecutionContext to separate compilation and execution steps and allow extraction of compiled JSScript.
https://bugzilla.mozilla.org/show_bug.cgi?id=1366773
Move buffer argument from JS::StartIncrementalEncoding to JS::FinishIncrementalEncoding.
(cherry picked from commit d4b520b08b958e116dfeeffdc61f3425610d1ce9)
Diffstat (limited to 'js/src/jsscript.h')
-rw-r--r-- | js/src/jsscript.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/src/jsscript.h b/js/src/jsscript.h index 198f96115f..c9f5a927bb 100644 --- a/js/src/jsscript.h +++ b/js/src/jsscript.h @@ -588,7 +588,7 @@ class ScriptSource // of the encoding would be available in the |buffer| provided as argument, // as soon as |xdrFinalize| is called and all xdr function calls returned // successfully. - bool xdrEncodeTopLevel(ExclusiveContext* cx, JS::TranscodeBuffer& buffer, HandleScript script); + bool xdrEncodeTopLevel(ExclusiveContext* cx, HandleScript script); // Encode a delazified JSFunction. In case of errors, the XDR encoder is // freed and the |buffer| provided as argument to |xdrEncodeTopLevel| is @@ -602,7 +602,7 @@ class ScriptSource // Linearize the encoded content in the |buffer| provided as argument to // |xdrEncodeTopLevel|, and free the XDR encoder. In case of errors, the // |buffer| is considered undefined. - bool xdrFinalizeEncoder(); + bool xdrFinalizeEncoder(JS::TranscodeBuffer& buffer); }; class ScriptSourceHolder |