Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(58)

Issue 547703002: Rework how types work in the VM Service. (Closed)

Created:
6 years, 3 months ago by turnidge
Modified:
6 years, 3 months ago
Reviewers:
koda, Cutch
CC:
reviews_dartlang.org, Cutch, vm-dev_dartlang.org
Visibility:
Public.

Description

Rework how types work in the VM Service. We now return a "type" property and an optional "_vmType" property for each response. We use this to "hide" vm implementation specifics in the VM Service protocol. For example, before we might have returned an integer reference with type "@Smi". Now it would have the type "@int" and the _vmType "@Smi". This also allows us to hide funky vm internal types behind the generic "Object" type. Updated the protocol.md file somewhat to describe a notion of "private properties". Updated the Observatory and unit tests. R=johnmccutchan@google.com Committed: https://code.google.com/p/dart/source/detail?r=40044

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : sync #

Patch Set 4 : #

Total comments: 10

Patch Set 5 : code review #

Total comments: 2

Patch Set 6 : code review - cutch #

Patch Set 7 : gen js #

Unified diffs Side-by-side diffs Delta from patch set Stats (+435 lines, -314 lines) Patch
M runtime/bin/vmservice/observatory/deployed/web/index.html View 1 2 3 4 5 6 4 chunks +7 lines, -6 lines 0 comments Download
M runtime/bin/vmservice/observatory/deployed/web/index_devtools.html View 1 2 3 4 5 6 4 chunks +7 lines, -6 lines 0 comments Download
M runtime/bin/vmservice/observatory/deployed/web/packages/observatory/src/elements/instance_ref.html View 1 2 3 4 5 6 2 chunks +4 lines, -3 lines 0 comments Download
M runtime/bin/vmservice/observatory/deployed/web/packages/observatory/src/elements/instance_view.html View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/bin/vmservice/observatory/deployed/web/packages/polymer/boot.js View 1 2 3 4 5 6 1 chunk +1 line, -6 lines 0 comments Download
M runtime/bin/vmservice/observatory/deployed/web/packages/polymer/polymer.html View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M runtime/bin/vmservice/observatory/deployed/web/packages/polymer/src/js/polymer/build.log View 1 2 3 4 5 6 1 chunk +16 lines, -13 lines 0 comments Download
M runtime/bin/vmservice/observatory/deployed/web/packages/polymer/src/js/polymer/polymer.js View 1 2 3 4 5 6 1 chunk +4 lines, -4 lines 0 comments Download
M runtime/bin/vmservice/observatory/deployed/web/packages/web_components/build.log View 1 2 3 4 5 6 1 chunk +32 lines, -23 lines 0 comments Download
M runtime/bin/vmservice/observatory/deployed/web/packages/web_components/platform.js View 1 2 3 4 5 6 1 chunk +6 lines, -6 lines 0 comments Download
M runtime/bin/vmservice/observatory/lib/src/elements/instance_ref.html View 1 2 3 4 5 2 chunks +4 lines, -3 lines 0 comments Download
M runtime/bin/vmservice/observatory/lib/src/elements/instance_view.html View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/bin/vmservice/observatory/lib/src/elements/service_ref.dart View 1 2 2 chunks +11 lines, -22 lines 0 comments Download
M runtime/bin/vmservice/observatory/lib/src/elements/service_view.dart View 1 2 3 chunks +11 lines, -40 lines 0 comments Download
M runtime/bin/vmservice/observatory/lib/src/service/object.dart View 1 2 3 4 5 5 chunks +60 lines, -32 lines 0 comments Download
M runtime/vm/json_test.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/vm/object.h View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
M runtime/vm/object.cc View 1 2 3 4 5 36 chunks +95 lines, -55 lines 0 comments Download
M runtime/vm/object_test.cc View 13 chunks +25 lines, -24 lines 0 comments Download
M runtime/vm/service/protocol.md View 1 2 3 4 13 chunks +103 lines, -27 lines 0 comments Download
M runtime/vm/service_test.cc View 1 2 3 4 5 24 chunks +39 lines, -34 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
turnidge
6 years, 3 months ago (2014-09-05 18:33:30 UTC) #2
koda
Just minor comments; the general idea looks good. https://codereview.chromium.org/547703002/diff/60001/runtime/vm/object.cc File runtime/vm/object.cc (right): https://codereview.chromium.org/547703002/diff/60001/runtime/vm/object.cc#newcode6838 runtime/vm/object.cc:6838: AddTypeProperties(&jsobj, ...
6 years, 3 months ago (2014-09-05 21:29:29 UTC) #3
turnidge
https://codereview.chromium.org/547703002/diff/60001/runtime/vm/object.cc File runtime/vm/object.cc (right): https://codereview.chromium.org/547703002/diff/60001/runtime/vm/object.cc#newcode6838 runtime/vm/object.cc:6838: AddTypeProperties(&jsobj, "Function", JSONType(), ref); On 2014/09/05 21:29:29, koda wrote: ...
6 years, 3 months ago (2014-09-08 16:20:19 UTC) #4
Cutch
lgtm with one small suggestion https://codereview.chromium.org/547703002/diff/80001/runtime/bin/vmservice/observatory/lib/src/elements/instance_ref.html File runtime/bin/vmservice/observatory/lib/src/elements/instance_ref.html (right): https://codereview.chromium.org/547703002/diff/80001/runtime/bin/vmservice/observatory/lib/src/elements/instance_ref.html#newcode41 runtime/bin/vmservice/observatory/lib/src/elements/instance_ref.html:41: <template if="{{ ref.type == ...
6 years, 3 months ago (2014-09-09 16:41:15 UTC) #6
turnidge
https://codereview.chromium.org/547703002/diff/80001/runtime/bin/vmservice/observatory/lib/src/elements/instance_ref.html File runtime/bin/vmservice/observatory/lib/src/elements/instance_ref.html (right): https://codereview.chromium.org/547703002/diff/80001/runtime/bin/vmservice/observatory/lib/src/elements/instance_ref.html#newcode41 runtime/bin/vmservice/observatory/lib/src/elements/instance_ref.html:41: <template if="{{ ref.type == 'Instance' && On 2014/09/09 16:41:15, ...
6 years, 3 months ago (2014-09-09 17:02:22 UTC) #7
turnidge
6 years, 3 months ago (2014-09-09 17:26:11 UTC) #8
Message was sent while issue was closed.
Committed patchset #7 (id:120001) manually as 40044 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698