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

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

Issue 328923002: Lazy loading of deferred libraries (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 6 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/lib/object.cc ('k') | runtime/vm/bootstrap.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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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/benchmark_test.h" 5 #include "vm/benchmark_test.h"
6 6
7 #include "bin/builtin.h" 7 #include "bin/builtin.h"
8 #include "bin/file.h" 8 #include "bin/file.h"
9 9
10 #include "platform/assert.h" 10 #include "platform/assert.h"
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 const char* kScriptChars = 426 const char* kScriptChars =
427 "import 'dart:async';\n" 427 "import 'dart:async';\n"
428 "import 'dart:core';\n" 428 "import 'dart:core';\n"
429 "import 'dart:collection';\n" 429 "import 'dart:collection';\n"
430 "import 'dart:_internal';\n" 430 "import 'dart:_internal';\n"
431 "import 'dart:convert';\n" 431 "import 'dart:convert';\n"
432 "import 'dart:math';\n" 432 "import 'dart:math';\n"
433 "import 'dart:isolate';\n" 433 "import 'dart:isolate';\n"
434 "import 'dart:mirrors';\n" 434 "import 'dart:mirrors';\n"
435 "import 'dart:typed_data';\n" 435 "import 'dart:typed_data';\n"
436 "import 'dart:builtin';\n" 436 "import 'dart:_builtin';\n"
437 "import 'dart:io';\n" 437 "import 'dart:io';\n"
438 "\n"; 438 "\n";
439 439
440 // Start an Isolate, load a script and create a full snapshot. 440 // Start an Isolate, load a script and create a full snapshot.
441 uint8_t* buffer; 441 uint8_t* buffer;
442 // Need to load the script into the dart: core library due to 442 // Need to load the script into the dart: core library due to
443 // the import of dart:_internal. 443 // the import of dart:_internal.
444 TestCase::LoadCoreTestScript(kScriptChars, NULL); 444 TestCase::LoadCoreTestScript(kScriptChars, NULL);
445 Api::CheckIsolateState(Isolate::Current()); 445 Api::CheckIsolateState(Isolate::Current());
446 446
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
561 SnapshotReader reader(buffer, buffer_len, Snapshot::kMessage, isolate); 561 SnapshotReader reader(buffer, buffer_len, Snapshot::kMessage, isolate);
562 reader.ReadObject(); 562 reader.ReadObject();
563 free(buffer); 563 free(buffer);
564 } 564 }
565 timer.Stop(); 565 timer.Stop();
566 int64_t elapsed_time = timer.TotalElapsedTime(); 566 int64_t elapsed_time = timer.TotalElapsedTime();
567 benchmark->set_score(elapsed_time); 567 benchmark->set_score(elapsed_time);
568 } 568 }
569 569
570 } // namespace dart 570 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/lib/object.cc ('k') | runtime/vm/bootstrap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698