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

Issue 9586024: Add Load/Store Static/Instance fields. (Closed)

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

Description

Add Load/Store Static/Instance fields. Committed: https://code.google.com/p/dart/source/detail?r=4972

Patch Set 1 #

Total comments: 7

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+215 lines, -5 lines) Patch
M runtime/vm/flow_graph_builder.cc View 1 2 chunks +69 lines, -4 lines 0 comments Download
M runtime/vm/flow_graph_compiler_x64.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M runtime/vm/flow_graph_compiler_x64.cc View 1 3 chunks +47 lines, -1 line 0 comments Download
M runtime/vm/intermediate_language.h View 1 3 chunks +94 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
srdjan
8 years, 9 months ago (2012-03-03 00:35:42 UTC) #1
Kevin Millikin (Google)
LGTM, with the first issue that is a minor bug fixed. The other two are ...
8 years, 9 months ago (2012-03-05 11:02:41 UTC) #2
srdjan
8 years, 9 months ago (2012-03-05 18:35:20 UTC) #3
Thanks for the review.

https://chromiumcodereview.appspot.com/9586024/diff/1/runtime/vm/flow_graph_b...
File runtime/vm/flow_graph_builder.cc (right):

https://chromiumcodereview.appspot.com/9586024/diff/1/runtime/vm/flow_graph_b...
runtime/vm/flow_graph_builder.cc:565: ValueGraphVisitor for_value(owner(),
temp_index());
On 2012/03/05 11:02:41, kmillikin wrote:
> Second argument should be for_instance.temp_index().

Done.

https://chromiumcodereview.appspot.com/9586024/diff/1/runtime/vm/flow_graph_c...
File runtime/vm/flow_graph_compiler_x64.cc (right):

https://chromiumcodereview.appspot.com/9586024/diff/1/runtime/vm/flow_graph_c...
runtime/vm/flow_graph_compiler_x64.cc:197:
GenerateAssertAssignable(comp->node_id(),
On 2012/03/05 11:02:41, kmillikin wrote:
> There is an AssertAssignableComp that can go in the IL instruction stream (see
> EffectGraphVisitor::VisitStoreLocalNode).
> 
> The idea is that by exposing them in the IL they can be eliminated and/or
> shared.
> 
> I think it's up in the air whether we insert them up front or later (but I
> prefer up front a bit).  For now, it probably doesn't even matter if we're
> uniform as long as we keep it in mind as an issue to sort out.

Moved to graph builder.

https://chromiumcodereview.appspot.com/9586024/diff/1/runtime/vm/flow_graph_c...
runtime/vm/flow_graph_compiler_x64.cc:217: if (FLAG_enable_type_checks) {
Removed here as well.

https://chromiumcodereview.appspot.com/9586024/diff/1/runtime/vm/intermediate...
File runtime/vm/intermediate_language.h (right):

https://chromiumcodereview.appspot.com/9586024/diff/1/runtime/vm/intermediate...
runtime/vm/intermediate_language.h:304: RawString* name() const { return
ast_node_.field().name(); }
On 2012/03/05 11:02:41, kmillikin wrote:
> Might also just expose a const Field& accessor instead (also in
> StoreInstanceFieldComp below).  I've been doing something like that because
it's
> more flexible and less API surface.
> 
> I don't have strong opinions one way or the other except that it should feel
> uniform when we're all done adding classes to the IL.

Using Field type as suggested

Powered by Google App Engine
This is Rietveld 408576698