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

Unified Diff: runtime/vm/dart.cc

Issue 1291803009: Enable concurrent optimization test after migrating scopes to Thread* (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Update ASSERT in LongJumpScope. Created 5 years, 4 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/compiler_stats.h ('k') | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/dart.cc
diff --git a/runtime/vm/dart.cc b/runtime/vm/dart.cc
index 467156009f86e612629f658709e393a61ceb7ee9..e5cd485be6968f8b33a0249711c33d859e719369 100644
--- a/runtime/vm/dart.cc
+++ b/runtime/vm/dart.cc
@@ -236,8 +236,9 @@ Isolate* Dart::CreateIsolate(const char* name_prefix,
RawError* Dart::InitializeIsolate(const uint8_t* snapshot_buffer, void* data) {
// Initialize the new isolate.
- Isolate* isolate = Isolate::Current();
- TIMERSCOPE(isolate, time_isolate_initialization);
+ Thread* thread = Thread::Current();
+ Isolate* isolate = thread->isolate();
+ TIMERSCOPE(thread, time_isolate_initialization);
TimelineDurationScope tds(isolate,
isolate->GetIsolateStream(),
"InitializeIsolate");
« no previous file with comments | « runtime/vm/compiler_stats.h ('k') | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698