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

Unified Diff: runtime/vm/object.cc

Issue 10830045: - Add the ability to protect VirtualMemory. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
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
Index: runtime/vm/object.cc
===================================================================
--- runtime/vm/object.cc (revision 9969)
+++ runtime/vm/object.cc (working copy)
@@ -780,7 +780,6 @@
cls = dynamic_class_;
type = Type::NewNonParameterizedType(cls);
object_store->set_dynamic_type(type);
- core_lib.AddClass(cls);
// Allocate pre-initialized values.
Bool& bool_value = Bool::Handle();
@@ -6051,6 +6050,10 @@
core_lib.AddImport(core_impl_lib);
core_impl_lib.AddImport(core_lib);
isolate->object_store()->set_root_library(Library::Handle());
+
+ // Hook up predefined classes without setting their library pointers.
siva 2012/07/27 01:55:00 The comment on top seems more meaningful i.e. //
Ivan Posva 2012/07/27 18:02:56 Added a better comment. The name should actually b
+ const Class& cls = Class::Handle(Object::dynamic_class());
+ core_lib.AddObject(cls, String::Handle(cls.Name()));
}

Powered by Google App Engine
This is Rietveld 408576698