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

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
« no previous file with comments | « runtime/vm/raw_object.h ('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 eae0796ff88d36a05c18545ce310d08db6c8b13f..e9033d1ad9320e50d10d79560c3f6a2c3ef60682 100644
--- a/runtime/vm/symbols.h
+++ b/runtime/vm/symbols.h
@@ -572,6 +572,11 @@ 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
+ // symbols deleted from the symbol table because they where not referenced
+ // from anywhere else.
+ 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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698