Revision: 12672
Author: [email protected]
Date: Mon Oct 8 04:39:08 2012
Log: Use dot_for_symbol.
[email protected]
BUG=
Review URL: https://codereview.chromium.org/11087002
http://code.google.com/p/v8/source/detail?r=12672
Modified:
/branches/bleeding_edge/src/parser.cc
=======================================
--- /branches/bleeding_edge/src/parser.cc Fri Oct 5 05:47:34 2012
+++ /branches/bleeding_edge/src/parser.cc Mon Oct 8 04:39:08 2012
@@ -2843,9 +2843,8 @@
// 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);
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev