Commit 0c2fd0da authored by rossberg@chromium.org's avatar rossberg@chromium.org

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
parent 7bea116e
......@@ -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<String> dot =
heap_factory->NewStringFromAscii(CStrVector(".for."));
Handle<String> tempstr = heap_factory->NewConsString(dot, name);
Handle<String> tempstr =
heap_factory->NewConsString(heap_factory->dot_for_symbol(), name);
Handle<String> tempname = heap_factory->LookupSymbol(tempstr);
Variable* temp = top_scope_->DeclarationScope()->NewTemporary(tempname);
VariableProxy* temp_proxy = factory()->NewVariableProxy(temp);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment