| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 patch class _WindowsCodePageDecoder { | 5 patch class _WindowsCodePageDecoder { |
| 6 /* patch */ static String _decodeBytes(List<int> bytes) | 6 /* patch */ static String _decodeBytes(List<int> bytes) |
| 7 native "SystemEncodingToString"; | 7 native "SystemEncodingToString"; |
| 8 } | 8 } |
| 9 | 9 |
| 10 | 10 |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 }); | 107 }); |
| 108 } | 108 } |
| 109 | 109 |
| 110 void _cancel() { | 110 void _cancel() { |
| 111 if (_id != null) { | 111 if (_id != null) { |
| 112 _clearSignalHandler(signal._signalNumber); | 112 _clearSignalHandler(signal._signalNumber); |
| 113 _id = null; | 113 _id = null; |
| 114 } | 114 } |
| 115 } | 115 } |
| 116 | 116 |
| 117 /* patch */ static int _setSignalHandler(int signal) | 117 /* patch */ static _setSignalHandler(int signal) |
| 118 native "Process_SetSignalHandler"; | 118 native "Process_SetSignalHandler"; |
| 119 /* patch */ static int _clearSignalHandler(int signal) | 119 /* patch */ static int _clearSignalHandler(int signal) |
| 120 native "Process_ClearSignalHandler"; | 120 native "Process_ClearSignalHandler"; |
| 121 } | 121 } |
| 122 | 122 |
| 123 | 123 |
| 124 patch class _ProcessUtils { | 124 patch class _ProcessUtils { |
| 125 /* patch */ static void _exit(int status) native "Process_Exit"; | 125 /* patch */ static void _exit(int status) native "Process_Exit"; |
| 126 /* patch */ static void _setExitCode(int status) | 126 /* patch */ static void _setExitCode(int status) |
| 127 native "Process_SetExitCode"; | 127 native "Process_SetExitCode"; |
| (...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 533 const _ProcessResult(int this.pid, | 533 const _ProcessResult(int this.pid, |
| 534 int this.exitCode, | 534 int this.exitCode, |
| 535 this.stdout, | 535 this.stdout, |
| 536 this.stderr); | 536 this.stderr); |
| 537 | 537 |
| 538 final int pid; | 538 final int pid; |
| 539 final int exitCode; | 539 final int exitCode; |
| 540 final stdout; | 540 final stdout; |
| 541 final stderr; | 541 final stderr; |
| 542 } | 542 } |
| OLD | NEW |