Index: runtime/vm/flow_graph_compiler.cc |
diff --git a/runtime/vm/flow_graph_compiler.cc b/runtime/vm/flow_graph_compiler.cc |
index ae31c415a40a9e13c5b5fd7f7be16c903418a41b..2c21416b93be072dc1e4c2f2087839ee03912787 100644 |
--- a/runtime/vm/flow_graph_compiler.cc |
+++ b/runtime/vm/flow_graph_compiler.cc |
@@ -1241,6 +1241,7 @@ void FlowGraphCompiler::AllocateRegistersLocally(Instruction* instr) { |
if (PP != kNoRegister) { |
blocked_registers[PP] = true; |
} |
+ blocked_registers[THR] = true; |
// Block all non-free registers. |
for (intptr_t i = 0; i < kFirstFreeCpuRegister; i++) { |