| 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 "platform/globals.h" | 8 #include "platform/globals.h" |
| 9 | 9 |
| 10 #include "vm/compiler.h" | 10 #include "vm/compiler.h" |
| (...skipping 2312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2323 static const uword kExampleAddr = static_cast<uword>(kIntptrMax / 7); | 2323 static const uword kExampleAddr = static_cast<uword>(kIntptrMax / 7); |
| 2324 PrintError(js, "Must specify address: address/" Px ".", kExampleAddr); | 2324 PrintError(js, "Must specify address: address/" Px ".", kExampleAddr); |
| 2325 return true; | 2325 return true; |
| 2326 } | 2326 } |
| 2327 Object& object = Object::Handle(isolate); | 2327 Object& object = Object::Handle(isolate); |
| 2328 { | 2328 { |
| 2329 NoGCScope no_gc; | 2329 NoGCScope no_gc; |
| 2330 ContainsAddressVisitor visitor(isolate, addr); | 2330 ContainsAddressVisitor visitor(isolate, addr); |
| 2331 object = isolate->heap()->FindObject(&visitor); | 2331 object = isolate->heap()->FindObject(&visitor); |
| 2332 } | 2332 } |
| 2333 object.PrintJSON(js, true); | 2333 object.PrintJSON(js, false); |
| 2334 return true; | 2334 return true; |
| 2335 } | 2335 } |
| 2336 | 2336 |
| 2337 | 2337 |
| 2338 static bool HandleMalformedJson(Isolate* isolate, JSONStream* js) { | 2338 static bool HandleMalformedJson(Isolate* isolate, JSONStream* js) { |
| 2339 JSONObject jsobj(js); | 2339 JSONObject jsobj(js); |
| 2340 jsobj.AddProperty("a", "a"); | 2340 jsobj.AddProperty("a", "a"); |
| 2341 JSONObject jsobj1(js); | 2341 JSONObject jsobj1(js); |
| 2342 jsobj1.AddProperty("a", "a"); | 2342 jsobj1.AddProperty("a", "a"); |
| 2343 JSONObject jsobj2(js); | 2343 JSONObject jsobj2(js); |
| (...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2746 while (current != NULL) { | 2746 while (current != NULL) { |
| 2747 if (strcmp(name, current->name()) == 0) { | 2747 if (strcmp(name, current->name()) == 0) { |
| 2748 return current; | 2748 return current; |
| 2749 } | 2749 } |
| 2750 current = current->next(); | 2750 current = current->next(); |
| 2751 } | 2751 } |
| 2752 return NULL; | 2752 return NULL; |
| 2753 } | 2753 } |
| 2754 | 2754 |
| 2755 } // namespace dart | 2755 } // namespace dart |
| OLD | NEW |