Chromium Code Reviews| Index: pkg/compiler/lib/src/ssa/codegen.dart |
| diff --git a/pkg/compiler/lib/src/ssa/codegen.dart b/pkg/compiler/lib/src/ssa/codegen.dart |
| index fce5372330fa5a595f9723b15dd429d612c0fe95..df440f1e28d7980de814347c221c1788865eaf22 100644 |
| --- a/pkg/compiler/lib/src/ssa/codegen.dart |
| +++ b/pkg/compiler/lib/src/ssa/codegen.dart |
| @@ -2572,8 +2572,9 @@ class SsaCodeGenerator implements HVisitor, HBlockInformationVisitor { |
| if (node.isArgumentTypeCheck || node.isReceiverTypeCheck) { |
| ClassWorld classWorld = compiler.world; |
| // An int check if the input is not int or null, is not |
| - // sufficient for doing a argument or receiver check. |
| - assert(!node.checkedType.containsOnlyInt(classWorld) || |
| + // sufficient for doing an argument or receiver check. |
| + assert(compiler.trustTypeAnnotations || |
|
sra1
2014/11/06 17:47:51
Does inserting the HTypeKnown during inlining not
floitsch
2014/11/07 15:50:13
The problem seems to be that HTypeKnown nodes are
|
| + !node.checkedType.containsOnlyInt(classWorld) || |
| node.checkedInput.isIntegerOrNull(compiler)); |
| js.Expression test = generateTest(node.checkedInput, node.checkedType); |
| js.Block oldContainer = currentContainer; |