Commit 0382b4f0 authored by Bryan Thrall's avatar Bryan Thrall
Browse files

Bug 1830154 - Rename moveInstantiationStorageInto() r=arai

parent 6c23a505
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -539,7 +539,7 @@ struct ParseTask : public mozilla::LinkedListElement<ParseTask>,

  bool init(JSContext* cx, const JS::ReadOnlyCompileOptions& options);

  void moveGCOutputInto(JS::InstantiationStorage& storage);
  void moveInstantiationStorageInto(JS::InstantiationStorage& storage);

  void activate(JSRuntime* rt);
  void deactivate(JSRuntime* rt);
+3 −2
Original line number Diff line number Diff line
@@ -547,7 +547,8 @@ bool ParseTask::init(JSContext* cx, const ReadOnlyCompileOptions& options) {
  return true;
}

void ParseTask::moveGCOutputInto(JS::InstantiationStorage& storage) {
void ParseTask::moveInstantiationStorageInto(
    JS::InstantiationStorage& storage) {
  storage.gcOutput_ = instantiationStorage_.gcOutput_;
  instantiationStorage_.gcOutput_ = nullptr;
}
@@ -2312,7 +2313,7 @@ GlobalHelperThreadState::finishStencilTask(JSContext* cx,

  if (storage) {
    MOZ_ASSERT(parseTask->options.allocateInstantiationStorage);
    parseTask->moveGCOutputInto(*storage);
    parseTask->moveInstantiationStorageInto(*storage);
  }

  return parseTask->stencil_.forget();