Index: runtime/lib/developer.cc |
diff --git a/runtime/lib/developer.cc b/runtime/lib/developer.cc |
index 786e5debdda834dd5cc95a660f0c760be61c647b..6b7a33d2e0df8c7b95c055fac4c3820200717766 100644 |
--- a/runtime/lib/developer.cc |
+++ b/runtime/lib/developer.cc |
@@ -37,4 +37,26 @@ DEFINE_NATIVE_ENTRY(Developer_inspect, 1) { |
return inspectee.raw(); |
} |
+ |
+DEFINE_NATIVE_ENTRY(Developer_log, 8) { |
+ GET_NON_NULL_NATIVE_ARGUMENT(Integer, sequence, arguments->NativeArgAt(0)); |
+ GET_NON_NULL_NATIVE_ARGUMENT(Integer, timestamp, arguments->NativeArgAt(1)); |
+ GET_NON_NULL_NATIVE_ARGUMENT(Smi, level, arguments->NativeArgAt(2)); |
+ GET_NON_NULL_NATIVE_ARGUMENT(String, name, arguments->NativeArgAt(3)); |
+ GET_NON_NULL_NATIVE_ARGUMENT(String, message, arguments->NativeArgAt(4)); |
+ GET_NATIVE_ARGUMENT(Instance, dart_zone, arguments->NativeArgAt(5)); |
+ GET_NATIVE_ARGUMENT(Instance, error, arguments->NativeArgAt(6)); |
+ GET_NATIVE_ARGUMENT(Instance, stack_trace, arguments->NativeArgAt(7)); |
+ Service::SendLogEvent(isolate, |
+ sequence.AsInt64Value(), |
+ timestamp.AsInt64Value(), |
+ level.Value(), |
+ name, |
+ message, |
+ dart_zone, |
+ error, |
+ stack_trace); |
+ return Object::null(); |
+} |
+ |
} // namespace dart |