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

Issue 333773006: Removes open arrays (e.g. data[0]) from raw objects. (Closed)

Created:
6 years, 6 months ago by zra
Modified:
6 years, 6 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Removes open arrays (e.g. data[0]) from raw objects. Replaces them with data() methods as in RawArray. R=asiva@google.com, srdjan@google.com Committed: https://code.google.com/p/dart/source/detail?r=37450

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Total comments: 10

Patch Set 6 : #

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -85 lines) Patch
M runtime/vm/dart_api_impl.cc View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/vm/dart_api_message.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/object.h View 1 2 3 4 5 6 25 chunks +49 lines, -33 lines 0 comments Download
M runtime/vm/object.cc View 1 2 3 4 5 6 8 chunks +14 lines, -14 lines 0 comments Download
M runtime/vm/raw_object.h View 1 2 3 4 5 6 18 chunks +34 lines, -28 lines 0 comments Download
M runtime/vm/raw_object.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/raw_object_snapshot.cc View 1 2 3 4 5 6 6 chunks +15 lines, -6 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
zra
6 years, 6 months ago (2014-06-13 18:33:08 UTC) #1
Florian Schneider
dbc: What is the motivation for this? https://codereview.chromium.org/333773006/diff/1/runtime/vm/raw_object.h File runtime/vm/raw_object.h (right): https://codereview.chromium.org/333773006/diff/1/runtime/vm/raw_object.h#newcode563 runtime/vm/raw_object.h:563: return reinterpret_cast<RawAbstractType**>(address_of_length ...
6 years, 6 months ago (2014-06-16 08:27:26 UTC) #2
zra
The motivation is to change intptr_t in raw objects to int32_t or int64_t. This can ...
6 years, 6 months ago (2014-06-16 14:22:53 UTC) #3
Florian Schneider
https://codereview.chromium.org/333773006/diff/1/runtime/vm/raw_object.h File runtime/vm/raw_object.h (right): https://codereview.chromium.org/333773006/diff/1/runtime/vm/raw_object.h#newcode563 runtime/vm/raw_object.h:563: return reinterpret_cast<RawAbstractType**>(address_of_length + kWordSize); On 2014/06/16 14:22:52, zra wrote: ...
6 years, 6 months ago (2014-06-16 14:46:25 UTC) #4
zra
PTAL https://codereview.chromium.org/333773006/diff/1/runtime/vm/raw_object.h File runtime/vm/raw_object.h (right): https://codereview.chromium.org/333773006/diff/1/runtime/vm/raw_object.h#newcode563 runtime/vm/raw_object.h:563: return reinterpret_cast<RawAbstractType**>(address_of_length + kWordSize); On 2014/06/16 14:46:24, Florian ...
6 years, 6 months ago (2014-06-16 17:00:15 UTC) #5
zra
+srdjan for restoring RawFunction snapshot change.
6 years, 6 months ago (2014-06-16 19:29:28 UTC) #6
srdjan
LGTM for snapshot change
6 years, 6 months ago (2014-06-16 19:41:10 UTC) #7
Ivan Posva
https://codereview.chromium.org/333773006/diff/60001/runtime/vm/raw_object.h File runtime/vm/raw_object.h (right): https://codereview.chromium.org/333773006/diff/60001/runtime/vm/raw_object.h#newcode862 runtime/vm/raw_object.h:862: uword address_of_lazy = reinterpret_cast<uword>(&lazy_deopt_pc_offset_); As discussed this pattern looks ...
6 years, 6 months ago (2014-06-16 23:02:13 UTC) #8
zra
https://codereview.chromium.org/333773006/diff/60001/runtime/vm/raw_object.h File runtime/vm/raw_object.h (right): https://codereview.chromium.org/333773006/diff/60001/runtime/vm/raw_object.h#newcode862 runtime/vm/raw_object.h:862: uword address_of_lazy = reinterpret_cast<uword>(&lazy_deopt_pc_offset_); On 2014/06/16 23:02:13, Ivan Posva ...
6 years, 6 months ago (2014-06-17 17:24:08 UTC) #9
siva
lgtm https://codereview.chromium.org/333773006/diff/80001/runtime/vm/object.h File runtime/vm/object.h (right): https://codereview.chromium.org/333773006/diff/80001/runtime/vm/object.h#newcode3823 runtime/vm/object.h:3823: return data_offset() + kWordSize * context_index; why not ...
6 years, 6 months ago (2014-06-17 22:29:50 UTC) #10
zra
Since alignment might be different from sizeof(type), the OPEN_ARRAY_START macro takes two arguments, one for ...
6 years, 6 months ago (2014-06-17 23:17:58 UTC) #11
zra
6 years, 6 months ago (2014-06-18 15:58:35 UTC) #12
Message was sent while issue was closed.
Committed patchset #7 manually as r37450 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698