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

Side by Side Diff: test/codegen_expected/BenchmarkBase.js

Issue 2249233002: fix #626, add AMD module format and make it default (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: fix tests and other changes Created 4 years, 4 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.library('BenchmarkBase', null, /* Imports */[ 1 define(['dart_sdk'], function(dart_sdk) {
2 'dart_sdk'
3 ], function load__BenchmarkBase(exports, dart_sdk) {
4 'use strict'; 2 'use strict';
5 const core = dart_sdk.core; 3 const core = dart_sdk.core;
6 const dart = dart_sdk.dart; 4 const dart = dart_sdk.dart;
7 const dartx = dart_sdk.dartx; 5 const dartx = dart_sdk.dartx;
8 const BenchmarkBase$ = Object.create(null); 6 const BenchmarkBase$ = Object.create(null);
9 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))(); 7 let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionT ype(dart.dynamic, [])))();
10 BenchmarkBase$.Expect = class Expect extends core.Object { 8 BenchmarkBase$.Expect = class Expect extends core.Object {
11 static equals(expected, actual) { 9 static equals(expected, actual) {
12 if (!dart.equals(expected, actual)) { 10 if (!dart.equals(expected, actual)) {
13 dart.throw(dart.str`Values not equal: ${expected} vs ${actual}`); 11 dart.throw(dart.str`Values not equal: ${expected} vs ${actual}`);
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 exercise: dart.definiteFunctionType(dart.void, []), 83 exercise: dart.definiteFunctionType(dart.void, []),
86 setup: dart.definiteFunctionType(dart.void, []), 84 setup: dart.definiteFunctionType(dart.void, []),
87 teardown: dart.definiteFunctionType(dart.void, []), 85 teardown: dart.definiteFunctionType(dart.void, []),
88 measure: dart.definiteFunctionType(core.double, []), 86 measure: dart.definiteFunctionType(core.double, []),
89 report: dart.definiteFunctionType(dart.void, []) 87 report: dart.definiteFunctionType(dart.void, [])
90 }), 88 }),
91 statics: () => ({measureFor: dart.definiteFunctionType(core.double, [core.Fu nction, core.int])}), 89 statics: () => ({measureFor: dart.definiteFunctionType(core.double, [core.Fu nction, core.int])}),
92 names: ['measureFor'] 90 names: ['measureFor']
93 }); 91 });
94 // Exports: 92 // Exports:
95 exports.BenchmarkBase = BenchmarkBase$; 93 return {
94 BenchmarkBase: BenchmarkBase$
95 };
96 }); 96 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698