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

Issue 98253009: Refactor VM service IDs (Closed)

Created:
7 years ago by Cutch
Modified:
7 years ago
Reviewers:
turnidge, siva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Refactor VM service IDs: - IDs are strings which can be concatenated together like paths. - Isolate ID is now "/isolates/XXX" - Function, field, class, library, and script IDs are now stable. - Introduce <type-ref> tags. R=turnidge@google.com Committed: https://code.google.com/p/dart/source/detail?r=31358

Patch Set 1 #

Total comments: 64

Patch Set 2 : #

Patch Set 3 : #

Total comments: 12

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+1263 lines, -477 lines) Patch
D runtime/bin/vmservice/client/build.dart View 2 3 4 5 6 7 1 chunk +0 lines, -44 lines 0 comments Download
A + runtime/bin/vmservice/client/build_.dart View 2 3 4 5 6 7 0 chunks +-1 lines, --1 lines 0 comments Download
M runtime/bin/vmservice/client/deployed/web/index.html View 1 2 3 4 5 6 7 22 chunks +77 lines, -71 lines 0 comments Download
M runtime/bin/vmservice/client/deployed/web/index_devtools.html View 1 2 3 4 5 6 7 22 chunks +77 lines, -71 lines 0 comments Download
M runtime/bin/vmservice/client/lib/observatory_elements.dart View 2 3 4 5 6 7 1 chunk +7 lines, -1 line 0 comments Download
M runtime/bin/vmservice/client/lib/observatory_elements.html View 2 3 4 5 6 7 2 chunks +7 lines, -0 lines 0 comments Download
M runtime/bin/vmservice/client/lib/src/observatory/isolate.dart View 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M runtime/bin/vmservice/client/lib/src/observatory/isolate_manager.dart View 2 3 4 5 6 7 2 chunks +3 lines, -3 lines 0 comments Download
M runtime/bin/vmservice/client/lib/src/observatory/location_manager.dart View 1 2 3 4 5 6 7 3 chunks +13 lines, -65 lines 0 comments Download
M runtime/bin/vmservice/client/lib/src/observatory/request_manager.dart View 2 3 4 5 6 7 3 chunks +17 lines, -44 lines 0 comments Download
A + runtime/bin/vmservice/client/lib/src/observatory_elements/class_ref.dart View 1 2 3 4 5 6 7 1 chunk +5 lines, -8 lines 0 comments Download
A runtime/bin/vmservice/client/lib/src/observatory_elements/class_ref.html View 2 3 4 5 6 7 1 chunk +9 lines, -0 lines 0 comments Download
M runtime/bin/vmservice/client/lib/src/observatory_elements/class_view.html View 1 2 3 4 5 6 7 4 chunks +8 lines, -10 lines 0 comments Download
A + runtime/bin/vmservice/client/lib/src/observatory_elements/code_ref.dart View 1 2 3 4 5 6 7 1 chunk +5 lines, -8 lines 0 comments Download
A runtime/bin/vmservice/client/lib/src/observatory_elements/code_ref.html View 2 3 4 5 6 7 1 chunk +9 lines, -0 lines 0 comments Download
M runtime/bin/vmservice/client/lib/src/observatory_elements/code_view.html View 2 3 4 5 6 7 2 chunks +2 lines, -3 lines 0 comments Download
M runtime/bin/vmservice/client/lib/src/observatory_elements/field_ref.dart View 1 2 3 4 5 6 7 1 chunk +2 lines, -3 lines 0 comments Download
M runtime/bin/vmservice/client/lib/src/observatory_elements/field_ref.html View 1 2 3 4 5 6 7 1 chunk +9 lines, -9 lines 0 comments Download
M runtime/bin/vmservice/client/lib/src/observatory_elements/field_view.html View 2 3 4 5 6 7 4 chunks +6 lines, -9 lines 0 comments Download
A + runtime/bin/vmservice/client/lib/src/observatory_elements/function_ref.dart View 2 3 4 5 6 7 1 chunk +5 lines, -8 lines 0 comments Download
A runtime/bin/vmservice/client/lib/src/observatory_elements/function_ref.html View 2 3 4 5 6 7 1 chunk +9 lines, -0 lines 0 comments Download
M runtime/bin/vmservice/client/lib/src/observatory_elements/function_view.html View 2 3 4 5 6 7 2 chunks +6 lines, -6 lines 0 comments Download
M runtime/bin/vmservice/client/lib/src/observatory_elements/instance_ref.dart View 2 3 4 5 6 7 1 chunk +9 lines, -3 lines 0 comments Download
M runtime/bin/vmservice/client/lib/src/observatory_elements/instance_ref.html View 1 2 3 4 5 6 7 1 chunk +8 lines, -7 lines 0 comments Download
M runtime/bin/vmservice/client/lib/src/observatory_elements/instance_view.html View 1 2 3 4 5 6 7 4 chunks +5 lines, -7 lines 0 comments Download
M runtime/bin/vmservice/client/lib/src/observatory_elements/isolate_summary.dart View 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
A + runtime/bin/vmservice/client/lib/src/observatory_elements/library_ref.dart View 2 3 4 5 6 7 1 chunk +5 lines, -8 lines 0 comments Download
A runtime/bin/vmservice/client/lib/src/observatory_elements/library_ref.html View 2 3 4 5 6 7 1 chunk +9 lines, -0 lines 0 comments Download
M runtime/bin/vmservice/client/lib/src/observatory_elements/library_view.html View 1 2 3 4 5 6 7 6 chunks +12 lines, -16 lines 0 comments Download
M runtime/bin/vmservice/client/lib/src/observatory_elements/navigation_bar.html View 2 3 4 5 6 7 1 chunk +0 lines, -4 lines 0 comments Download
M runtime/bin/vmservice/client/lib/src/observatory_elements/observatory_element.dart View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
A + runtime/bin/vmservice/client/lib/src/observatory_elements/script_ref.dart View 1 2 3 4 5 6 7 1 chunk +5 lines, -8 lines 0 comments Download
A runtime/bin/vmservice/client/lib/src/observatory_elements/script_ref.html View 1 2 3 4 5 6 7 1 chunk +10 lines, -0 lines 0 comments Download
A runtime/bin/vmservice/client/lib/src/observatory_elements/service_ref.dart View 1 2 3 4 5 6 7 1 chunk +38 lines, -0 lines 0 comments Download
A runtime/bin/vmservice/client/lib/src/observatory_elements/service_ref.html View 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download
M runtime/bin/vmservice/client/lib/src/observatory_elements/stack_trace.html View 1 2 3 4 5 6 7 2 chunks +5 lines, -3 lines 0 comments Download
M runtime/bin/vmservice/running_isolates.dart View 2 3 4 5 6 7 1 chunk +3 lines, -2 lines 0 comments Download
M runtime/vm/object.h View 1 2 3 4 5 6 7 5 chunks +7 lines, -2 lines 0 comments Download
M runtime/vm/object.cc View 1 2 3 4 5 6 7 12 chunks +250 lines, -21 lines 4 comments Download
M runtime/vm/object_test.cc View 1 2 3 4 5 6 7 3 chunks +162 lines, -0 lines 0 comments Download
M runtime/vm/service.cc View 1 2 3 4 5 6 7 6 chunks +214 lines, -10 lines 0 comments Download
M runtime/vm/service_test.cc View 1 2 3 4 5 6 7 2 chunks +212 lines, -0 lines 0 comments Download
M tests/standalone/vmservice/isolate_bad_class_test.dart View 1 2 3 4 5 6 7 1 chunk +3 lines, -3 lines 0 comments Download
M tests/standalone/vmservice/isolate_bad_object_test.dart View 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M tests/standalone/vmservice/isolate_class_field_test.dart View 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/vmservice/isolate_class_test.dart View 2 3 4 5 6 7 3 chunks +3 lines, -3 lines 0 comments Download
M tests/standalone/vmservice/isolate_code_test.dart View 2 3 4 5 6 7 3 chunks +3 lines, -3 lines 0 comments Download
M tests/standalone/vmservice/isolate_echo_test.dart View 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/vmservice/isolate_function_test.dart View 2 3 4 5 6 7 3 chunks +3 lines, -3 lines 0 comments Download
M tests/standalone/vmservice/isolate_library_test.dart View 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M tests/standalone/vmservice/isolate_stacktrace_command_test.dart View 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M tests/standalone/vmservice/test_helper.dart View 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M tests/standalone/vmservice/unknown_isolate_command_test.dart View 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 8 (0 generated)
Cutch
7 years ago (2013-12-18 22:08:54 UTC) #1
turnidge
Ok, first pass done. https://codereview.chromium.org/98253009/diff/1/runtime/bin/vmservice/client/lib/src/observatory/location_manager.dart File runtime/bin/vmservice/client/lib/src/observatory/location_manager.dart (right): https://codereview.chromium.org/98253009/diff/1/runtime/bin/vmservice/client/lib/src/observatory/location_manager.dart#newcode57 runtime/bin/vmservice/client/lib/src/observatory/location_manager.dart:57: } Comment for why we ...
7 years ago (2013-12-19 20:39:29 UTC) #2
Cutch
https://codereview.chromium.org/98253009/diff/1/runtime/bin/vmservice/client/lib/src/observatory/location_manager.dart File runtime/bin/vmservice/client/lib/src/observatory/location_manager.dart (right): https://codereview.chromium.org/98253009/diff/1/runtime/bin/vmservice/client/lib/src/observatory/location_manager.dart#newcode57 runtime/bin/vmservice/client/lib/src/observatory/location_manager.dart:57: } On 2013/12/19 20:39:29, turnidge wrote: > Comment for ...
7 years ago (2013-12-19 21:53:58 UTC) #3
turnidge
A couple of minor comments on service.cc & service_test.cc We should talk in person about ...
7 years ago (2013-12-20 17:44:45 UTC) #4
Cutch
PTAL https://codereview.chromium.org/98253009/diff/230004/runtime/vm/object.cc File runtime/vm/object.cc (right): https://codereview.chromium.org/98253009/diff/230004/runtime/vm/object.cc#newcode5704 runtime/vm/object.cc:5704: intptr_t id = cls.FindFunctionIndex(func); On 2013/12/20 17:44:45, turnidge ...
7 years ago (2013-12-20 18:23:46 UTC) #5
turnidge
LGTM with one small comment. https://codereview.chromium.org/98253009/diff/230004/runtime/vm/object.cc File runtime/vm/object.cc (right): https://codereview.chromium.org/98253009/diff/230004/runtime/vm/object.cc#newcode5704 runtime/vm/object.cc:5704: intptr_t id = cls.FindFunctionIndex(func); ...
7 years ago (2013-12-20 21:00:43 UTC) #6
Cutch
Committed patchset #8 manually as r31358 (presubmit successful).
7 years ago (2013-12-20 22:36:23 UTC) #7
siva
7 years ago (2013-12-21 00:32:36 UTC) #8
Message was sent while issue was closed.
https://codereview.chromium.org/98253009/diff/1270006/runtime/vm/object.cc
File runtime/vm/object.cc (right):

https://codereview.chromium.org/98253009/diff/1270006/runtime/vm/object.cc#ne...
runtime/vm/object.cc:1878: if (raw_ptr()->closure_functions_ ==
GrowableObjectArray::null()) {
should be if (closures() == GrowableObjectArray::null()) {

https://codereview.chromium.org/98253009/diff/1270006/runtime/vm/object.cc#ne...
runtime/vm/object.cc:1884: GrowableObjectArray::Handle(isolate,
raw_ptr()->closure_functions_);
ditto please use closures()

https://codereview.chromium.org/98253009/diff/1270006/runtime/vm/object.cc#ne...
runtime/vm/object.cc:2475: // No field found found.
found found?

https://codereview.chromium.org/98253009/diff/1270006/runtime/vm/object.cc#ne...
runtime/vm/object.cc:5717: const Function& func = *this;
This seems very weird, why do you have to do this and not just have
FindFunctionIndex be a method in class Function.

Powered by Google App Engine
This is Rietveld 408576698