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

Unified Diff: pkg/dev_compiler/test/codegen_expected/BenchmarkBase.js

Issue 2869733006: Revert "Revert "fix #27256, track type bounds for generic functions"" (Closed)
Patch Set: Created 3 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 side-by-side diff with in-line comments
Download patch
Index: pkg/dev_compiler/test/codegen_expected/BenchmarkBase.js
diff --git a/pkg/dev_compiler/test/codegen_expected/BenchmarkBase.js b/pkg/dev_compiler/test/codegen_expected/BenchmarkBase.js
index cca6c6a3ad3a20151a307d72732a8a6ec60606b3..8d2a44d562145742e6e18e9d814326a099f43feb 100644
--- a/pkg/dev_compiler/test/codegen_expected/BenchmarkBase.js
+++ b/pkg/dev_compiler/test/codegen_expected/BenchmarkBase.js
@@ -4,7 +4,7 @@ define(['dart_sdk'], function(dart_sdk) {
const dart = dart_sdk.dart;
const dartx = dart_sdk.dartx;
const BenchmarkBase$ = Object.create(null);
- let VoidToNull = () => (VoidToNull = dart.constFn(dart.definiteFunctionType(core.Null, [])))();
+ let VoidToNull = () => (VoidToNull = dart.constFn(dart.fnType(core.Null, [])))();
BenchmarkBase$.Expect = class Expect extends core.Object {
static equals(expected, actual) {
if (!dart.equals(expected, actual)) {
@@ -24,10 +24,10 @@ define(['dart_sdk'], function(dart_sdk) {
}
};
dart.setSignature(BenchmarkBase$.Expect, {
- methods: () => ({fail: dart.definiteFunctionType(dart.dynamic, [dart.dynamic])}),
+ methods: () => ({fail: dart.fnType(dart.dynamic, [dart.dynamic])}),
statics: () => ({
- equals: dart.definiteFunctionType(dart.void, [dart.dynamic, dart.dynamic]),
- listEquals: dart.definiteFunctionType(dart.void, [core.List, core.List])
+ equals: dart.fnType(dart.void, [dart.dynamic, dart.dynamic]),
+ listEquals: dart.fnType(dart.void, [core.List, core.List])
}),
names: ['equals', 'listEquals']
});
@@ -85,15 +85,15 @@ define(['dart_sdk'], function(dart_sdk) {
dart.setSignature(BenchmarkBase$.BenchmarkBase, {
fields: () => ({name: dart.finalFieldType(core.String)}),
methods: () => ({
- run: dart.definiteFunctionType(dart.void, []),
- warmup: dart.definiteFunctionType(dart.void, []),
- exercise: dart.definiteFunctionType(dart.void, []),
- setup: dart.definiteFunctionType(dart.void, []),
- teardown: dart.definiteFunctionType(dart.void, []),
- measure: dart.definiteFunctionType(core.double, []),
- report: dart.definiteFunctionType(dart.void, [])
+ run: dart.fnType(dart.void, []),
+ warmup: dart.fnType(dart.void, []),
+ exercise: dart.fnType(dart.void, []),
+ setup: dart.fnType(dart.void, []),
+ teardown: dart.fnType(dart.void, []),
+ measure: dart.fnType(core.double, []),
+ report: dart.fnType(dart.void, [])
}),
- statics: () => ({measureFor: dart.definiteFunctionType(core.double, [core.Function, core.int])}),
+ statics: () => ({measureFor: dart.fnType(core.double, [core.Function, core.int])}),
names: ['measureFor']
});
dart.trackLibraries("BenchmarkBase", {
« no previous file with comments | « pkg/dev_compiler/test/browser/runtime_tests.js ('k') | pkg/dev_compiler/test/codegen_expected/async_helper.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698