| Index: runtime/vm/object.cc
|
| diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
|
| index bdfac3c04eebfd88df665dccbf890e9f3ad69cd0..186a4399383e1230dd944f761c7f837ab875371b 100644
|
| --- a/runtime/vm/object.cc
|
| +++ b/runtime/vm/object.cc
|
| @@ -8541,6 +8541,20 @@ const char* DeoptInfo::ToCString() const {
|
| }
|
|
|
|
|
| +// Returns a bool so it can be asserted.
|
| +bool DeoptInfo::VerifyDecompression(const GrowableArray<DeoptInstr*>& original,
|
| + const Array& deopt_table) const {
|
| + intptr_t length = TranslationLength();
|
| + GrowableArray<DeoptInstr*> unpacked(length);
|
| + ToInstructions(deopt_table, &unpacked);
|
| + ASSERT(unpacked.length() == original.length());
|
| + for (intptr_t i = 0; i < unpacked.length(); ++i) {
|
| + ASSERT(unpacked[i]->Equals(*original[i]));
|
| + }
|
| + return true;
|
| +}
|
| +
|
| +
|
| void DeoptInfo::PrintToJSONStream(JSONStream* stream, bool ref) const {
|
| JSONObject jsobj(stream);
|
| }
|
|
|