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

Unified Diff: runtime/vm/dart.cc

Issue 9242035: Give isolates names to be used during debugging. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 8 years, 11 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
===================================================================
--- runtime/vm/dart.cc (revision 3366)
+++ runtime/vm/dart.cc (working copy)
@@ -39,7 +39,7 @@
{
ASSERT(vm_isolate_ == NULL);
ASSERT(Flags::Initialized());
- vm_isolate_ = Isolate::Init();
+ vm_isolate_ = Isolate::Init("vm-isolate");
Zone zone(vm_isolate_);
HandleScope handle_scope(vm_isolate_);
Heap::Init(vm_isolate_);
@@ -55,9 +55,9 @@
}
-Isolate* Dart::CreateIsolate() {
+Isolate* Dart::CreateIsolate(const char* name_prefix) {
// Create a new isolate.
- Isolate* isolate = Isolate::Init();
+ Isolate* isolate = Isolate::Init(name_prefix);
ASSERT(isolate != NULL);
return isolate;
}
« runtime/include/dart_api.h ('K') | « runtime/vm/dart.h ('k') | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698