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

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: Address comments 2 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
« no previous file with comments | « test/codegen/expect/8invalid-chars.in+file_name.js ('k') | test/codegen/expect/DeltaBlue.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 dart.library('BenchmarkBase', null, /* Imports */[ 1 dart_library.library('BenchmarkBase', null, /* Imports */[
2 "dart_runtime/dart",
2 'dart/core' 3 'dart/core'
3 ], /* Lazy imports */[ 4 ], /* Lazy imports */[
4 ], function(exports, core) { 5 ], function(exports, dart, core) {
5 'use strict'; 6 'use strict';
7 let dartx = dart.dartx;
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]}`;
15 } 17 }
(...skipping 68 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
« no previous file with comments | « test/codegen/expect/8invalid-chars.in+file_name.js ('k') | test/codegen/expect/DeltaBlue.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698