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: Disable test on Turbofan 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
« no previous file with comments | « src/ast/prettyprinter.cc ('k') | src/full-codegen/full-codegen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..085ad0d640c8eab9274ce96803778823d9d7f18d 100644
--- a/src/full-codegen/full-codegen.h
+++ b/src/full-codegen/full-codegen.h
@@ -37,7 +37,6 @@ class FullCodeGenerator: public AstVisitor {
scope_(info->scope()),
nesting_stack_(NULL),
loop_depth_(0),
- try_catch_depth_(0),
operand_stack_depth_(0),
globals_(NULL),
context_(NULL),
@@ -687,7 +686,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 +773,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 {
@@ -969,7 +968,6 @@ class FullCodeGenerator: public AstVisitor {
Label return_label_;
NestedStatement* nesting_stack_;
int loop_depth_;
- int try_catch_depth_;
int operand_stack_depth_;
ZoneList<Handle<Object> >* globals_;
const ExpressionContext* context_;
« no previous file with comments | « src/ast/prettyprinter.cc ('k') | src/full-codegen/full-codegen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698