From 0c2fd0daa7a500922b0ccbc655969c9e71c21100 Mon Sep 17 00:00:00 2001 From: "rossberg@chromium.org" Date: Mon, 8 Oct 2012 11:39:08 +0000 Subject: [PATCH] Use dot_for_symbol. R=svenpanne@chromium.org BUG= Review URL: https://codereview.chromium.org/11087002 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@12672 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/parser.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/parser.cc b/src/parser.cc index c2fd015..129bd95 100644 --- a/src/parser.cc +++ b/src/parser.cc @@ -2843,9 +2843,8 @@ Statement* Parser::ParseForStatement(ZoneStringList* labels, bool* ok) { // TODO(keuchel): Move the temporary variable to the block scope, after // implementing stack allocated block scoped variables. Factory* heap_factory = isolate()->factory(); - Handle dot = - heap_factory->NewStringFromAscii(CStrVector(".for.")); - Handle tempstr = heap_factory->NewConsString(dot, name); + Handle tempstr = + heap_factory->NewConsString(heap_factory->dot_for_symbol(), name); Handle tempname = heap_factory->LookupSymbol(tempstr); Variable* temp = top_scope_->DeclarationScope()->NewTemporary(tempname); VariableProxy* temp_proxy = factory()->NewVariableProxy(temp); -- 2.7.4