Commit d99a1b95 authored by Clemens Hammacher's avatar Clemens Hammacher Committed by Commit Bot

[wasm] Turn field into local variable

R=titzer@chromium.org

Change-Id: Ib3b1cd479b42865420879bff9f1a83558585eb05
Reviewed-on: https://chromium-review.googlesource.com/c/1303301
Commit-Queue: Clemens Hammacher <clemensh@chromium.org>
Reviewed-by: 's avatarBen Titzer <titzer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#57072}
parent 6f82da0c
...@@ -855,18 +855,18 @@ class BackgroundCompileTask : public CancelableTask { ...@@ -855,18 +855,18 @@ class BackgroundCompileTask : public CancelableTask {
// {OnBackgroundTaskStopped}. // {OnBackgroundTaskStopped}.
CompilationEnv env = native_module_->CreateCompilationEnv(); CompilationEnv env = native_module_->CreateCompilationEnv();
auto* compilation_state = Impl(native_module_->compilation_state()); auto* compilation_state = Impl(native_module_->compilation_state());
WasmFeatures detected_features = kNoWasmFeatures;
while (!compilation_state->failed()) { while (!compilation_state->failed()) {
if (!FetchAndExecuteCompilationUnit(&env, compilation_state, if (!FetchAndExecuteCompilationUnit(&env, compilation_state,
&detected_features_)) { &detected_features)) {
break; break;
} }
} }
compilation_state->OnBackgroundTaskStopped(detected_features_); compilation_state->OnBackgroundTaskStopped(detected_features);
} }
private: private:
NativeModule* const native_module_; NativeModule* const native_module_;
WasmFeatures detected_features_ = kNoWasmFeatures;
}; };
} // namespace } // namespace
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment