Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(194)

Unified Diff: vm/scopes.cc

Issue 10783035: Create frequently used symbols in the vm isolate (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « vm/scanner.cc ('k') | vm/snapshot.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/scopes.cc
===================================================================
--- vm/scopes.cc (revision 9829)
+++ vm/scopes.cc (working copy)
@@ -8,6 +8,7 @@
#include "vm/bit_vector.h"
#include "vm/object.h"
#include "vm/parser.h"
+#include "vm/symbols.h"
namespace dart {
@@ -511,7 +512,7 @@
ContextScope::Handle(ContextScope::New(kNumCapturedVars));
// Create a descriptor for 'this' variable.
- const String& name = String::Handle(String::NewSymbol("this"));
+ const String& name = String::Handle(Symbols::New("this"));
context_scope.SetTokenIndexAt(0, func.token_pos());
context_scope.SetNameAt(0, name);
context_scope.SetIsFinalAt(0, true);
« no previous file with comments | « vm/scanner.cc ('k') | vm/snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698