Index: runtime/vm/flow_graph_compiler_mips.cc |
diff --git a/runtime/vm/flow_graph_compiler_mips.cc b/runtime/vm/flow_graph_compiler_mips.cc |
index 9dd8859ed50225bfa37f4828ff7439bc0d34112c..ca0be6215a3cb61c39844aad401e9ae413d19a61 100644 |
--- a/runtime/vm/flow_graph_compiler_mips.cc |
+++ b/runtime/vm/flow_graph_compiler_mips.cc |
@@ -1042,6 +1042,13 @@ void FlowGraphCompiler::EmitFrameEntry() { |
// S4: arguments descriptor array. |
void FlowGraphCompiler::CompileGraph() { |
InitCompiler(); |
+ const Function& function = parsed_function().function(); |
+ |
+#ifdef DART_PRECOMPILER |
+ if (function.IsDynamicFunction()) { |
+ __ MonomorphicCheckedEntry(); |
+ } |
+#endif // DART_PRECOMPILER |
if (TryIntrinsify()) { |
// Skip regular code generation. |
@@ -1049,8 +1056,7 @@ void FlowGraphCompiler::CompileGraph() { |
} |
EmitFrameEntry(); |
- |
- const Function& function = parsed_function().function(); |
+ ASSERT(assembler()->constant_pool_allowed()); |
const int num_fixed_params = function.num_fixed_parameters(); |
const int num_copied_params = parsed_function().num_copied_params(); |