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

Unified Diff: test/codegen/expect/BenchmarkBase/BenchmarkBase.js

Issue 949383003: use js_ast instead of strings to generate JS (Closed) Base URL: git@github.com:dart-lang/dart-dev-compiler.git@master
Patch Set: add redirecting ctor test Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/codegen/constructors.dart ('k') | test/codegen/expect/DeltaBlue/DeltaBlue.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/BenchmarkBase/BenchmarkBase.js
diff --git a/test/codegen/expect/BenchmarkBase/BenchmarkBase.js b/test/codegen/expect/BenchmarkBase/BenchmarkBase.js
index 6f55bbd72a2a565eb7789d3aad25f16e78a306d7..462a7fc35ad8a7d421b8c648abb80a309d809b70 100644
--- a/test/codegen/expect/BenchmarkBase/BenchmarkBase.js
+++ b/test/codegen/expect/BenchmarkBase/BenchmarkBase.js
@@ -1,5 +1,5 @@
var BenchmarkBase;
-(function (BenchmarkBase) {
+(function(BenchmarkBase) {
'use strict';
class Expect extends dart.Object {
static equals(expected, actual) {
@@ -19,13 +19,11 @@ var BenchmarkBase;
throw message;
}
}
-
class BenchmarkBase extends dart.Object {
BenchmarkBase(name) {
this.name = name;
}
- run() {
- }
+ run() {}
warmup() {
this.run();
}
@@ -34,10 +32,8 @@ var BenchmarkBase;
this.run();
}
}
- setup() {
- }
- teardown() {
- }
+ setup() {}
+ teardown() {}
static measureFor(f, timeMinimum) {
let time = 0;
let iter = 0;
@@ -67,7 +63,6 @@ var BenchmarkBase;
core.print(`${this.name}(RunTime): ${score} us.`);
}
}
-
// Exports:
BenchmarkBase.Expect = Expect;
BenchmarkBase.BenchmarkBase = BenchmarkBase;
« no previous file with comments | « test/codegen/constructors.dart ('k') | test/codegen/expect/DeltaBlue/DeltaBlue.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698