Skip to content

Commit 969cea3

Browse files
Eric LeeseV8 LUCI CQ
authored andcommitted
Don't assume all turbofan frames are JavaScript
Bug: 367734947 Change-Id: I61ccc3b0d0c87bd0fc5b3aa03308897d6c472ce7 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/5898894 Reviewed-by: Leszek Swirski <[email protected]> Auto-Submit: Eric Leese <[email protected]> Commit-Queue: Eric Leese <[email protected]> Cr-Commit-Position: refs/heads/main@{#96363}
1 parent f9de8d5 commit 969cea3

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/execution/isolate.cc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2675,6 +2675,13 @@ HandlerTable::CatchPrediction PredictExceptionFromBytecode(
26752675

26762676
HandlerTable::CatchPrediction PredictException(const FrameSummary& summary,
26772677
Isolate* isolate) {
2678+
if (!summary.IsJavaScript()) {
2679+
// This can happen when WASM is inlined by TurboFan. For now we ignore
2680+
// frames that are not JavaScript.
2681+
// TODO(https://crbug.com/349588762): We should also check Wasm code
2682+
// for exception handling.
2683+
return HandlerTable::UNCAUGHT;
2684+
}
26782685
PtrComprCageBase cage_base(isolate);
26792686
DirectHandle<AbstractCode> code = summary.AsJavaScript().abstract_code();
26802687
if (code->kind(cage_base) == CodeKind::BUILTIN) {

0 commit comments

Comments
 (0)