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

Unified Diff: runtime/vm/symbols.h

Issue 1638143002: Precompilation: compact the symbol table. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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
Index: runtime/vm/symbols.h
diff --git a/runtime/vm/symbols.h b/runtime/vm/symbols.h
index eae0796ff88d36a05c18545ce310d08db6c8b13f..9aca7d225ae56d054940f9f66701c3e7d28daa1d 100644
--- a/runtime/vm/symbols.h
+++ b/runtime/vm/symbols.h
@@ -572,6 +572,10 @@ class Symbols : public AllStatic {
// Initialize and setup a symbol table for the isolate.
static void SetupSymbolTable(Isolate* isolate);
+ // Treat the symbol table as weak and collect garbage. Answer the number of
+ // freed symbols.
siva 2016/01/27 21:21:10 Maybe "Returns the number of symbols that have be
rmacnak 2016/01/27 23:06:20 Done.
+ static intptr_t Compact(Isolate* isolate);
+
// Creates a Symbol given a C string that is assumed to contain
// UTF-8 encoded characters and '\0' is considered a termination character.
// TODO(7123) - Rename this to FromCString(....).
« no previous file with comments | « runtime/vm/raw_object.h ('k') | runtime/vm/symbols.cc » ('j') | runtime/vm/symbols.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698