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

Unified Diff: runtime/vm/kernel.cc

Issue 2853423002: Move the Kernel canonical name table into the VM's heap (Closed)
Patch Set: Merge a bugfix Created 3 years, 8 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/kernel.cc
diff --git a/runtime/vm/kernel.cc b/runtime/vm/kernel.cc
index 001d4506f6b9c1437c0c7e7b4032a6c0827c467f..c5e6700c90a0a40fa0680ca49e894a3db367ccdc 100644
--- a/runtime/vm/kernel.cc
+++ b/runtime/vm/kernel.cc
@@ -30,31 +30,6 @@ SourceTable::~SourceTable() {
}
-CanonicalName::CanonicalName()
- : parent_(NULL), name_index_(-1), is_referenced_(false) {}
-
-
-CanonicalName::~CanonicalName() {
- for (intptr_t i = 0; i < children_.length(); ++i) {
- delete children_[i];
- }
-}
-
-
-CanonicalName* CanonicalName::NewRoot() {
- return new CanonicalName();
-}
-
-
-CanonicalName* CanonicalName::AddChild(intptr_t name_index) {
- CanonicalName* child = new CanonicalName();
- child->parent_ = this;
- child->name_index_ = name_index;
- children_.Add(child);
- return child;
-}
-
-
Node::~Node() {}

Powered by Google App Engine
This is Rietveld 408576698