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

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

Issue 1123813002: Move symbol table from per isolate snapshot to vm isolate snapshot, this reduces the per isolate in… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/raw_object.h ('k') | runtime/vm/service_test.cc » ('j') | 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 1254 matching lines...) Expand 10 before | Expand all | Expand 10 after
1265 uword message_id = 0; 1265 uword message_id = 0;
1266 if (GetUnsignedIntegerId(rest, &message_id, 16)) { 1266 if (GetUnsignedIntegerId(rest, &message_id, 16)) {
1267 MessageHandler::AcquiredQueues aq; 1267 MessageHandler::AcquiredQueues aq;
1268 isolate->message_handler()->AcquireQueues(&aq); 1268 isolate->message_handler()->AcquireQueues(&aq);
1269 Message* message = aq.queue()->FindMessageById(message_id); 1269 Message* message = aq.queue()->FindMessageById(message_id);
1270 if (message == NULL) { 1270 if (message == NULL) {
1271 printf("Could not find message %" Px "\n", message_id); 1271 printf("Could not find message %" Px "\n", message_id);
1272 // Not found. 1272 // Not found.
1273 return false; 1273 return false;
1274 } 1274 }
1275 SnapshotReader reader(message->data(), 1275 MessageSnapshotReader reader(message->data(),
1276 message->len(), 1276 message->len(),
1277 Snapshot::kMessage, 1277 isolate,
1278 isolate, 1278 isolate->current_zone());
1279 isolate->current_zone());
1280 const Object& msg_obj = Object::Handle(reader.ReadObject()); 1279 const Object& msg_obj = Object::Handle(reader.ReadObject());
1281 msg_obj.PrintJSON(js); 1280 msg_obj.PrintJSON(js);
1282 return true; 1281 return true;
1283 } else { 1282 } else {
1284 printf("Could not get id from %s\n", rest); 1283 printf("Could not get id from %s\n", rest);
1285 } 1284 }
1286 } 1285 }
1287 return false; 1286 return false;
1288 } 1287 }
1289 1288
(...skipping 1408 matching lines...) Expand 10 before | Expand all | Expand 10 after
2698 ServiceMethodDescriptor& method = service_methods_[i]; 2697 ServiceMethodDescriptor& method = service_methods_[i];
2699 if (strcmp(method_name, method.name) == 0) { 2698 if (strcmp(method_name, method.name) == 0) {
2700 return &method; 2699 return &method;
2701 } 2700 }
2702 } 2701 }
2703 return NULL; 2702 return NULL;
2704 } 2703 }
2705 2704
2706 2705
2707 } // namespace dart 2706 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/raw_object.h ('k') | runtime/vm/service_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698