Index: runtime/vm/flow_graph_allocator.cc |
diff --git a/runtime/vm/flow_graph_allocator.cc b/runtime/vm/flow_graph_allocator.cc |
index e605eac918d64e7a96eead68d581a18f57b594e8..e83221259457c9d6c9d91e6c8c3aad3841405c72 100644 |
--- a/runtime/vm/flow_graph_allocator.cc |
+++ b/runtime/vm/flow_graph_allocator.cc |
@@ -115,6 +115,11 @@ FlowGraphAllocator::FlowGraphAllocator(const FlowGraph& flow_graph, |
// generating intrinsic code. |
if (intrinsic_mode) { |
blocked_cpu_registers_[ARGS_DESC_REG] = true; |
+#if !defined(TARGET_ARCH_IA32) |
+ // Need to preserve CODE_REG to be able to store the PC marker |
+ // and load the pool pointer. |
+ blocked_cpu_registers_[CODE_REG] = true; |
+#endif |
} |
} |