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

Unified Diff: runtime/bin/builtin.cc

Issue 8317006: Added builtin native call to exit the running vm (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Review comments Created 9 years, 2 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
« no previous file with comments | « no previous file | runtime/bin/builtin.dart » ('j') | runtime/bin/builtin.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/builtin.cc
diff --git a/runtime/bin/builtin.cc b/runtime/bin/builtin.cc
index 943b56bad123879286c35ceaf3861a0ca9493166..933a3f653e231bd2d08abf65215db66e6d089bb6 100644
--- a/runtime/bin/builtin.cc
+++ b/runtime/bin/builtin.cc
@@ -7,6 +7,7 @@
#include "include/dart_api.h"
#include "bin/builtin.h"
+#include "bin/dartutils.h"
// Implementation of native functions which are used for some
// test/debug functionality in standalone dart mode.
@@ -25,3 +26,10 @@ void FUNCTION_NAME(Logger_PrintString)(Dart_NativeArguments args) {
PrintString(stdout, Dart_GetNativeArgument(args, 0));
Dart_ExitScope();
}
+
+void FUNCTION_NAME(Runtime_Exit)(Dart_NativeArguments args) {
+ Dart_EnterScope();
+ int64_t status = DartUtils::GetIntegerValue(Dart_GetNativeArgument(args, 0));
+ exit(status);
+ Dart_ExitScope();
Ivan Posva 2011/10/21 23:05:22 Needs to move above exit to really make any sense.
rchandia 2011/10/25 14:37:50 Done.
+}
« no previous file with comments | « no previous file | runtime/bin/builtin.dart » ('j') | runtime/bin/builtin.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698