| 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());
|
|
|