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

Issue 22314017: Do not use guarded cid on externalizable cid-s (one and two byte strings). (Closed)

Created:
7 years, 4 months ago by srdjan
Modified:
7 years, 4 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Do not use guarded cid on externalizable cid-s (one and two byte strings). An externalizable object can change its type on the fly and therefore we cannot rely on the information obntained while storing into the field. R=vegorov@google.com Committed: https://code.google.com/p/dart/source/detail?r=25893

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -2 lines) Patch
M runtime/vm/dart_api_impl_test.cc View 1 2 1 chunk +41 lines, -0 lines 0 comments Download
M runtime/vm/flow_graph_type_propagator.cc View 1 2 1 chunk +6 lines, -1 line 0 comments Download
M runtime/vm/object.h View 1 2 2 chunks +12 lines, -1 line 2 comments Download

Messages

Total messages: 6 (0 generated)
srdjan
7 years, 4 months ago (2013-08-07 17:51:44 UTC) #1
Vyacheslav Egorov (Google)
LGTM! Nice catch. https://codereview.chromium.org/22314017/diff/6001/runtime/vm/object.h File runtime/vm/object.h (right): https://codereview.chromium.org/22314017/diff/6001/runtime/vm/object.h#newcode1964 runtime/vm/object.h:1964: intptr_t guarded_cid() const { Please add ...
7 years, 4 months ago (2013-08-07 17:56:09 UTC) #2
srdjan
PTAL https://codereview.chromium.org/22314017/diff/6001/runtime/vm/object.h File runtime/vm/object.h (right): https://codereview.chromium.org/22314017/diff/6001/runtime/vm/object.h#newcode1964 runtime/vm/object.h:1964: intptr_t guarded_cid() const { On 2013/08/07 17:56:09, Vyacheslav ...
7 years, 4 months ago (2013-08-07 18:27:48 UTC) #3
Vyacheslav Egorov (Google)
still lgtm https://codereview.chromium.org/22314017/diff/13001/runtime/vm/object.h File runtime/vm/object.h (right): https://codereview.chromium.org/22314017/diff/13001/runtime/vm/object.h#newcode6002 runtime/vm/object.h:6002: return *(reinterpret_cast<intptr_t*>(native_fields->ptr()->data_) + index); nit: you can ...
7 years, 4 months ago (2013-08-07 18:31:03 UTC) #4
srdjan
https://codereview.chromium.org/22314017/diff/13001/runtime/vm/object.h File runtime/vm/object.h (right): https://codereview.chromium.org/22314017/diff/13001/runtime/vm/object.h#newcode6002 runtime/vm/object.h:6002: return *(reinterpret_cast<intptr_t*>(native_fields->ptr()->data_) + index); On 2013/08/07 18:31:03, Vyacheslav Egorov ...
7 years, 4 months ago (2013-08-07 18:38:16 UTC) #5
srdjan
7 years, 4 months ago (2013-08-07 18:56:52 UTC) #6
Message was sent while issue was closed.
Committed patchset #3 manually as r25893 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698