@@ -349,23 +349,6 @@ void FlowGraphChecker::VisitConstant(ConstantInstr* constant) {
349349 // ASSERT(constant->GetBlock() == flow_graph_->graph_entry());
350350}
351351
352- void FlowGraphChecker::VisitInstanceCall (InstanceCallInstr* instr) {
353- const Function& function = flow_graph_->function ();
354-
355- // Force-optimized functions may not have instance calls inside them because
356- // we do not reset ICData for these.
357- ASSERT (!function.ForceOptimize ());
358- }
359-
360- void FlowGraphChecker::VisitPolymorphicInstanceCall (
361- PolymorphicInstanceCallInstr* instr) {
362- const Function& function = flow_graph_->function ();
363-
364- // Force-optimized functions may not have instance calls inside them because
365- // we do not reset ICData for these.
366- ASSERT (!function.ForceOptimize ());
367- }
368-
369352void FlowGraphChecker::VisitPhi (PhiInstr* phi) {
370353 // Make sure the definition of each input value of a Phi dominates
371354 // the corresponding incoming edge, as defined by order.
@@ -393,6 +376,19 @@ void FlowGraphChecker::VisitRedefinition(RedefinitionInstr* def) {
393376 ASSERT (def->value ()->definition () != def);
394377}
395378
379+ void FlowGraphChecker::VisitInstanceCall (InstanceCallInstr* instr) {
380+ // Force-optimized functions may not have instance calls inside them because
381+ // we do not reset ICData for these.
382+ ASSERT (!flow_graph_->function ().ForceOptimize ());
383+ }
384+
385+ void FlowGraphChecker::VisitPolymorphicInstanceCall (
386+ PolymorphicInstanceCallInstr* instr) {
387+ // Force-optimized functions may not have instance calls inside them because
388+ // we do not reset ICData for these.
389+ ASSERT (!flow_graph_->function ().ForceOptimize ());
390+ }
391+
396392// Main entry point of graph checker.
397393void FlowGraphChecker::Check (const char * pass_name) {
398394 if (FLAG_trace_compiler) {
0 commit comments