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

Unified Diff: runtime/vm/symbols.h

Issue 1320673012: Lookup getter/setter symbols before alllocating them, thus eliminating extra String allocations in … (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Formatting Created 5 years, 3 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 | « runtime/vm/parser.cc ('k') | runtime/vm/symbols.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/symbols.h
diff --git a/runtime/vm/symbols.h b/runtime/vm/symbols.h
index f5f7bbfda709eff52119495018f90b74604ae1b3..726988dd802a6ebbf1e0cb60acfca692b322a54c 100644
--- a/runtime/vm/symbols.h
+++ b/runtime/vm/symbols.h
@@ -611,6 +611,13 @@ class Symbols : public AllStatic {
static void DumpStats();
+ // Returns Symbol::Null if no symbol is found.
+ template<typename StringType>
+ static RawString* Lookup(const StringType& str);
+
+ // Returns Symbol::Null if no symbol is found.
+ static RawString* LookupFromConcat(const String& str1, const String& str2);
+
private:
enum {
kInitialVMIsolateSymtabSize = 1024,
« no previous file with comments | « runtime/vm/parser.cc ('k') | runtime/vm/symbols.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698