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

Side by Side Diff: runtime/vm/service_isolate.cc

Issue 1232193003: Provide stdout and stderr output in the Observatory debugger. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: before commit Created 5 years, 5 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
« no previous file with comments | « runtime/vm/service_event.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 #include "vm/service_isolate.h" 5 #include "vm/service_isolate.h"
6 6
7 #include "vm/compiler.h" 7 #include "vm/compiler.h"
8 #include "vm/dart_api_impl.h" 8 #include "vm/dart_api_impl.h"
9 #include "vm/dart_entry.h" 9 #include "vm/dart_entry.h"
10 #include "vm/isolate.h" 10 #include "vm/isolate.h"
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 } 297 }
298 } 298 }
299 299
300 static void ListenStream(Dart_NativeArguments args) { 300 static void ListenStream(Dart_NativeArguments args) {
301 NativeArguments* arguments = reinterpret_cast<NativeArguments*>(args); 301 NativeArguments* arguments = reinterpret_cast<NativeArguments*>(args);
302 Isolate* isolate = arguments->thread()->isolate(); 302 Isolate* isolate = arguments->thread()->isolate();
303 StackZone stack_zone(isolate); 303 StackZone stack_zone(isolate);
304 Zone* zone = stack_zone.GetZone(); // Used by GET_NON_NULL_NATIVE_ARGUMENT. 304 Zone* zone = stack_zone.GetZone(); // Used by GET_NON_NULL_NATIVE_ARGUMENT.
305 HANDLESCOPE(isolate); 305 HANDLESCOPE(isolate);
306 GET_NON_NULL_NATIVE_ARGUMENT(String, stream_id, arguments->NativeArgAt(0)); 306 GET_NON_NULL_NATIVE_ARGUMENT(String, stream_id, arguments->NativeArgAt(0));
307 Service::ListenStream(stream_id.ToCString()); 307 bool result = Service::ListenStream(stream_id.ToCString());
308 arguments->SetReturn(Bool::Get(result));
308 } 309 }
309 310
310 static void CancelStream(Dart_NativeArguments args) { 311 static void CancelStream(Dart_NativeArguments args) {
311 NativeArguments* arguments = reinterpret_cast<NativeArguments*>(args); 312 NativeArguments* arguments = reinterpret_cast<NativeArguments*>(args);
312 Isolate* isolate = arguments->thread()->isolate(); 313 Isolate* isolate = arguments->thread()->isolate();
313 StackZone stack_zone(isolate); 314 StackZone stack_zone(isolate);
314 Zone* zone = stack_zone.GetZone(); // Used by GET_NON_NULL_NATIVE_ARGUMENT. 315 Zone* zone = stack_zone.GetZone(); // Used by GET_NON_NULL_NATIVE_ARGUMENT.
315 HANDLESCOPE(isolate); 316 HANDLESCOPE(isolate);
316 GET_NON_NULL_NATIVE_ARGUMENT(String, stream_id, arguments->NativeArgAt(0)); 317 GET_NON_NULL_NATIVE_ARGUMENT(String, stream_id, arguments->NativeArgAt(0));
317 Service::CancelStream(stream_id.ToCString()); 318 Service::CancelStream(stream_id.ToCString());
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after
806 return result; 807 return result;
807 } 808 }
808 Dart_Handle source = GetSource(url_string); 809 Dart_Handle source = GetSource(url_string);
809 if (Dart_IsError(source)) { 810 if (Dart_IsError(source)) {
810 return source; 811 return source;
811 } 812 }
812 return Dart_LoadSource(library, url, source, 0, 0); 813 return Dart_LoadSource(library, url, source, 0, 0);
813 } 814 }
814 815
815 } // namespace dart 816 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/service_event.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698