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

Side by Side Diff: runtime/vm/dart_api_impl.cc

Issue 11413101: Added support for isolate unhandled exceptions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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 unified diff | Download patch | Annotate | Revision Log
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 718 matching lines...) Expand 10 before | Expand all | Expand 10 after
729 isolate->heap()->Profile(callback, stream); 729 isolate->heap()->Profile(callback, stream);
730 return Api::Success(isolate); 730 return Api::Success(isolate);
731 } 731 }
732 732
733 // --- Initialization and Globals --- 733 // --- Initialization and Globals ---
734 734
735 DART_EXPORT const char* Dart_VersionString() { 735 DART_EXPORT const char* Dart_VersionString() {
736 return Version::String(); 736 return Version::String();
737 } 737 }
738 738
739 DART_EXPORT bool Dart_Initialize(Dart_IsolateCreateCallback create, 739 DART_EXPORT bool Dart_Initialize(
740 Dart_IsolateInterruptCallback interrupt, 740 Dart_IsolateCreateCallback create,
741 Dart_IsolateShutdownCallback shutdown) { 741 Dart_IsolateInterruptCallback interrupt,
742 return Dart::InitOnce(create, interrupt, shutdown); 742 Dart_IsolateUnhandledExceptionCallback unhandled,
743 Dart_IsolateShutdownCallback shutdown) {
744 return Dart::InitOnce(create, interrupt, unhandled, shutdown);
743 } 745 }
744 746
745 DART_EXPORT bool Dart_SetVMFlags(int argc, const char** argv) { 747 DART_EXPORT bool Dart_SetVMFlags(int argc, const char** argv) {
746 return Flags::ProcessCommandLineFlags(argc, argv); 748 return Flags::ProcessCommandLineFlags(argc, argv);
747 } 749 }
748 750
749 DART_EXPORT bool Dart_IsVMFlagSet(const char* flag_name) { 751 DART_EXPORT bool Dart_IsVMFlagSet(const char* flag_name) {
750 if (Flags::Lookup(flag_name) != NULL) { 752 if (Flags::Lookup(flag_name) != NULL) {
751 return true; 753 return true;
752 } 754 }
(...skipping 3739 matching lines...) Expand 10 before | Expand all | Expand 10 after
4492 } 4494 }
4493 { 4495 {
4494 NoGCScope no_gc; 4496 NoGCScope no_gc;
4495 RawObject* raw_obj = obj.raw(); 4497 RawObject* raw_obj = obj.raw();
4496 isolate->heap()->SetPeer(raw_obj, peer); 4498 isolate->heap()->SetPeer(raw_obj, peer);
4497 } 4499 }
4498 return Api::Success(isolate); 4500 return Api::Success(isolate);
4499 } 4501 }
4500 4502
4501 } // namespace dart 4503 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/dart.cc ('k') | runtime/vm/dart_api_impl_test.cc » ('j') | runtime/vm/isolate.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698