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

Unified Diff: src/full-codegen/full-codegen.h

Issue 2146493002: Move catch prediction into frontend. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: ... Created 4 years, 5 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
Index: src/full-codegen/full-codegen.h
diff --git a/src/full-codegen/full-codegen.h b/src/full-codegen/full-codegen.h
index 22f173100830143f19adbcfa555df4202588902b..1face09b72950a9dc1aae613197856d2fb2b6c63 100644
--- a/src/full-codegen/full-codegen.h
+++ b/src/full-codegen/full-codegen.h
@@ -687,7 +687,7 @@ class FullCodeGenerator: public AstVisitor {
void RecordPosition(int pos);
// Non-local control flow support.
- void EnterTryBlock(int handler_index, Label* handler);
+ void EnterTryBlock(int handler_index, Label* handler, bool catch_predicted);
void ExitTryBlock(int handler_index);
void EnterFinallyBlock();
void ExitFinallyBlock();
@@ -774,7 +774,7 @@ class FullCodeGenerator: public AstVisitor {
unsigned range_end;
unsigned handler_offset;
int stack_depth;
- int try_catch_depth;
+ bool catch_predicted;
};
class ExpressionContext BASE_EMBEDDED {

Powered by Google App Engine
This is Rietveld 408576698