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

Issue 11312183: - Do not mix scalar values and object fields in RawInstance to (Closed)

Created:
8 years, 1 month ago by Ivan Posva
Modified:
8 years, 1 month ago
Reviewers:
cshapiro, siva, Tom Ball
CC:
reviews_dartlang.org
Visibility:
Public.

Description

- Do not mix scalar values and object fields in RawInstance to simplify the traversal for GC. Classes with native fields have a hidden reference to a typed array containing the native fields. Committed: https://code.google.com/p/dart/source/detail?r=14821

Patch Set 1 #

Total comments: 9

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+72 lines, -81 lines) Patch
M runtime/vm/dart_api_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/dart_api_impl_test.cc View 2 chunks +8 lines, -6 lines 0 comments Download
M runtime/vm/object.h View 1 3 chunks +16 lines, -12 lines 0 comments Download
M runtime/vm/object.cc View 3 chunks +17 lines, -10 lines 0 comments Download
M runtime/vm/raw_object.h View 1 2 chunks +14 lines, -0 lines 0 comments Download
M runtime/vm/raw_object.cc View 1 chunk +8 lines, -4 lines 0 comments Download
M runtime/vm/stub_code_ia32.cc View 2 chunks +4 lines, -24 lines 0 comments Download
M runtime/vm/stub_code_x64.cc View 2 chunks +4 lines, -24 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Ivan Posva
8 years, 1 month ago (2012-11-12 07:18:53 UTC) #1
cshapiro
Something until you re-upload with your new changes... https://codereview.chromium.org/11312183/diff/1/runtime/vm/object.h File runtime/vm/object.h (right): https://codereview.chromium.org/11312183/diff/1/runtime/vm/object.h#newcode3078 runtime/vm/object.h:3078: void ...
8 years, 1 month ago (2012-11-12 18:48:45 UTC) #2
siva
Adding a redirection to the native fields is going to impact access to native fields ...
8 years, 1 month ago (2012-11-12 19:53:01 UTC) #3
Tom Ball
I'm not sure the indirection will cost that much, since the offset still had to ...
8 years, 1 month ago (2012-11-12 21:05:15 UTC) #4
Ivan Posva
http://codereview.chromium.org/11312183/diff/1/runtime/vm/object.h File runtime/vm/object.h (right): http://codereview.chromium.org/11312183/diff/1/runtime/vm/object.h#newcode3078 runtime/vm/object.h:3078: void SetNativeField(int index, intptr_t value) const; On 2012/11/12 21:05:15, ...
8 years, 1 month ago (2012-11-12 22:01:03 UTC) #5
Ivan Posva
PTAL
8 years, 1 month ago (2012-11-12 22:29:24 UTC) #6
Tom Ball
lgtm
8 years, 1 month ago (2012-11-12 22:36:19 UTC) #7
cshapiro
lgtm
8 years, 1 month ago (2012-11-12 22:49:30 UTC) #8
siva
8 years, 1 month ago (2012-11-12 23:12:29 UTC) #9
lgtm

Powered by Google App Engine
This is Rietveld 408576698