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

Unified Diff: tests/compiler/dart2js/concrete_type_inference_test.dart

Issue 12528008: Implement CHA through type mask and TypedSelector in the simple type inferrer. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 9 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 | « sdk/lib/_internal/compiler/implementation/world.dart ('k') | tests/compiler/dart2js/mock_compiler.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/concrete_type_inference_test.dart
===================================================================
--- tests/compiler/dart2js/concrete_type_inference_test.dart (revision 19670)
+++ tests/compiler/dart2js/concrete_type_inference_test.dart (working copy)
@@ -48,22 +48,28 @@
void testBasicTypes() {
checkPrintType('true', (compiler, type) {
- Expect.identical(compiler.boolClass, type.exactType.element);
+ var backend = compiler.backend;
+ Expect.identical(backend.boolImplementation, type.exactType.element);
});
checkPrintType('1.0', (compiler, type) {
- Expect.identical(compiler.doubleClass, type.exactType.element);
+ var backend = compiler.backend;
+ Expect.identical(backend.doubleImplementation, type.exactType.element);
});
checkPrintType('1', (compiler, type) {
- Expect.identical(compiler.intClass, type.exactType.element);
+ var backend = compiler.backend;
+ Expect.identical(backend.intImplementation, type.exactType.element);
});
checkPrintType('[]', (compiler, type) {
- Expect.identical(compiler.listClass, type.exactType.element);
+ var backend = compiler.backend;
+ Expect.identical(backend.listImplementation, type.exactType.element);
});
checkPrintType('null', (compiler, type) {
- Expect.identical(compiler.nullClass, type.exactType.element);
+ var backend = compiler.backend;
+ Expect.identical(backend.nullImplementation, type.exactType.element);
});
checkPrintType('"foo"', (compiler, type) {
- Expect.identical(compiler.stringClass, type.exactType.element);
+ var backend = compiler.backend;
+ Expect.identical(backend.stringImplementation, type.exactType.element);
});
}
@@ -79,7 +85,7 @@
var thirdParameter =
fiskElement.computeSignature(compiler).optionalParameters.tail.head;
Expect.identical(
- compiler.intClass,
+ compiler.backend.intImplementation,
compiler.typesTask.getGuaranteedTypeOfElement(firstParameter)
.exactType.element);
Expect.isNull(
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/world.dart ('k') | tests/compiler/dart2js/mock_compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698