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

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

Issue 48133002: Remove deprecated dart:utf library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merged to head. Created 7 years, 1 month 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 | « no previous file | 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 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 const char* kScriptChars = 429 const char* kScriptChars =
430 "import 'dart:async';\n" 430 "import 'dart:async';\n"
431 "import 'dart:core';\n" 431 "import 'dart:core';\n"
432 "import 'dart:collection';\n" 432 "import 'dart:collection';\n"
433 "import 'dart:_collection-dev';\n" 433 "import 'dart:_collection-dev';\n"
434 "import 'dart:convert';\n" 434 "import 'dart:convert';\n"
435 "import 'dart:math';\n" 435 "import 'dart:math';\n"
436 "import 'dart:isolate';\n" 436 "import 'dart:isolate';\n"
437 "import 'dart:mirrors';\n" 437 "import 'dart:mirrors';\n"
438 "import 'dart:typed_data';\n" 438 "import 'dart:typed_data';\n"
439 "import 'dart:utf';\n"
440 "import 'dart:builtin';\n" 439 "import 'dart:builtin';\n"
441 "import 'dart:io';\n" 440 "import 'dart:io';\n"
442 "\n"; 441 "\n";
443 442
444 // Start an Isolate, load a script and create a full snapshot. 443 // Start an Isolate, load a script and create a full snapshot.
445 uint8_t* buffer; 444 uint8_t* buffer;
446 TestCase::LoadTestScript(kScriptChars, NULL); 445 TestCase::LoadTestScript(kScriptChars, NULL);
447 Api::CheckIsolateState(Isolate::Current()); 446 Api::CheckIsolateState(Isolate::Current());
448 447
449 // Write snapshot with object content. 448 // Write snapshot with object content.
(...skipping 17 matching lines...) Expand all
467 466
468 Timer timer(true, "currentMirrorSystem() benchmark"); 467 Timer timer(true, "currentMirrorSystem() benchmark");
469 timer.Start(); 468 timer.Start();
470 Dart_Invoke(lib, NewString("benchmark"), 0, NULL); 469 Dart_Invoke(lib, NewString("benchmark"), 0, NULL);
471 timer.Stop(); 470 timer.Stop();
472 int64_t elapsed_time = timer.TotalElapsedTime(); 471 int64_t elapsed_time = timer.TotalElapsedTime();
473 benchmark->set_score(elapsed_time); 472 benchmark->set_score(elapsed_time);
474 } 473 }
475 474
476 } // namespace dart 475 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/bootstrap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698