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

Issue 12295017: Use compile type to improve stores to Int32List and Uint32List on ia32. (Closed)

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

Description

Use compile type to improve stores to Int32List and Uint32List on ia32. If the value stored is a smi, we just untag and store it. There is no need to unbox it into an XMM register first. Committed: https://code.google.com/p/dart/source/detail?r=18647

Patch Set 1 #

Total comments: 2

Patch Set 2 : addressed comment #

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

Messages

Total messages: 3 (0 generated)
Florian Schneider
7 years, 10 months ago (2013-02-18 16:08:52 UTC) #1
Vyacheslav Egorov (Google)
lgtm https://codereview.chromium.org/12295017/diff/1/runtime/vm/intermediate_language_ia32.cc File runtime/vm/intermediate_language_ia32.cc (right): https://codereview.chromium.org/12295017/diff/1/runtime/vm/intermediate_language_ia32.cc#newcode1492 runtime/vm/intermediate_language_ia32.cc:1492: if (RequiredInputRepresentation(2) == kTagged) { I suggest you ...
7 years, 10 months ago (2013-02-18 16:21:44 UTC) #2
Florian Schneider
7 years, 10 months ago (2013-02-18 16:33:31 UTC) #3
https://codereview.chromium.org/12295017/diff/1/runtime/vm/intermediate_langu...
File runtime/vm/intermediate_language_ia32.cc (right):

https://codereview.chromium.org/12295017/diff/1/runtime/vm/intermediate_langu...
runtime/vm/intermediate_language_ia32.cc:1492: if
(RequiredInputRepresentation(2) == kTagged) {
On 2013/02/18 16:21:44, Vyacheslav Egorov (Google) wrote:
> I suggest you encapsulate this check (and two above) in a function called
> IsSmiValue() or similar. 

Done.

Powered by Google App Engine
This is Rietveld 408576698