Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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.h" | 5 #include "vm/service.h" |
| 6 | 6 |
| 7 #include "include/dart_api.h" | 7 #include "include/dart_api.h" |
| 8 #include "include/dart_native_api.h" | 8 #include "include/dart_native_api.h" |
| 9 #include "platform/globals.h" | 9 #include "platform/globals.h" |
| 10 | 10 |
| (...skipping 3574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3585 // Handle non-heap objects. | 3585 // Handle non-heap objects. |
| 3586 Breakpoint* bpt = LookupBreakpoint(thread->isolate(), id, &lookup_result); | 3586 Breakpoint* bpt = LookupBreakpoint(thread->isolate(), id, &lookup_result); |
| 3587 if (bpt != NULL) { | 3587 if (bpt != NULL) { |
| 3588 bpt->PrintJSON(js); | 3588 bpt->PrintJSON(js); |
| 3589 return true; | 3589 return true; |
| 3590 } else if (lookup_result == ObjectIdRing::kCollected) { | 3590 } else if (lookup_result == ObjectIdRing::kCollected) { |
| 3591 PrintSentinel(js, kCollectedSentinel); | 3591 PrintSentinel(js, kCollectedSentinel); |
| 3592 return true; | 3592 return true; |
| 3593 } | 3593 } |
| 3594 | 3594 |
| 3595 if (strcmp(id, "object_store") == 0) { | |
| 3596 JSONObject jsobj(js); | |
|
Cutch
2016/05/24 14:34:40
Could we use stable ids for objects in the object
rmacnak
2016/05/24 16:31:38
Not all of them. Many of the cache fields of the o
| |
| 3597 thread->isolate()->object_store()->PrintToJSONObject(&jsobj, false); | |
| 3598 return true; | |
| 3599 } | |
| 3600 | |
| 3595 PrintInvalidParamError(js, "objectId"); | 3601 PrintInvalidParamError(js, "objectId"); |
| 3596 return true; | 3602 return true; |
| 3597 } | 3603 } |
| 3598 | 3604 |
| 3599 | 3605 |
| 3600 static const MethodParameter* get_class_list_params[] = { | 3606 static const MethodParameter* get_class_list_params[] = { |
| 3601 RUNNABLE_ISOLATE_PARAMETER, | 3607 RUNNABLE_ISOLATE_PARAMETER, |
| 3602 NULL, | 3608 NULL, |
| 3603 }; | 3609 }; |
| 3604 | 3610 |
| (...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4042 if (strcmp(method_name, method.name) == 0) { | 4048 if (strcmp(method_name, method.name) == 0) { |
| 4043 return &method; | 4049 return &method; |
| 4044 } | 4050 } |
| 4045 } | 4051 } |
| 4046 return NULL; | 4052 return NULL; |
| 4047 } | 4053 } |
| 4048 | 4054 |
| 4049 #endif // !PRODUCT | 4055 #endif // !PRODUCT |
| 4050 | 4056 |
| 4051 } // namespace dart | 4057 } // namespace dart |
| OLD | NEW |