Index: src/parsing/parser.cc |
diff --git a/src/parsing/parser.cc b/src/parsing/parser.cc |
index c608c7ea1dcd7f19f7183a785e38f0d2274f9729..d85286c280fe237eeca1e3d233eabd8880947003 100644 |
--- a/src/parsing/parser.cc |
+++ b/src/parsing/parser.cc |
@@ -4386,7 +4386,7 @@ void Parser::HandleSourceURLComments(Isolate* isolate, Handle<Script> script) { |
void Parser::Internalize(Isolate* isolate, Handle<Script> script, bool error) { |
- // Internalize strings. |
+ // Internalize strings and values. |
ast_value_factory()->Internalize(isolate); |
// Error processing. |
@@ -4453,7 +4453,6 @@ bool Parser::Parse(ParseInfo* info) { |
info->set_literal(result); |
Internalize(isolate, info->script(), result == NULL); |
- DCHECK(ast_value_factory()->IsInternalized()); |
return (result != NULL); |
} |
@@ -5995,13 +5994,6 @@ Statement* Parser::FinalizeForOfStatement(ForOfStatement* loop, |
return final_loop; |
} |
-#ifdef DEBUG |
-void Parser::Print(AstNode* node) { |
- ast_value_factory()->Internalize(Isolate::Current()); |
- node->Print(Isolate::Current()); |
-} |
-#endif // DEBUG |
- |
#undef CHECK_OK |
#undef CHECK_OK_VOID |
#undef CHECK_FAILED |