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

Unified Diff: runtime/vm/dart.cc

Issue 1225933002: Remove fixed contant pool entries by caching some global constants in Thread (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: added helper methods to Thread Created 5 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/dart.cc
diff --git a/runtime/vm/dart.cc b/runtime/vm/dart.cc
index 4fd93cb190ae0d0ee5759ad7fbce3e6a8a8c1890..7bb4fe3a399569edb61915240c5af47eb247d4d3 100644
--- a/runtime/vm/dart.cc
+++ b/runtime/vm/dart.cc
@@ -95,7 +95,7 @@ const char* Dart::InitOnce(const uint8_t* vm_isolate_snapshot,
Isolate::SetEntropySourceCallback(entropy_source);
OS::InitOnce();
VirtualMemory::InitOnce();
- Thread::InitOnce();
+ Thread::InitOnceBeforeIsolate();
Isolate::InitOnce();
PortMap::InitOnce();
FreeListElement::InitOnce();
@@ -120,7 +120,6 @@ const char* Dart::InitOnce(const uint8_t* vm_isolate_snapshot,
ASSERT(vm_isolate_ == NULL);
ASSERT(Flags::Initialized());
const bool is_vm_isolate = true;
- Thread::EnsureInit();
// Setup default flags for the VM isolate.
Isolate::Flags vm_flags;
@@ -140,6 +139,7 @@ const char* Dart::InitOnce(const uint8_t* vm_isolate_snapshot,
Object::InitOnce(vm_isolate_);
ArgumentsDescriptor::InitOnce();
StubCode::InitOnce();
+ Thread::InitOnceAfterObjectAndStubCode();
// Now that the needed stub has been generated, set the stack limit.
vm_isolate_->InitializeStackLimit();
if (vm_isolate_snapshot != NULL) {

Powered by Google App Engine
This is Rietveld 408576698