| 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 | 6 |
| 7 #include "include/dart_api.h" | 7 #include "include/dart_api.h" |
| 8 | 8 |
| 9 #include "vm/debugger.h" | 9 #include "vm/debugger.h" |
| 10 #include "vm/exceptions.h" | 10 #include "vm/exceptions.h" |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 return when.raw(); | 30 return when.raw(); |
| 31 } | 31 } |
| 32 | 32 |
| 33 | 33 |
| 34 DEFINE_NATIVE_ENTRY(Developer_inspect, 1) { | 34 DEFINE_NATIVE_ENTRY(Developer_inspect, 1) { |
| 35 GET_NATIVE_ARGUMENT(Instance, inspectee, arguments->NativeArgAt(0)); | 35 GET_NATIVE_ARGUMENT(Instance, inspectee, arguments->NativeArgAt(0)); |
| 36 Service::SendInspectEvent(isolate, inspectee); | 36 Service::SendInspectEvent(isolate, inspectee); |
| 37 return inspectee.raw(); | 37 return inspectee.raw(); |
| 38 } | 38 } |
| 39 | 39 |
| 40 |
| 41 DEFINE_NATIVE_ENTRY(Developer_log, 8) { |
| 42 GET_NON_NULL_NATIVE_ARGUMENT(Integer, sequence, arguments->NativeArgAt(0)); |
| 43 GET_NON_NULL_NATIVE_ARGUMENT(Integer, timestamp, arguments->NativeArgAt(1)); |
| 44 GET_NON_NULL_NATIVE_ARGUMENT(Smi, level, arguments->NativeArgAt(2)); |
| 45 GET_NON_NULL_NATIVE_ARGUMENT(String, name, arguments->NativeArgAt(3)); |
| 46 GET_NON_NULL_NATIVE_ARGUMENT(String, message, arguments->NativeArgAt(4)); |
| 47 GET_NATIVE_ARGUMENT(Instance, dart_zone, arguments->NativeArgAt(5)); |
| 48 GET_NATIVE_ARGUMENT(Instance, error, arguments->NativeArgAt(6)); |
| 49 GET_NATIVE_ARGUMENT(Instance, stack_trace, arguments->NativeArgAt(7)); |
| 50 Service::SendLogEvent(isolate, |
| 51 sequence.AsInt64Value(), |
| 52 timestamp.AsInt64Value(), |
| 53 level.Value(), |
| 54 name, |
| 55 message, |
| 56 dart_zone, |
| 57 error, |
| 58 stack_trace); |
| 59 return Object::null(); |
| 60 } |
| 61 |
| 40 } // namespace dart | 62 } // namespace dart |
| OLD | NEW |