Chromium Code Reviews| Index: lib/compiler/implementation/ssa/codegen.dart |
| =================================================================== |
| --- lib/compiler/implementation/ssa/codegen.dart (revision 13418) |
| +++ lib/compiler/implementation/ssa/codegen.dart (working copy) |
| @@ -1549,6 +1549,11 @@ |
| node); |
| Selector call = new Selector.callClosureFrom(node.selector); |
| world.registerDynamicInvocation(call.name, call); |
| + // A closure can also be invoked through [HInvokeDynamicMethod] by |
| + // explicitly calling the [:call:] method. Therefore, we must also |
| + // register types here to let the backend invalidate wrong |
| + // optimizations. |
| + backend.registerDynamicInvocation(node, call, types); |
|
floitsch
2012/10/10 08:56:33
FYI: this doesn't pass in checked mode: registerDy
ngeoffray
2012/10/10 09:35:30
Good catch. I probably won't have time to run all
|
| } |
| visitInvokeStatic(HInvokeStatic node) { |