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

Unified Diff: vm/dart.cc

Issue 8673002: - Refactor the isolate callback mechanism to also include creation of the (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: '' Created 9 years, 1 month 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 | « vm/dart.h ('k') | vm/dart_api_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/dart.cc
===================================================================
--- vm/dart.cc (revision 1955)
+++ vm/dart.cc (working copy)
@@ -24,7 +24,7 @@
DebugInfo* Dart::pprof_symbol_generator_ = NULL;
bool Dart::InitOnce(int argc, const char** argv,
- Dart_IsolateInitCallback callback) {
+ Dart_IsolateCreateCallback callback) {
// TODO(iposva): Fix race condition here.
if (vm_isolate_ != NULL) {
return false;
@@ -47,13 +47,13 @@
Scanner::InitOnce();
}
Isolate::SetCurrent(NULL); // Unregister the VM isolate from this thread.
- Isolate::SetInitCallback(callback);
+ Isolate::SetCreateCallback(callback);
return true;
}
Isolate* Dart::CreateIsolate() {
- // Create and initialize a new isolate.
+ // Create a new isolate.
Isolate* isolate = Isolate::Init();
ASSERT(isolate != NULL);
return isolate;
@@ -84,11 +84,6 @@
StubCode::Init(isolate);
CodeIndexTable::Init(isolate);
-
- // Give the embedder a shot at setting up this isolate.
- // Isolates spawned from within this isolate will be given the
- // callback data returned by the callback.
- data = Isolate::InitCallback()(data);
isolate->set_init_callback_data(data);
}
« no previous file with comments | « vm/dart.h ('k') | vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698