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

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

Issue 15724021: Move array and string related HType from const to a field in the backend. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 6 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: sdk/lib/_internal/compiler/implementation/ssa/bailout.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/ssa/bailout.dart (revision 23841)
+++ sdk/lib/_internal/compiler/implementation/ssa/bailout.dart (working copy)
@@ -110,7 +110,7 @@
// Primitive types that are not null are valuable. These include
// indexable arrays.
bool typeValuable(HType type) {
- return type.isPrimitive() && !type.isNull();
+ return type.isPrimitive(compiler) && !type.isNull();
}
bool get hasTypeGuards => work.guards.length != 0;
@@ -219,7 +219,8 @@
bool willThrowArgumentError(Selector selector,
HInstruction receiver,
HType speculativeType) {
- if (receiver != null && (receiver.isInteger() || receiver.isString())) {
+ if (receiver != null
+ && (receiver.isInteger() || receiver.isString(compiler))) {
return selector.isOperator()
&& selector.name != const SourceString('==')
&& (speculativeType.isNumber() && !speculativeType.isInteger());

Powered by Google App Engine
This is Rietveld 408576698