| Index: runtime/vm/object.cc
|
| diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
|
| index c3d31e7de87fedd51eabc943f6144eabb59684c9..8851c622f9d459273ef975bbd858bdb5c12bf00a 100644
|
| --- a/runtime/vm/object.cc
|
| +++ b/runtime/vm/object.cc
|
| @@ -8567,6 +8567,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);
|
| }
|
|
|