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

Unified Diff: vm/isolate_win.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
Index: vm/isolate_win.cc
===================================================================
--- vm/isolate_win.cc (revision 1818)
+++ vm/isolate_win.cc (working copy)
@@ -21,8 +21,8 @@
// Empty isolate init callback which is registered before VM isolate creation.
-static void* VMIsolateInitCallback(void* data) {
- return reinterpret_cast<void*>(1);
+static bool VMIsolateCreateCallback(void* data, Dart_ErrorBuffer error) {
+ return true;
}
@@ -32,7 +32,7 @@
if (isolate_key == TLS_OUT_OF_INDEXES) {
FATAL("TlsAlloc failed");
}
- init_callback_ = VMIsolateInitCallback;
+ create_callback_ = VMIsolateCreateCallback;
}
} // namespace dart

Powered by Google App Engine
This is Rietveld 408576698