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

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

Issue 1182653002: Refactor runtime into libraries, better type reps (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Add missing file Created 5 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
OLDNEW
1 dart.library('BenchmarkBase', null, /* Imports */[ 1 loader.library('BenchmarkBase', null, /* Imports */[
2 "dart/dart_runtime",
3 "dart/dartx",
2 'dart/core' 4 'dart/core'
3 ], /* Lazy imports */[ 5 ], /* Lazy imports */[
4 ], function(exports, core) { 6 ], function(exports, dart, dartx, core) {
5 'use strict'; 7 'use strict';
6 class Expect extends core.Object { 8 class Expect extends core.Object {
7 static equals(expected, actual) { 9 static equals(expected, actual) {
8 if (!dart.equals(expected, actual)) { 10 if (!dart.equals(expected, actual)) {
9 throw `Values not equal: ${expected} vs ${actual}`; 11 throw `Values not equal: ${expected} vs ${actual}`;
10 } 12 }
11 } 13 }
12 static listEquals(expected, actual) { 14 static listEquals(expected, actual) {
13 if (expected[dartx.length] != actual[dartx.length]) { 15 if (expected[dartx.length] != actual[dartx.length]) {
14 throw `Lists have different lengths: ${expected[dartx.length]} vs ${actu al[dartx.length]}`; 16 throw `Lists have different lengths: ${expected[dartx.length]} vs ${actu al[dartx.length]}`;
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 measure: [core.double, []], 86 measure: [core.double, []],
85 report: [dart.void, []] 87 report: [dart.void, []]
86 }), 88 }),
87 statics: () => ({measureFor: [core.double, [core.Function, core.int]]}), 89 statics: () => ({measureFor: [core.double, [core.Function, core.int]]}),
88 names: ['measureFor'] 90 names: ['measureFor']
89 }); 91 });
90 // Exports: 92 // Exports:
91 exports.Expect = Expect; 93 exports.Expect = Expect;
92 exports.BenchmarkBase = BenchmarkBase; 94 exports.BenchmarkBase = BenchmarkBase;
93 }); 95 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698