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

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

Issue 1250923003: Fix decoration of ObjectPool references to stubs broken by their movement to VM isolate. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 months 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
« no previous file with comments | « no previous file | 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 "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 2576 matching lines...) Expand 10 before | Expand all | Expand 10 after
2587 PrintInvalidParamError(js, "address"); 2587 PrintInvalidParamError(js, "address");
2588 return true; 2588 return true;
2589 } 2589 }
2590 bool ref = js->HasParam("ref") && js->ParamIs("ref", "true"); 2590 bool ref = js->HasParam("ref") && js->ParamIs("ref", "true");
2591 Object& object = Object::Handle(isolate); 2591 Object& object = Object::Handle(isolate);
2592 { 2592 {
2593 NoSafepointScope no_safepoint; 2593 NoSafepointScope no_safepoint;
2594 ContainsAddressVisitor visitor(isolate, addr); 2594 ContainsAddressVisitor visitor(isolate, addr);
2595 object = isolate->heap()->FindObject(&visitor); 2595 object = isolate->heap()->FindObject(&visitor);
2596 } 2596 }
2597 if (object.IsNull()) { 2597
2598 PrintSentinel(js, kFreeSentinel); 2598 if (!object.IsNull()) {
2599 } else {
2600 object.PrintJSON(js, ref); 2599 object.PrintJSON(js, ref);
2600 return true;
2601 } 2601 }
2602
2603 {
2604 NoSafepointScope no_safepoint;
2605 ContainsAddressVisitor visitor(Dart::vm_isolate(), addr);
2606 object = Dart::vm_isolate()->heap()->FindObject(&visitor);
Cutch 2015/07/23 23:59:25 Maybe refactor the FindObject calls into a helper:
rmacnak 2015/07/24 00:17:45 Done.
2607 }
2608
2609 if (!object.IsNull()) {
2610 object.PrintJSON(js, ref);
2611 return true;
2612 }
2613
2614 PrintSentinel(js, kFreeSentinel);
2602 return true; 2615 return true;
2603 } 2616 }
2604 2617
2605 2618
2606 static const MethodParameter* get_ports_params[] = { 2619 static const MethodParameter* get_ports_params[] = {
2607 ISOLATE_PARAMETER, 2620 ISOLATE_PARAMETER,
2608 NULL, 2621 NULL,
2609 }; 2622 };
2610 2623
2611 2624
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
3048 ServiceMethodDescriptor& method = service_methods_[i]; 3061 ServiceMethodDescriptor& method = service_methods_[i];
3049 if (strcmp(method_name, method.name) == 0) { 3062 if (strcmp(method_name, method.name) == 0) {
3050 return &method; 3063 return &method;
3051 } 3064 }
3052 } 3065 }
3053 return NULL; 3066 return NULL;
3054 } 3067 }
3055 3068
3056 3069
3057 } // namespace dart 3070 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698