| Index: runtime/vm/deopt_instructions.cc
|
| ===================================================================
|
| --- runtime/vm/deopt_instructions.cc (revision 20337)
|
| +++ runtime/vm/deopt_instructions.cc (working copy)
|
| @@ -817,6 +817,9 @@
|
| void DeoptInfoBuilder::AddReturnAddressBefore(const Function& function,
|
| intptr_t deopt_id,
|
| intptr_t to_index) {
|
| + // Check that deopt_id exists.
|
| + ASSERT(Code::Handle(function.unoptimized_code()).
|
| + GetDeoptBeforePcAtDeoptId(deopt_id) != 0);
|
| const intptr_t object_table_index = FindOrAddObjectInTable(function);
|
| ASSERT(to_index == instructions_.length());
|
| instructions_.Add(new DeoptRetBeforeAddressInstr(object_table_index,
|
|
|