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

Issue 10825176: Refactor our IL instruction for static setters. (Closed)

Created:
8 years, 4 months ago by Florian Schneider
Modified:
8 years, 4 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Refactor our IL instruction for static setters. We do not need a separate IL instruction anymore. Instead I generate a normal static call and save the result in a temporary local if it is needed. Committed: https://code.google.com/p/dart/source/detail?r=10222

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -104 lines) Patch
M vm/flow_graph_allocator.h View 1 chunk +1 line, -1 line 0 comments Download
M vm/flow_graph_builder.h View 2 chunks +3 lines, -0 lines 0 comments Download
M vm/flow_graph_builder.cc View 2 chunks +35 lines, -6 lines 0 comments Download
M vm/intermediate_language.h View 2 chunks +0 lines, -33 lines 0 comments Download
M vm/intermediate_language.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M vm/intermediate_language_ia32.cc View 1 chunk +0 lines, -29 lines 0 comments Download
M vm/intermediate_language_x64.cc View 1 chunk +0 lines, -29 lines 0 comments Download
M vm/parser.cc View 1 chunk +3 lines, -1 line 2 comments Download

Messages

Total messages: 4 (0 generated)
Florian Schneider
8 years, 4 months ago (2012-08-03 10:41:10 UTC) #1
Vyacheslav Egorov (Google)
lgtm
8 years, 4 months ago (2012-08-03 10:50:00 UTC) #2
hausner
DBC https://chromiumcodereview.appspot.com/10825176/diff/1/vm/parser.cc File vm/parser.cc (right): https://chromiumcodereview.appspot.com/10825176/diff/1/vm/parser.cc#newcode6475 vm/parser.cc:6475: result->IsStaticSetterNode())) { FWIW, I don't think that for ...
8 years, 4 months ago (2012-08-03 22:32:52 UTC) #3
Florian Schneider
8 years, 4 months ago (2012-08-06 09:06:25 UTC) #4
https://chromiumcodereview.appspot.com/10825176/diff/1/vm/parser.cc
File vm/parser.cc (right):

https://chromiumcodereview.appspot.com/10825176/diff/1/vm/parser.cc#newcode6475
vm/parser.cc:6475: result->IsStaticSetterNode())) {
On 2012/08/03 22:32:52, hausner wrote:
> FWIW, I don't think that for static setters you need to ensure that a
temporary
> variable is available. We don't do any gymnastics with static setters in
> PrepareCompoundAssignmentNodes().

We still need to preserve the value if the setter expression occurs in a value
context: var x = A.foo = 123.

Powered by Google App Engine
This is Rietveld 408576698