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

Issue 10910252: Improve register usage for StoreInstanceField. (Closed)

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

Description

Improve register usage for StoreInstanceField and StoreIndexed. No need for a temp if we don't emit a write barrier and use a immediate operand for the value if available. Committed: https://code.google.com/p/dart/source/detail?r=12310

Patch Set 1 #

Total comments: 2

Patch Set 2 : Addressed comment and improved StoreIndexed as well. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -24 lines) Patch
M runtime/vm/flow_graph_compiler.cc View 1 chunk +5 lines, -3 lines 0 comments Download
M runtime/vm/intermediate_language.h View 1 2 chunks +5 lines, -3 lines 0 comments Download
M runtime/vm/intermediate_language_ia32.cc View 1 3 chunks +17 lines, -9 lines 0 comments Download
M runtime/vm/intermediate_language_x64.cc View 1 3 chunks +15 lines, -9 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Florian Schneider
8 years, 3 months ago (2012-09-13 10:25:35 UTC) #1
Vyacheslav Egorov (Google)
lgtm https://codereview.chromium.org/10910252/diff/1/runtime/vm/intermediate_language_ia32.cc File runtime/vm/intermediate_language_ia32.cc (right): https://codereview.chromium.org/10910252/diff/1/runtime/vm/intermediate_language_ia32.cc#newcode956 runtime/vm/intermediate_language_ia32.cc:956: summary->set_in(1, (value()->NeedsStoreBuffer() && emit_store_barrier()) nice catch. maybe move ...
8 years, 3 months ago (2012-09-13 10:35:43 UTC) #2
Florian Schneider
8 years, 3 months ago (2012-09-13 10:46:07 UTC) #3
https://codereview.chromium.org/10910252/diff/1/runtime/vm/intermediate_langu...
File runtime/vm/intermediate_language_ia32.cc (right):

https://codereview.chromium.org/10910252/diff/1/runtime/vm/intermediate_langu...
runtime/vm/intermediate_language_ia32.cc:956: summary->set_in(1,
(value()->NeedsStoreBuffer() && emit_store_barrier())
On 2012/09/13 10:35:43, Vyacheslav Egorov (Google) wrote:
> nice catch.
> 
> maybe move this a && b to some helper method?

Done.

Powered by Google App Engine
This is Rietveld 408576698