| Index: runtime/bin/builtin.cc
|
| diff --git a/runtime/bin/builtin.cc b/runtime/bin/builtin.cc
|
| index 5adcb98e69dd5415f812c5494ca0437646d64d14..83ea3a36155e674b97ec630b9028639a1a2c3654 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.
|
| @@ -27,3 +28,10 @@ void FUNCTION_NAME(Logger_PrintString)(Dart_NativeArguments args) {
|
| PrintString(stdout, Dart_GetNativeArgument(args, 0));
|
| Dart_ExitScope();
|
| }
|
| +
|
| +void FUNCTION_NAME(Exit)(Dart_NativeArguments args) {
|
| + Dart_EnterScope();
|
| + int64_t status = DartUtils::GetIntegerValue(Dart_GetNativeArgument(args, 0));
|
| + Dart_ExitScope();
|
| + exit(status);
|
| +}
|
|
|