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/service_event.h" | 5 #include "vm/service_event.h" |
6 | 6 |
7 #include "vm/message_handler.h" | 7 #include "vm/message_handler.h" |
8 | 8 |
9 namespace dart { | 9 namespace dart { |
10 | 10 |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
217 JSONObject jsFrame(&jsobj, "topFrame"); | 217 JSONObject jsFrame(&jsobj, "topFrame"); |
218 top_frame()->PrintToJSONObject(&jsFrame); | 218 top_frame()->PrintToJSONObject(&jsFrame); |
219 intptr_t index = 0; // Avoid ambiguity in call to AddProperty. | 219 intptr_t index = 0; // Avoid ambiguity in call to AddProperty. |
220 jsFrame.AddProperty("index", index); | 220 jsFrame.AddProperty("index", index); |
221 } | 221 } |
222 if (exception() != NULL) { | 222 if (exception() != NULL) { |
223 jsobj.AddProperty("exception", *(exception())); | 223 jsobj.AddProperty("exception", *(exception())); |
224 } | 224 } |
225 if (async_continuation() != NULL && !async_continuation()->IsNull()) { | 225 if (async_continuation() != NULL && !async_continuation()->IsNull()) { |
226 jsobj.AddProperty("_asyncContinuation", *(async_continuation())); | 226 jsobj.AddProperty("_asyncContinuation", *(async_continuation())); |
227 jsobj.AddProperty("_atAsyncJump", at_async_jump()); | 227 jsobj.AddProperty("_atAsyncJump", at_async_jump()); |
rmacnak
2016/02/16 21:21:59
Don't need _atAsyncJump then.
Cutch
2016/02/17 18:24:21
Done.
| |
228 jsobj.AddProperty("atAwait", at_async_jump()); | |
rmacnak
2016/02/16 21:21:59
It's await or yield or yield*.
Cutch
2016/02/17 18:24:21
bit on pause event:
atAsyncContinuation
bit on br
| |
228 } | 229 } |
229 if (inspectee() != NULL) { | 230 if (inspectee() != NULL) { |
230 jsobj.AddProperty("inspectee", *(inspectee())); | 231 jsobj.AddProperty("inspectee", *(inspectee())); |
231 } | 232 } |
232 if (gc_stats() != NULL) { | 233 if (gc_stats() != NULL) { |
233 jsobj.AddProperty("reason", Heap::GCReasonToString(gc_stats()->reason_)); | 234 jsobj.AddProperty("reason", Heap::GCReasonToString(gc_stats()->reason_)); |
234 isolate()->heap()->PrintToJSONObject(Heap::kNew, &jsobj); | 235 isolate()->heap()->PrintToJSONObject(Heap::kNew, &jsobj); |
235 isolate()->heap()->PrintToJSONObject(Heap::kOld, &jsobj); | 236 isolate()->heap()->PrintToJSONObject(Heap::kOld, &jsobj); |
236 } | 237 } |
237 if (bytes() != NULL) { | 238 if (bytes() != NULL) { |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
269 } else { | 270 } else { |
270 jsobj->AddProperty("isolate", isolate()); | 271 jsobj->AddProperty("isolate", isolate()); |
271 } | 272 } |
272 ASSERT(timestamp_ != -1); | 273 ASSERT(timestamp_ != -1); |
273 jsobj->AddPropertyTimeMillis("timestamp", timestamp_); | 274 jsobj->AddPropertyTimeMillis("timestamp", timestamp_); |
274 } | 275 } |
275 | 276 |
276 #endif // !PRODUCT | 277 #endif // !PRODUCT |
277 | 278 |
278 } // namespace dart | 279 } // namespace dart |
OLD | NEW |