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

Unified Diff: src/utils.h

Issue 1413933005: [turbofan] Fix bailout for script context creation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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/hydrogen.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/utils.h
diff --git a/src/utils.h b/src/utils.h
index 23f52f63be4b0449b49430709897d441223ff3fa..0426ce51cb7dd1ea5e49663fb4c71dcc1a6a8b2f 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -1074,7 +1074,8 @@ class BailoutId {
int ToInt() const { return id_; }
static BailoutId None() { return BailoutId(kNoneId); }
- static BailoutId Prologue() { return BailoutId(kPrologueId); }
+ static BailoutId ScriptContext() { return BailoutId(kScriptContextId); }
+ static BailoutId FunctionContext() { return BailoutId(kFunctionContextId); }
static BailoutId FunctionEntry() { return BailoutId(kFunctionEntryId); }
static BailoutId Declarations() { return BailoutId(kDeclarationsId); }
static BailoutId FirstUsable() { return BailoutId(kFirstUsableId); }
@@ -1090,19 +1091,20 @@ class BailoutId {
static const int kNoneId = -1;
// Using 0 could disguise errors.
- static const int kPrologueId = 1;
- static const int kFunctionEntryId = 2;
+ static const int kScriptContextId = 1;
+ static const int kFunctionContextId = 2;
+ static const int kFunctionEntryId = 3;
// This AST id identifies the point after the declarations have been visited.
// We need it to capture the environment effects of declarations that emit
// code (function declarations).
- static const int kDeclarationsId = 3;
+ static const int kDeclarationsId = 4;
// Every FunctionState starts with this id.
- static const int kFirstUsableId = 4;
+ static const int kFirstUsableId = 5;
// Every compiled stub starts with this id.
- static const int kStubEntryId = 5;
+ static const int kStubEntryId = 6;
int id_;
};
« no previous file with comments | « src/hydrogen.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698