From cdb4e87b03d9edee9246d19fadceebd8845d1fab Mon Sep 17 00:00:00 2001 From: mkarolin Date: Tue, 5 Oct 2021 22:53:50 -0400 Subject: [PATCH] Revert "Merge pull request #10366 from brave/issues/18562" This reverts commit 30990cb3d82e112ff32249f658daa7a86f391e40, reversing changes made to 965f45a9fd0f49ba4a458afa243e8667d268ccdb. This was an upstream patch that was not available before 95.0.4638.40 See https://github.com/brave/brave-core/pull/10366 --- patches/v8/src-wasm-module-compiler.cc.patch | 22 -------------------- 1 file changed, 22 deletions(-) delete mode 100644 patches/v8/src-wasm-module-compiler.cc.patch diff --git a/patches/v8/src-wasm-module-compiler.cc.patch b/patches/v8/src-wasm-module-compiler.cc.patch deleted file mode 100644 index ba201d1f62a1..000000000000 --- a/patches/v8/src-wasm-module-compiler.cc.patch +++ /dev/null @@ -1,22 +0,0 @@ -diff --git a/src/wasm/module-compiler.cc b/src/wasm/module-compiler.cc -index e49f2caa0e67553c4b7d5f370d2364f79c29289f..2d66102c1f5f96552031a2d61dc9f8046e389634 100644 ---- a/src/wasm/module-compiler.cc -+++ b/src/wasm/module-compiler.cc -@@ -3045,13 +3045,13 @@ void CompilationStateImpl::InitializeCompilationProgressAfterDeserialization( - } - compilation_progress_.assign(module->num_declared_functions, - kProgressAfterDeserialization); -- uint32_t num_imported_functions = module->num_imported_functions; - for (auto func_index : missing_functions) { - if (FLAG_wasm_lazy_compilation) { -- native_module_->UseLazyStub(num_imported_functions + func_index); -+ native_module_->UseLazyStub(func_index); - } -- compilation_progress_[func_index] = SetupCompilationProgressForFunction( -- lazy_module, module, enabled_features, func_index); -+ compilation_progress_[declared_function_index(module, func_index)] = -+ SetupCompilationProgressForFunction(lazy_module, module, -+ enabled_features, func_index); - } - } - auto builder = std::make_unique(native_module_);