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

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

Issue 1054393003: Compress deopt instructions in memory using variable length encoding. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fix other architectures Created 5 years, 8 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
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 "platform/globals.h" 5 #include "platform/globals.h"
6 6
7 #include "include/dart_debugger_api.h" 7 #include "include/dart_debugger_api.h"
8 #include "vm/dart_api_impl.h" 8 #include "vm/dart_api_impl.h"
9 #include "vm/dart_entry.h" 9 #include "vm/dart_entry.h"
10 #include "vm/debugger.h" 10 #include "vm/debugger.h"
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 283
284 // bool 284 // bool
285 service_msg = Eval(lib, "[0, port, 'getObject', " 285 service_msg = Eval(lib, "[0, port, 'getObject', "
286 "['objectId'], ['objects/bool-true']]"); 286 "['objectId'], ['objects/bool-true']]");
287 Service::HandleIsolateMessage(isolate, service_msg); 287 Service::HandleIsolateMessage(isolate, service_msg);
288 handler.HandleNextMessage(); 288 handler.HandleNextMessage();
289 handler.filterMsg("_vmName"); 289 handler.filterMsg("_vmName");
290 handler.filterMsg("size"); 290 handler.filterMsg("size");
291 EXPECT_STREQ( 291 EXPECT_STREQ(
292 "{\"type\":\"bool\"," 292 "{\"type\":\"bool\","
293 "\"class\":{\"type\":\"@Class\",\"id\":\"classes\\/46\"," 293 "\"class\":{\"type\":\"@Class\",\"id\":\"classes\\/45\","
294 "\"name\":\"bool\"}," 294 "\"name\":\"bool\"},"
295 "\"fields\":[],\"id\":\"objects\\/bool-true\"," 295 "\"fields\":[],\"id\":\"objects\\/bool-true\","
296 "\"valueAsString\":\"true\"}", 296 "\"valueAsString\":\"true\"}",
297 handler.msg()); 297 handler.msg());
298 298
299 // int 299 // int
300 service_msg = Eval(lib, "[0, port, 'getObject', " 300 service_msg = Eval(lib, "[0, port, 'getObject', "
301 "['objectId'], ['objects/int-123']]"); 301 "['objectId'], ['objects/int-123']]");
302 Service::HandleIsolateMessage(isolate, service_msg); 302 Service::HandleIsolateMessage(isolate, service_msg);
303 handler.HandleNextMessage(); 303 handler.HandleNextMessage();
304 handler.filterMsg("_vmName"); 304 handler.filterMsg("_vmName");
305 EXPECT_STREQ( 305 EXPECT_STREQ(
306 "{\"type\":\"int\",\"_vmType\":\"Smi\"," 306 "{\"type\":\"int\",\"_vmType\":\"Smi\","
307 "\"class\":{\"type\":\"@Class\",\"id\":\"classes\\/42\"," 307 "\"class\":{\"type\":\"@Class\",\"id\":\"classes\\/41\","
308 "\"name\":\"_Smi\",}," 308 "\"name\":\"_Smi\",},"
309 "\"fields\":[]," 309 "\"fields\":[],"
310 "\"id\":\"objects\\/int-123\"," 310 "\"id\":\"objects\\/int-123\","
311 "\"valueAsString\":\"123\"}", 311 "\"valueAsString\":\"123\"}",
312 handler.msg()); 312 handler.msg());
313 313
314 // object id ring / valid 314 // object id ring / valid
315 service_msg = Eval(lib, "[0, port, 'getObject', " 315 service_msg = Eval(lib, "[0, port, 'getObject', "
316 "['objectId'], ['objects/$validId']]"); 316 "['objectId'], ['objects/$validId']]");
317 Service::HandleIsolateMessage(isolate, service_msg); 317 Service::HandleIsolateMessage(isolate, service_msg);
(...skipping 1154 matching lines...) Expand 10 before | Expand all | Expand 10 after
1472 Eval(lib, "[0, port, 'getCpuProfile', ['tags'], ['Bogus']]"); 1472 Eval(lib, "[0, port, 'getCpuProfile', ['tags'], ['Bogus']]");
1473 Service::HandleIsolateMessage(isolate, service_msg); 1473 Service::HandleIsolateMessage(isolate, service_msg);
1474 handler.HandleNextMessage(); 1474 handler.HandleNextMessage();
1475 // Expect error. 1475 // Expect error.
1476 EXPECT_SUBSTRING("\"type\":\"Error\"", handler.msg()); 1476 EXPECT_SUBSTRING("\"type\":\"Error\"", handler.msg());
1477 } 1477 }
1478 1478
1479 #endif // !defined(TARGET_ARCH_ARM64) 1479 #endif // !defined(TARGET_ARCH_ARM64)
1480 1480
1481 } // namespace dart 1481 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698