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

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

Issue 533073005: Reduce service isolate startup time from ~80ms to ~30ms (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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) 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 _id = null; 113 _id = null;
114 } 114 }
115 } 115 }
116 116
117 /* patch */ static _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 Function _getWatchSignalInternal() => _ProcessUtils._watchSignalInternal;
124
123 125
124 patch class _ProcessUtils { 126 patch class _ProcessUtils {
125 /* patch */ static void _exit(int status) native "Process_Exit"; 127 /* patch */ static void _exit(int status) native "Process_Exit";
126 /* patch */ static void _setExitCode(int status) 128 /* patch */ static void _setExitCode(int status)
127 native "Process_SetExitCode"; 129 native "Process_SetExitCode";
128 /* patch */ static int _getExitCode() native "Process_GetExitCode"; 130 /* patch */ static int _getExitCode() native "Process_GetExitCode";
129 /* patch */ static void _sleep(int millis) native "Process_Sleep"; 131 /* patch */ static void _sleep(int millis) native "Process_Sleep";
130 /* patch */ static int _pid(Process process) native "Process_Pid"; 132 /* patch */ static int _pid(Process process) native "Process_Pid";
131 /* patch */ static Stream<ProcessSignal> _watchSignal(ProcessSignal signal) { 133 /* patch */ static Stream<ProcessSignal> _watchSignal(ProcessSignal signal) {
132 if (signal != ProcessSignal.SIGHUP && 134 if (signal != ProcessSignal.SIGHUP &&
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after
589 const _ProcessResult(int this.pid, 591 const _ProcessResult(int this.pid,
590 int this.exitCode, 592 int this.exitCode,
591 this.stdout, 593 this.stdout,
592 this.stderr); 594 this.stderr);
593 595
594 final int pid; 596 final int pid;
595 final int exitCode; 597 final int exitCode;
596 final stdout; 598 final stdout;
597 final stderr; 599 final stderr;
598 } 600 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698