| Index: lib/compiler/implementation/ssa/builder.dart
|
| ===================================================================
|
| --- lib/compiler/implementation/ssa/builder.dart (revision 12037)
|
| +++ lib/compiler/implementation/ssa/builder.dart (working copy)
|
| @@ -898,7 +898,9 @@
|
| Link<Node> link = node.arguments;
|
| assert(!link.isEmpty() && link.tail.isEmpty());
|
| visit(link.head);
|
| - close(new HReturn(pop())).addSuccessor(graph.exit);
|
| + HInstruction value = pop();
|
| + value = potentiallyCheckType(value, variable);
|
| + close(new HReturn(value)).addSuccessor(graph.exit);
|
| graph.finalize();
|
| return graph;
|
| }
|
| @@ -2077,6 +2079,7 @@
|
| add(target);
|
| addWithPosition(new HInvokeStatic(<HInstruction>[target, value]), send);
|
| } else {
|
| + value = potentiallyCheckType(value, element);
|
| addWithPosition(new HStaticStore(element, value), send);
|
| }
|
| stack.add(value);
|
|
|