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

Unified Diff: sdk/lib/_internal/compiler/implementation/ssa/types.dart

Issue 12389049: Fix --host-checked mode and add proper canBePrimitive method to HBoundedType. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove type. Created 7 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 | « no previous file | sdk/lib/_internal/compiler/implementation/types/type_mask.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/ssa/types.dart
diff --git a/sdk/lib/_internal/compiler/implementation/ssa/types.dart b/sdk/lib/_internal/compiler/implementation/ssa/types.dart
index d4b2594859ec5dfcf9435c6e885e34f76b872de2..46e11eb8e6e3dce0d1252ede78e9b27fe153e12b 100644
--- a/sdk/lib/_internal/compiler/implementation/ssa/types.dart
+++ b/sdk/lib/_internal/compiler/implementation/ssa/types.dart
@@ -914,6 +914,11 @@ class HBoundedType extends HType {
bool canBeNull() => mask.isNullable;
+ bool canBePrimitive(Compiler compiler) {
+ // TODO(kasperl): Check for string, etc.
+ return canBePrimitiveArray(compiler);
+ }
+
bool canBePrimitiveArray(Compiler compiler) {
JavaScriptBackend backend = compiler.backend;
DartType jsArrayType = backend.jsArrayClass.computeType(compiler);
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/types/type_mask.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698