TurboFan should support no-return calls |
|||
Issue descriptionCalls that throw exceptions or otherwise never return (e.g. deoptimize) should be understood by TurboFan and it should avoid generating any code after the call.
,
Jan 20 2017
What we usually do with these calls, i.e. in the CodeStubAssembler based builtins, is just connect them directly to End via a Return; they don't return a value, but that doesn't matter. Code size overhead is tiny, usually one jmp. Is there a particular use case where the jmp overhead would be noticable?
,
Jan 23 2017
We do have lots of these in WASM, though fewer now with TrapIf. It would be good to get rid of the frame deconstruction and jump overhead. AFAICT this also introduces some overhead in the register allocator, since it must introduce ranges to split ranges over this call, though nothing should be alive across this call.
,
Feb 12 2018
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue. Sorry for the inconvenience if the bug really should have been left as Available. If you change it back, also remove the "Hotlist-Recharge-Cold" label. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Feb 20 2018
|
|||
►
Sign in to add a comment |
|||
Comment 1 by titzer@chromium.org
, Jan 20 2017