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

Unified Diff: src/parser.cc

Issue 10831172: Introduced TypeFeedbackId and BailoutId types. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 4 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/parser.cc
diff --git a/src/parser.cc b/src/parser.cc
index 5ee217ca5c16a12f3142c0219c8cc0e013dbf486..f4edd0239de9e003ec28a75a5b5bfd0505c69eea 100644
--- a/src/parser.cc
+++ b/src/parser.cc
@@ -496,7 +496,8 @@ Parser::FunctionState::FunctionState(Parser* parser,
factory_(isolate, parser->zone()) {
parser->top_scope_ = scope;
parser->current_function_state_ = this;
- isolate->set_ast_node_id(AstNode::kDeclarationsId + 1);
+ // TODO(svenpanne) The arithmetic below is embarrassing...
+ isolate->set_ast_node_id(BailoutId::Declarations().ToInt() + 1);
Michael Starzinger 2012/08/06 13:03:41 Let's turn that into BailoutId::FirstUsable() or s
Sven Panne 2012/08/06 14:08:40 Done.
}

Powered by Google App Engine
This is Rietveld 408576698