[wasm] Drop some obsolete code modification scopes.
R=clemensh@chromium.org BUG=v8:6792,v8:7549 Change-Id: I1d153dcff729ed4c0863ae339ac7915efff3c33c Reviewed-on: https://chromium-review.googlesource.com/968484 Reviewed-by: Clemens Hammacher <clemensh@chromium.org> Commit-Queue: Michael Starzinger <mstarzinger@chromium.org> Cr-Commit-Position: refs/heads/master@{#52035}
This commit is contained in:
parent
2ba5b33300
commit
b6ecf53b05
@ -568,8 +568,6 @@ const wasm::WasmCode* LazyCompilationOrchestrator::CompileFunction(
|
||||
CStrVector(func_name.c_str()), func_index,
|
||||
CEntryStub(isolate, 1).GetCode());
|
||||
unit.ExecuteCompilation();
|
||||
// TODO(6792): No longer needed once WebAssembly code is off heap.
|
||||
CodeSpaceMemoryModificationScope modification_scope(isolate->heap());
|
||||
wasm::WasmCode* wasm_code = unit.FinishCompilation(&thrower);
|
||||
|
||||
// If there is a pending error, something really went wrong. The module was
|
||||
|
@ -61,9 +61,6 @@ void UnpackAndRegisterProtectedInstructions(
|
||||
RegisterHandlerData(base, size, code->protected_instructions().size(),
|
||||
code->protected_instructions().data());
|
||||
|
||||
// TODO(6792): No longer needed once WebAssembly code is off heap.
|
||||
CodeSpaceMemoryModificationScope modification_scope(isolate->heap());
|
||||
|
||||
// TODO(eholk): if index is negative, fail.
|
||||
CHECK_LE(0, index);
|
||||
code->set_trap_handler_index(static_cast<size_t>(index));
|
||||
|
Loading…
Reference in New Issue
Block a user