Skip to content

Commit

Permalink
Support RAISE_VARARGS without try/except handlers
Browse files Browse the repository at this point in the history
This brings us up from ~2500/3500 to ~3000/3500 analyzed. Next pole in
the tent is SETUP_FINALLY.
  • Loading branch information
tekknolagi committed Nov 28, 2023
1 parent 5d15d67 commit 4b9a778
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion runtime/bytecode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,6 @@ struct Edge {

#define FOREACH_UNSUPPORTED_CASE(V) \
V(POP_BLOCK) \
V(RAISE_VARARGS) \
V(SETUP_ASYNC_WITH) \
V(SETUP_FINALLY) \
V(SETUP_WITH) \
Expand Down Expand Up @@ -336,6 +335,10 @@ static Vector<Edge> findEdges(const MutableBytes& bytecode) {
case RETURN_VALUE:
// Return exits the function so there is no edge to the next opcode.
break;
case RAISE_VARARGS:
// In the absence of try/except, RAISE_VARARGS exits the function, so
// there is no edge to the next opcode.
break;
default:
// By default, each instruction "jumps" to the next.
edges.push_back(Edge{cur, next});
Expand Down

0 comments on commit 4b9a778

Please sign in to comment.