| Index: runtime/vm/service.cc
|
| diff --git a/runtime/vm/service.cc b/runtime/vm/service.cc
|
| index 450aadca337dfd81609374a3ad182e15da6986e8..42e50a4a108e610df1af186d91eedd4259bedc8f 100644
|
| --- a/runtime/vm/service.cc
|
| +++ b/runtime/vm/service.cc
|
| @@ -2848,6 +2848,8 @@ static bool RespondWithMalformedObject(Isolate* isolate,
|
|
|
| static const MethodParameter* get_object_params[] = {
|
| ISOLATE_PARAMETER,
|
| + new UIntParameter("offset", false),
|
| + new UIntParameter("count", false),
|
| NULL,
|
| };
|
|
|
| @@ -2858,6 +2860,22 @@ static bool GetObject(Isolate* isolate, JSONStream* js) {
|
| PrintMissingParamError(js, "objectId");
|
| return true;
|
| }
|
| + if (js->HasParam("offset")) {
|
| + intptr_t value = UIntParameter::Parse(js->LookupParam("offset"));
|
| + if (value < 0) {
|
| + PrintInvalidParamError(js, "offset");
|
| + return true;
|
| + }
|
| + js->set_offset(value);
|
| + }
|
| + if (js->HasParam("count")) {
|
| + intptr_t value = UIntParameter::Parse(js->LookupParam("count"));
|
| + if (value < 0) {
|
| + PrintInvalidParamError(js, "count");
|
| + return true;
|
| + }
|
| + js->set_count(value);
|
| + }
|
|
|
| // Handle heap objects.
|
| ObjectIdRing::LookupResult lookup_result;
|
|
|