Commit c4fd16e9 authored by Dominik Inführ's avatar Dominik Inführ Committed by Commit Bot

[compiler] Remove ToHandleChecked() in GenerateCodeForCodeStub

Return MaybeHandle directly instead of converting to Handle first and
then back to MaybeHandle.

Bug: v8:10315
Change-Id: I7d0b67ea3931ad4eba48fc58d934d5722ff70905
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2418402Reviewed-by: 's avatarNico Hartmann <nicohartmann@chromium.org>
Commit-Queue: Dominik Inführ <dinfuehr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#70025}
parent 065fa73a
...@@ -2887,15 +2887,12 @@ MaybeHandle<Code> Pipeline::GenerateCodeForCodeStub( ...@@ -2887,15 +2887,12 @@ MaybeHandle<Code> Pipeline::GenerateCodeForCodeStub(
info.profiler_data()->SetHash(graph_hash_before_scheduling); info.profiler_data()->SetHash(graph_hash_before_scheduling);
} }
Handle<Code> code;
if (jump_opt.is_optimizable()) { if (jump_opt.is_optimizable()) {
jump_opt.set_optimizing(); jump_opt.set_optimizing();
code = pipeline.GenerateCode(call_descriptor).ToHandleChecked(); return pipeline.GenerateCode(call_descriptor);
} else { } else {
code = second_pipeline.FinalizeCode().ToHandleChecked(); return second_pipeline.FinalizeCode();
} }
return code;
} }
struct BlockStartsAsJSON { struct BlockStartsAsJSON {
......
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