Index: runtime/vm/deopt_instructions.cc |
=================================================================== |
--- runtime/vm/deopt_instructions.cc (revision 41455) |
+++ runtime/vm/deopt_instructions.cc (working copy) |
@@ -1243,6 +1243,7 @@ |
MaterializeObjectInstr* mat = materializations_[i]; |
// Class of the instance to allocate. |
AddConstant(mat->cls(), dest_index++); |
+ AddConstant(Smi::Handle(Smi::New(mat->num_variables())), dest_index++); |
Vyacheslav Egorov (Google)
2014/11/03 13:37:48
Can you avoid writing it if (mat->cls() != context
Florian Schneider
2014/11/04 13:28:57
I could - I'm not sure if it is worth making the D
|
for (intptr_t i = 0; i < mat->InputCount(); i++) { |
if (!mat->InputAt(i)->BindsToConstantNull()) { |
// Emit offset-value pair. |