| Index: runtime/vm/flow_graph_builder.cc
|
| ===================================================================
|
| --- runtime/vm/flow_graph_builder.cc (revision 6205)
|
| +++ runtime/vm/flow_graph_builder.cc (working copy)
|
| @@ -1267,7 +1267,12 @@
|
|
|
|
|
| void EffectGraphVisitor::VisitCloneContextNode(CloneContextNode* node) {
|
| - Bailout("EffectGraphVisitor::VisitCloneContextNode");
|
| + AddInstruction(new BindInstr(temp_index(), new CurrentContextComp()));
|
| + TempVal* ctx = new TempVal(temp_index());
|
| + AddInstruction(new BindInstr(temp_index(),
|
| + new CloneContextComp(node->id(), node->token_index(), ctx)));
|
| + TempVal* cloned_ctx = new TempVal(temp_index());
|
| + ReturnComputation(new StoreContextComp(cloned_ctx));
|
| }
|
|
|
|
|
| @@ -2130,6 +2135,13 @@
|
| }
|
|
|
|
|
| +void FlowGraphPrinter::VisitCloneContext(CloneContextComp* comp) {
|
| + OS::Print("CloneContext(");
|
| + comp->context_value()->Accept(this);
|
| + OS::Print(")");
|
| +}
|
| +
|
| +
|
| void FlowGraphPrinter::VisitStoreContext(StoreContextComp* comp) {
|
| OS::Print("StoreContext(");
|
| comp->value()->Accept(this);
|
|
|