summaryrefslogtreecommitdiff
path: root/js/src/jsapi.h
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jsapi.h')
-rw-r--r--js/src/jsapi.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/js/src/jsapi.h b/js/src/jsapi.h
index 589b281975..a6a5429cf5 100644
--- a/js/src/jsapi.h
+++ b/js/src/jsapi.h
@@ -6209,15 +6209,14 @@ DecodeInterpretedFunction(JSContext* cx, TranscodeBuffer& buffer, JS::MutableHan
// an out-param of any of the |Compile| functions, or the result of
// |FinishOffThreadScript|.
//
-// The |buffer| argument should not be used before until
-// |FinishIncrementalEncoding| is called on the same script, and returns
-// successfully. If any of these functions failed, the |buffer| content is
-// undefined.
+// The |buffer| argument of |FinishIncrementalEncoding| is used for appending
+// the encoded bytecode into the buffer. If any of these functions failed, the
+// content of |buffer| would be undefined.
extern JS_PUBLIC_API(bool)
-StartIncrementalEncoding(JSContext* cx, TranscodeBuffer& buffer, JS::HandleScript script);
+StartIncrementalEncoding(JSContext* cx, JS::HandleScript script);
extern JS_PUBLIC_API(bool)
-FinishIncrementalEncoding(JSContext* cx, JS::HandleScript script);
+FinishIncrementalEncoding(JSContext* cx, JS::HandleScript script, TranscodeBuffer& buffer);
} /* namespace JS */