Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(64)

Side by Side Diff: runtime/vm/service.cc

Issue 779103003: Fix bugs in heapmap, binary payloads, 'address' request. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/bin/vmservice/observatory/test/graph_test.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « runtime/bin/vmservice/observatory/test/graph_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698