OLD | NEW |
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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 | 109 |
110 DEFINE_NATIVE_ENTRY(VMService_SendRootServiceMessage, 1) { | 110 DEFINE_NATIVE_ENTRY(VMService_SendRootServiceMessage, 1) { |
111 GET_NON_NULL_NATIVE_ARGUMENT(Array, message, arguments->NativeArgAt(0)); | 111 GET_NON_NULL_NATIVE_ARGUMENT(Array, message, arguments->NativeArgAt(0)); |
112 if (FLAG_support_service) { | 112 if (FLAG_support_service) { |
113 Service::HandleRootMessage(message); | 113 Service::HandleRootMessage(message); |
114 } | 114 } |
115 return Object::null(); | 115 return Object::null(); |
116 } | 116 } |
117 | 117 |
118 | 118 |
| 119 DEFINE_NATIVE_ENTRY(VMService_SendObjectRootServiceMessage, 1) { |
| 120 GET_NON_NULL_NATIVE_ARGUMENT(Array, message, arguments->NativeArgAt(0)); |
| 121 if (FLAG_support_service) { |
| 122 Service::HandleObjectRootMessage(message); |
| 123 } |
| 124 return Object::null(); |
| 125 } |
| 126 |
| 127 |
119 DEFINE_NATIVE_ENTRY(VMService_OnStart, 0) { | 128 DEFINE_NATIVE_ENTRY(VMService_OnStart, 0) { |
120 if (FLAG_trace_service) { | 129 if (FLAG_trace_service) { |
121 OS::Print("vm-service: Booting dart:vmservice library.\n"); | 130 OS::Print("vm-service: Booting dart:vmservice library.\n"); |
122 } | 131 } |
123 // Boot the dart:vmservice library. | 132 // Boot the dart:vmservice library. |
124 ServiceIsolate::BootVmServiceLibrary(); | 133 ServiceIsolate::BootVmServiceLibrary(); |
125 if (!FLAG_support_service) { | 134 if (!FLAG_support_service) { |
126 return Object::null(); | 135 return Object::null(); |
127 } | 136 } |
128 #ifndef PRODUCT | 137 #ifndef PRODUCT |
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
435 idx += 2; | 444 idx += 2; |
436 } | 445 } |
437 | 446 |
438 return result_list.raw(); | 447 return result_list.raw(); |
439 #else | 448 #else |
440 return Object::null(); | 449 return Object::null(); |
441 #endif | 450 #endif |
442 } | 451 } |
443 | 452 |
444 } // namespace dart | 453 } // namespace dart |
OLD | NEW |