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

Side by Side Diff: vm/dart_api_impl.cc

Issue 10450016: Add a callback to inform embedders when an isolate is being shut down. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « vm/dart.cc ('k') | vm/dart_api_impl_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "include/dart_api.h" 5 #include "include/dart_api.h"
6 6
7 #include "vm/bigint_operations.h" 7 #include "vm/bigint_operations.h"
8 #include "vm/class_finalizer.h" 8 #include "vm/class_finalizer.h"
9 #include "vm/compiler.h" 9 #include "vm/compiler.h"
10 #include "vm/dart.h" 10 #include "vm/dart.h"
(...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after
605 } 605 }
606 callbacks.Remove(callback); 606 callbacks.Remove(callback);
607 return Api::Success(isolate); 607 return Api::Success(isolate);
608 } 608 }
609 609
610 610
611 // --- Initialization and Globals --- 611 // --- Initialization and Globals ---
612 612
613 613
614 DART_EXPORT bool Dart_Initialize(Dart_IsolateCreateCallback create, 614 DART_EXPORT bool Dart_Initialize(Dart_IsolateCreateCallback create,
615 Dart_IsolateInterruptCallback interrupt) { 615 Dart_IsolateInterruptCallback interrupt,
616 return Dart::InitOnce(create, interrupt); 616 Dart_IsolateShutdownCallback shutdown) {
617 return Dart::InitOnce(create, interrupt, shutdown);
617 } 618 }
618 619
619 DART_EXPORT bool Dart_SetVMFlags(int argc, const char** argv) { 620 DART_EXPORT bool Dart_SetVMFlags(int argc, const char** argv) {
620 return Flags::ProcessCommandLineFlags(argc, argv); 621 return Flags::ProcessCommandLineFlags(argc, argv);
621 } 622 }
622 623
623 DART_EXPORT bool Dart_IsVMFlagSet(const char* flag_name) { 624 DART_EXPORT bool Dart_IsVMFlagSet(const char* flag_name) {
624 if (Flags::Lookup(flag_name) != NULL) { 625 if (Flags::Lookup(flag_name) != NULL) {
625 return true; 626 return true;
626 } 627 }
(...skipping 2686 matching lines...) Expand 10 before | Expand all | Expand 10 after
3313 *buffer = NULL; 3314 *buffer = NULL;
3314 } 3315 }
3315 delete debug_region; 3316 delete debug_region;
3316 } else { 3317 } else {
3317 *buffer = NULL; 3318 *buffer = NULL;
3318 *buffer_size = 0; 3319 *buffer_size = 0;
3319 } 3320 }
3320 } 3321 }
3321 3322
3322 } // namespace dart 3323 } // namespace dart
OLDNEW
« no previous file with comments | « vm/dart.cc ('k') | vm/dart_api_impl_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698