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

Side by Side Diff: runtime/lib/vmservice.cc

Issue 2624393002: Remove dart_noopt and related parts from the VM. (Closed)
Patch Set: Merge branch 'master' of github.com:dart-lang/sdk into remove-noopt Created 3 years, 11 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/include/dart_api.h ('k') | runtime/observatory/tests/service/service.status » ('j') | 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/bootstrap_natives.h" 5 #include "vm/bootstrap_natives.h"
6 #include "vm/dart_api_impl.h" 6 #include "vm/dart_api_impl.h"
7 #include "vm/datastream.h" 7 #include "vm/datastream.h"
8 #include "vm/exceptions.h" 8 #include "vm/exceptions.h"
9 #include "vm/flags.h" 9 #include "vm/flags.h"
10 #include "vm/growable_array.h" 10 #include "vm/growable_array.h"
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 DEFINE_NATIVE_ENTRY(VMService_SendObjectRootServiceMessage, 1) { 117 DEFINE_NATIVE_ENTRY(VMService_SendObjectRootServiceMessage, 1) {
118 GET_NON_NULL_NATIVE_ARGUMENT(Array, message, arguments->NativeArgAt(0)); 118 GET_NON_NULL_NATIVE_ARGUMENT(Array, message, arguments->NativeArgAt(0));
119 if (FLAG_support_service) { 119 if (FLAG_support_service) {
120 Service::HandleObjectRootMessage(message); 120 Service::HandleObjectRootMessage(message);
121 } 121 }
122 return Object::null(); 122 return Object::null();
123 } 123 }
124 124
125 125
126 DEFINE_NATIVE_ENTRY(VMService_OnStart, 0) { 126 DEFINE_NATIVE_ENTRY(VMService_OnStart, 0) {
127 #ifndef PRODUCT
128 if (!FLAG_support_service) {
129 return Object::null();
130 }
127 if (FLAG_trace_service) { 131 if (FLAG_trace_service) {
128 OS::Print("vm-service: Booting dart:vmservice library.\n"); 132 OS::Print("vm-service: Booting dart:vmservice library.\n");
129 } 133 }
130 // Boot the dart:vmservice library. 134 // Boot the dart:vmservice library.
131 ServiceIsolate::BootVmServiceLibrary(); 135 ServiceIsolate::BootVmServiceLibrary();
132 if (!FLAG_support_service) {
133 return Object::null();
134 }
135 #ifndef PRODUCT
136 // Register running isolates with service. 136 // Register running isolates with service.
137 RegisterRunningIsolatesVisitor register_isolates(thread); 137 RegisterRunningIsolatesVisitor register_isolates(thread);
138 if (FLAG_trace_service) { 138 if (FLAG_trace_service) {
139 OS::Print("vm-service: Registering running isolates.\n"); 139 OS::Print("vm-service: Registering running isolates.\n");
140 } 140 }
141 Isolate::VisitIsolates(&register_isolates); 141 Isolate::VisitIsolates(&register_isolates);
142 #endif 142 #endif
143 return Object::null(); 143 return Object::null();
144 } 144 }
145 145
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 ServiceEvent spawn_event(NULL, ServiceEvent::kIsolateSpawn); 465 ServiceEvent spawn_event(NULL, ServiceEvent::kIsolateSpawn);
466 spawn_event.set_spawn_token(&token); 466 spawn_event.set_spawn_token(&token);
467 spawn_event.set_spawn_error(&String::Cast(result)); 467 spawn_event.set_spawn_error(&String::Cast(result));
468 Service::HandleEvent(&spawn_event); 468 Service::HandleEvent(&spawn_event);
469 } 469 }
470 #endif // PRODUCT 470 #endif // PRODUCT
471 return Object::null(); 471 return Object::null();
472 } 472 }
473 473
474 } // namespace dart 474 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/include/dart_api.h ('k') | runtime/observatory/tests/service/service.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698