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

Issue 2033553002: Reapply "VM: Add result cid information for recognized methods." (Closed)

Created:
4 years, 6 months ago by rmacnak
Modified:
4 years, 6 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Base URL:
git@github.com:dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Reapply "VM: Add result cid information for recognized methods." - _HashVMBase._index is nullable - _HashVMBase._data is a regular Array - DBC fixes from Zach. R=fschneider@google.com Committed: https://github.com/dart-lang/sdk/commit/2e9c5f9a91eb25f09ee1e844c7a4f0273d138f79

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+350 lines, -304 lines) Patch
M runtime/lib/typed_data.dart View 1 chunk +2 lines, -4 lines 0 comments Download
M runtime/vm/flow_graph_builder.cc View 2 chunks +8 lines, -22 lines 0 comments Download
M runtime/vm/flow_graph_type_propagator.cc View 1 chunk +9 lines, -0 lines 0 comments Download
M runtime/vm/intermediate_language.h View 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/vm/intrinsifier.h View 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/vm/intrinsifier.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M runtime/vm/intrinsifier_dbc.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/method_recognizer.h View 5 chunks +294 lines, -261 lines 2 comments Download
M runtime/vm/method_recognizer.cc View 3 chunks +15 lines, -3 lines 0 comments Download
M runtime/vm/object.cc View 1 chunk +13 lines, -7 lines 1 comment Download
M runtime/vm/simulator_dbc.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10 (3 generated)
rmacnak
4 years, 6 months ago (2016-06-02 00:28:21 UTC) #2
Florian Schneider
LGTM. Thanks for fixing!
4 years, 6 months ago (2016-06-02 12:39:39 UTC) #3
Florian Schneider
https://codereview.chromium.org/2033553002/diff/1/runtime/vm/method_recognizer.h File runtime/vm/method_recognizer.h (right): https://codereview.chromium.org/2033553002/diff/1/runtime/vm/method_recognizer.h#newcode141 runtime/vm/method_recognizer.h:141: V(_HashVMBase, get:_index, LinkedHashMap_getIndex, Dynamic, \ I wonder if we ...
4 years, 6 months ago (2016-06-02 12:42:12 UTC) #4
rmacnak
https://codereview.chromium.org/2033553002/diff/1/runtime/vm/method_recognizer.h File runtime/vm/method_recognizer.h (right): https://codereview.chromium.org/2033553002/diff/1/runtime/vm/method_recognizer.h#newcode141 runtime/vm/method_recognizer.h:141: V(_HashVMBase, get:_index, LinkedHashMap_getIndex, Dynamic, \ On 2016/06/02 12:42:12, Florian ...
4 years, 6 months ago (2016-06-02 16:58:24 UTC) #5
rmacnak
Committed patchset #1 (id:1) manually as 2e9c5f9a91eb25f09ee1e844c7a4f0273d138f79 (presubmit successful).
4 years, 6 months ago (2016-06-02 16:59:53 UTC) #7
regis
https://codereview.chromium.org/2033553002/diff/1/runtime/vm/object.cc File runtime/vm/object.cc (right): https://codereview.chromium.org/2033553002/diff/1/runtime/vm/object.cc#newcode7127 runtime/vm/object.cc:7127: prefix, fp, prefix, SourceFingerprint()); The generated string does not ...
4 years, 6 months ago (2016-06-02 22:17:18 UTC) #9
regis
4 years, 6 months ago (2016-06-02 22:33:31 UTC) #10
Message was sent while issue was closed.
On 2016/06/02 22:17:18, regis wrote:
> https://codereview.chromium.org/2033553002/diff/1/runtime/vm/object.cc
> File runtime/vm/object.cc (right):
> 
>
https://codereview.chromium.org/2033553002/diff/1/runtime/vm/object.cc#newcod...
> runtime/vm/object.cc:7127: prefix, fp, prefix, SourceFingerprint());
> The generated string does not match anymore, making it impossible to update
> fingerprints.
> 
> The real question is whether these fingerprints are really helping finding
bugs.
> I have spent numerous hours updating them after a trivial change (type hash
> change, new token, etc...).
> 
> I vote for removing them totally.

In the meantime, this quick fix is good enough and works better than the
previous version, which needed manual escaping of several characters (this one
may fail in case of a fp collision) 
      THR_Print("s/ %d)/ %d)/\n", fp, SourceFingerprint());

I'll send a cl.

Powered by Google App Engine
This is Rietveld 408576698