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

Side by Side Diff: tests/compiler/dart2js/map_tracer_const_test.dart

Issue 2955353002: Split inference type-info accessors into members, parameters and local functions (Closed)
Patch Set: Cleanup Created 3 years, 5 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 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'package:expect/expect.dart'; 5 import 'package:expect/expect.dart';
6 import "package:async_helper/async_helper.dart"; 6 import "package:async_helper/async_helper.dart";
7 7
8 import 'compiler_helper.dart'; 8 import 'compiler_helper.dart';
9 import 'type_mask_test_helper.dart'; 9 import 'type_mask_test_helper.dart';
10 10
(...skipping 19 matching lines...) Expand all
30 30
31 void main() { 31 void main() {
32 Uri uri = new Uri(scheme: 'source'); 32 Uri uri = new Uri(scheme: 'source');
33 var compiler = compilerFor(TEST, uri, expectedErrors: 0, expectedWarnings: 0); 33 var compiler = compilerFor(TEST, uri, expectedErrors: 0, expectedWarnings: 0);
34 compiler.stopAfterTypeInference = true; 34 compiler.stopAfterTypeInference = true;
35 asyncTest(() => compiler.run(uri).then((_) { 35 asyncTest(() => compiler.run(uri).then((_) {
36 var typesInferrer = compiler.globalInference.typesInferrerInternal; 36 var typesInferrer = compiler.globalInference.typesInferrerInternal;
37 var closedWorld = typesInferrer.closedWorld; 37 var closedWorld = typesInferrer.closedWorld;
38 var commonMasks = closedWorld.commonMasks; 38 var commonMasks = closedWorld.commonMasks;
39 var element = findElement(compiler, 'closure'); 39 var element = findElement(compiler, 'closure');
40 var mask = typesInferrer.getReturnTypeOfElement(element); 40 var mask = typesInferrer.getReturnTypeOfMember(element);
41 Expect.equals(commonMasks.numType, simplify(mask, closedWorld)); 41 Expect.equals(commonMasks.numType, simplify(mask, closedWorld));
42 })); 42 }));
43 } 43 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698