Commit e4273782 authored by Victor Gomes's avatar Victor Gomes Committed by V8 LUCI CQ

[maglev] Unsupport exceptions

Bail if exception handler table is non-empty.

Bug: v8:12726, v8:7700
Change-Id: I6c19d66cd02b0cef610733b802f04f72e1dd0d58
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3545170Reviewed-by: 's avatarLeszek Swirski <leszeks@chromium.org>
Commit-Queue: Victor Gomes <victorgomes@chromium.org>
Auto-Submit: Victor Gomes <victorgomes@chromium.org>
Cr-Commit-Position: refs/heads/main@{#79569}
parent 0447ba44
......@@ -16,6 +16,9 @@ MaybeHandle<CodeT> Maglev::Compile(Isolate* isolate,
DCHECK(FLAG_maglev);
auto info = maglev::MaglevCompilationInfo::New(isolate, function);
maglev::MaglevCompilationUnit* const unit = info->toplevel_compilation_unit();
// TODO(v8:7700): Support exceptions in maglev. We currently bail if exception
// handler table is non-empty.
if (unit->bytecode().handler_table_size() > 0) return {};
maglev::MaglevCompiler::Compile(unit);
return maglev::MaglevCompiler::GenerateCode(unit);
}
......
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