Chromium Code Reviews| 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.
|
| } |