--- f2457a464d0333448b4f53e5b768653a83d9701a/js/src/frontend/CompilationStencil.h
+++ 43bb19928205e02d5fd0dae30111b8701bdf4ce4/js/src/frontend/CompilationStencil.h
@@ -985,18 +985,17 @@ struct SharedDataContainer {
size_t allScriptCount);
[[nodiscard]] bool cloneFrom(FrontendContext* fc,
const SharedDataContainer& other);
// Returns index-th script's shared data, or nullptr if it doesn't have.
js::SharedImmutableScriptData* get(ScriptIndex index) const;
// Add data for index-th script and share it with VM.
- [[nodiscard]] bool addAndShare(JSContext* cx, FrontendContext* fc,
- ScriptIndex index,
+ [[nodiscard]] bool addAndShare(FrontendContext* fc, ScriptIndex index,
js::SharedImmutableScriptData* data);
// Add data for index-th script without sharing it with VM.
// The data should already be shared with VM.
//
// The data is supposed to be added from delazification.
[[nodiscard]] bool addExtraWithoutShare(FrontendContext* fc,
ScriptIndex index,
@@ -1455,17 +1454,17 @@ struct MOZ_RAII CompilationState : publi
// Those functions exist only for lazy parsing.
// Mark them "ghost", so that they don't affect other parts.
//
// See GHOST_FUNCTION in FunctionFlags.h for more details.
void markGhost(const CompilationStatePosition& pos);
// Allocate space for `length` gcthings, and return the address of the
// first element to `cursor` to initialize on the caller.
- bool allocateGCThingsUninitialized(JSContext* cx, FrontendContext* fc,
+ bool allocateGCThingsUninitialized(FrontendContext* fc,
ScriptIndex scriptIndex, size_t length,
TaggedScriptThingIndex** cursor);
bool appendScriptStencilAndData(FrontendContext* fc);
bool appendGCThings(FrontendContext* fc, ScriptIndex scriptIndex,
mozilla::Span<const TaggedScriptThingIndex> things);
};
Files
/js/src/frontend/CompilationStencil.h
/js/src/frontend/Stencil.cpp
/js/src/vm/SharedStencil.h
Changesets
Diffs
/js/src/frontend/CompilationStencil.h
/js/src/frontend/Stencil.cpp
/js/src/vm/SharedStencil.h