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

Side by Side Diff: runtime/bin/builtin.dart

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: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 #library("builtin"); 5 #library("builtin");
6 6
7 void print(arg) { 7 void print(arg) {
8 _Logger._printString(arg.toString()); 8 _Logger._printString(arg.toString());
9 } 9 }
10 10
11 void exit(int status) {
12 _Runtime._exit(status);
Ivan Posva 2011/10/19 21:57:11 If called like this: exit("0"); The VM will run in
rchandia 2011/10/21 17:29:41 Done.
13 }
14
11 class _Logger { 15 class _Logger {
12 static void _printString(String s) native "Logger_PrintString"; 16 static void _printString(String s) native "Logger_PrintString";
13 } 17 }
18
19 class _Runtime {
Ivan Posva 2011/10/19 21:57:11 There is no need to add a class as a wrapper here.
rchandia 2011/10/21 17:29:41 Done.
20 static void _exit(int status) native "Runtime_Exit";
21 }
OLDNEW
« runtime/bin/builtin.cc ('K') | « runtime/bin/builtin.cc ('k') | runtime/bin/builtin_in.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698