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

Side by Side Diff: test/codegen/expect/BenchmarkBase.js

Issue 1122133003: fixes #157, renaming local library identifiers if needed. (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: fix core.Symbol reference 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
OLDNEW
1 var BenchmarkBase; 1 var BenchmarkBase, core;
2 (function(exports) { 2 (function(exports, core) {
3 'use strict'; 3 'use strict';
4 class Expect extends core.Object { 4 class Expect extends core.Object {
5 static equals(expected, actual) { 5 static equals(expected, actual) {
6 if (!dart.equals(expected, actual)) { 6 if (!dart.equals(expected, actual)) {
7 throw `Values not equal: ${expected} vs ${actual}`; 7 throw `Values not equal: ${expected} vs ${actual}`;
8 } 8 }
9 } 9 }
10 static listEquals(expected, actual) { 10 static listEquals(expected, actual) {
11 if (expected[core.$length] != actual[core.$length]) { 11 if (expected[core.$length] != actual[core.$length]) {
12 throw `Lists have different lengths: ${expected[core.$length]} vs ${actu al[core.$length]}`; 12 throw `Lists have different lengths: ${expected[core.$length]} vs ${actu al[core.$length]}`;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 return result; 59 return result;
60 } 60 }
61 report() { 61 report() {
62 let score = this.measure(); 62 let score = this.measure();
63 core.print(`${this.name}(RunTime): ${score} us.`); 63 core.print(`${this.name}(RunTime): ${score} us.`);
64 } 64 }
65 } 65 }
66 // Exports: 66 // Exports:
67 exports.Expect = Expect; 67 exports.Expect = Expect;
68 exports.BenchmarkBase = BenchmarkBase; 68 exports.BenchmarkBase = BenchmarkBase;
69 })(BenchmarkBase || (BenchmarkBase = {})); 69 })(BenchmarkBase || (BenchmarkBase = {}), core);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698