Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Unified Diff: src/compiler/bytecode-branch-analysis.h

Issue 1641723002: [interpreter] Translate exception handlers into graph. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comments. Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/compiler/bytecode-branch-analysis.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/bytecode-branch-analysis.h
diff --git a/src/compiler/bytecode-branch-analysis.h b/src/compiler/bytecode-branch-analysis.h
index 0ef33b640c36feb52ebd3fba24889f96e0e08b4a..41ef0f6d84e9e84d0887053ee62b1ea371618034 100644
--- a/src/compiler/bytecode-branch-analysis.h
+++ b/src/compiler/bytecode-branch-analysis.h
@@ -57,8 +57,14 @@ class BytecodeBranchAnalysis BASE_EMBEDDED {
return sites != nullptr && sites->size() > 0;
}
+ // Adds an additional implicit branch from a throw-site at {throw_offset} to
+ // the corresponding exception handler at {handler_offset}. Note that such a
+ // branch must be a forward branch and has to target a known handler.
+ void AddExceptionalBranch(int throw_offset, int handler_offset);
+
private:
void AddBranch(int origin_offset, int target_offset);
+ void AnalyzeExceptionHandlers();
Zone* zone() const { return zone_; }
Handle<BytecodeArray> bytecode_array() const { return bytecode_array_; }
« no previous file with comments | « no previous file | src/compiler/bytecode-branch-analysis.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698