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

Unified Diff: runtime/vm/object.cc

Issue 1151113002: Move bootstrap scripts and token streams to the VM isolate so that they become read only objects. T… (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Address code review comments Created 5 years, 7 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/dart_api_message.cc ('k') | runtime/vm/raw_object.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index aeb798833557a3b06b90ade0ce623bd83e8a7ac1..c3b61f514232fae20d8b3673460b5d865f915a88 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -601,6 +601,17 @@ void Object::InitOnce(Isolate* isolate) {
isolate->object_store()->set_one_byte_string_class(cls);
cls = Class::NewStringClass(kTwoByteStringCid);
isolate->object_store()->set_two_byte_string_class(cls);
+ cls = Class::New<Mint>();
+ isolate->object_store()->set_mint_class(cls);
+ cls = Class::New<Bigint>();
+ isolate->object_store()->set_bigint_class(cls);
+ cls = Class::New<Double>();
+ isolate->object_store()->set_double_class(cls);
+
+ // Ensure that class kExternalTypedDataUint8ArrayCid is registered as we
+ // need it when reading in the token stream of bootstrap classes in the VM
+ // isolate.
+ Class::NewExternalTypedDataClass(kExternalTypedDataUint8ArrayCid);
// Allocate and initialize the empty_array instance.
{
« no previous file with comments | « runtime/vm/dart_api_message.cc ('k') | runtime/vm/raw_object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698