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

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

Issue 1276353006: dart2js: Do not use JSDouble for native behavior return types. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Replace use of JS('double') Created 5 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
« no previous file with comments | « sdk/lib/_internal/js_runtime/lib/math_patch.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 'dart:async'; 5 import 'dart:async';
6 import "package:expect/expect.dart"; 6 import "package:expect/expect.dart";
7 import "package:async_helper/async_helper.dart"; 7 import "package:async_helper/async_helper.dart";
8 import 'package:compiler/src/types/types.dart'; 8 import 'package:compiler/src/types/types.dart';
9 import 'package:compiler/src/inferrer/concrete_types_inferrer.dart'; 9 import 'package:compiler/src/inferrer/concrete_types_inferrer.dart';
10 import 'package:compiler/src/universe/universe.dart' show Selector; 10 import 'package:compiler/src/universe/universe.dart' show Selector;
(...skipping 1436 matching lines...) Expand 10 before | Expand all | Expand 10 after
1447 result.checkNodeHasUnknownType('b'); 1447 result.checkNodeHasUnknownType('b');
1448 final expectedCType = [result.growableList]; 1448 final expectedCType = [result.growableList];
1449 result.checkNodeHasType('c', expectedCType); 1449 result.checkNodeHasType('c', expectedCType);
1450 result.checkNodeHasType('cNull', maybe(expectedCType)); 1450 result.checkNodeHasType('cNull', maybe(expectedCType));
1451 final expectedDType = [result.string]; 1451 final expectedDType = [result.string];
1452 result.checkNodeHasType('d', expectedDType); 1452 result.checkNodeHasType('d', expectedDType);
1453 result.checkNodeHasType('dNull', maybe(expectedDType)); 1453 result.checkNodeHasType('dNull', maybe(expectedDType));
1454 final expectedEType = [result.int]; 1454 final expectedEType = [result.int];
1455 result.checkNodeHasType('e', expectedEType); 1455 result.checkNodeHasType('e', expectedEType);
1456 result.checkNodeHasType('eNull', maybe(expectedEType)); 1456 result.checkNodeHasType('eNull', maybe(expectedEType));
1457 final expectedFType = [result.double]; 1457 final expectedFType = [result.num];
1458 result.checkNodeHasType('f', expectedFType); 1458 result.checkNodeHasType('f', expectedFType);
1459 result.checkNodeHasType('fNull', maybe(expectedFType)); 1459 result.checkNodeHasType('fNull', maybe(expectedFType));
1460 final expectedGType = [result.num]; 1460 final expectedGType = [result.num];
1461 result.checkNodeHasType('g', expectedGType); 1461 result.checkNodeHasType('g', expectedGType);
1462 result.checkNodeHasType('gNull', maybe(expectedGType)); 1462 result.checkNodeHasType('gNull', maybe(expectedGType));
1463 final expectedType = [result.bool]; 1463 final expectedType = [result.bool];
1464 result.checkNodeHasType('h', expectedType); 1464 result.checkNodeHasType('h', expectedType);
1465 result.checkNodeHasType('hNull', maybe(expectedType)); 1465 result.checkNodeHasType('hNull', maybe(expectedType));
1466 final expectedIType = [result.base('B'), 1466 final expectedIType = [result.base('B'),
1467 result.base('BB'), 1467 result.base('BB'),
(...skipping 677 matching lines...) Expand 10 before | Expand all | Expand 10 after
2145 testClosures10, 2145 testClosures10,
2146 testClosures11, 2146 testClosures11,
2147 testClosures12, 2147 testClosures12,
2148 testRefinement, 2148 testRefinement,
2149 testDefaultArguments, 2149 testDefaultArguments,
2150 testSuperConstructorCall, 2150 testSuperConstructorCall,
2151 testSuperConstructorCall2, 2151 testSuperConstructorCall2,
2152 testSuperConstructorCall3, 2152 testSuperConstructorCall3,
2153 ], (f) => f())); 2153 ], (f) => f()));
2154 } 2154 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/js_runtime/lib/math_patch.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698