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

Issue 10543094: Eliminate redundant smi checks (Closed)

Created:
8 years, 6 months ago by danno
Modified:
8 years, 6 months ago
CC:
v8-dev
Visibility:
Public.

Description

Patch Set 1 #

Patch Set 2 : deactivate packed arrays #

Patch Set 3 : Merge with latest #

Patch Set 4 : Delay SMI checks as long as possible #

Total comments: 17

Patch Set 5 : Review feedback #

Patch Set 6 : Review feedback #

Total comments: 2

Patch Set 7 : Final review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+125 lines, -56 lines) Patch
M src/arm/lithium-arm.cc View 1 2 3 4 5 1 chunk +2 lines, -3 lines 0 comments Download
M src/arm/lithium-codegen-arm.cc View 1 2 3 4 5 1 chunk +8 lines, -3 lines 0 comments Download
M src/hydrogen.cc View 1 2 3 4 5 6 5 chunks +7 lines, -6 lines 0 comments Download
M src/hydrogen-instructions.h View 1 2 3 4 5 6 chunks +39 lines, -25 lines 0 comments Download
M src/hydrogen-instructions.cc View 1 2 3 4 5 6 2 chunks +3 lines, -4 lines 0 comments Download
M src/ia32/lithium-codegen-ia32.cc View 1 2 3 4 2 chunks +11 lines, -2 lines 0 comments Download
M src/ia32/lithium-ia32.cc View 1 2 3 4 5 2 chunks +3 lines, -4 lines 0 comments Download
M src/ia32/macro-assembler-ia32.cc View 2 chunks +1 line, -3 lines 0 comments Download
M src/x64/lithium-codegen-x64.cc View 1 2 3 4 5 2 chunks +11 lines, -2 lines 0 comments Download
M src/x64/lithium-x64.cc View 1 2 3 4 5 1 chunk +3 lines, -4 lines 0 comments Download
A test/mjsunit/fast-array-length.js View 1 2 3 4 1 chunk +37 lines, -0 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
danno
8 years, 6 months ago (2012-06-11 14:59:58 UTC) #1
Michael Starzinger
First round. https://chromiumcodereview.appspot.com/10543094/diff/6001/src/hydrogen-instructions.cc File src/hydrogen-instructions.cc (right): https://chromiumcodereview.appspot.com/10543094/diff/6001/src/hydrogen-instructions.cc#newcode1715 src/hydrogen-instructions.cc:1715: if (IsFastHoleyElementsKind(elements_kind())) { It seems as if ...
8 years, 6 months ago (2012-06-12 08:10:43 UTC) #2
Florian Schneider
drive-by: https://chromiumcodereview.appspot.com/10543094/diff/6001/src/ia32/lithium-codegen-ia32.cc File src/ia32/lithium-codegen-ia32.cc (right): https://chromiumcodereview.appspot.com/10543094/diff/6001/src/ia32/lithium-codegen-ia32.cc#newcode3883 src/ia32/lithium-codegen-ia32.cc:3883: #if DEBUG We usually use FLAG_debug_code to emit ...
8 years, 6 months ago (2012-06-12 09:01:13 UTC) #3
danno
PTAL http://codereview.chromium.org/10543094/diff/6001/src/hydrogen-instructions.cc File src/hydrogen-instructions.cc (right): http://codereview.chromium.org/10543094/diff/6001/src/hydrogen-instructions.cc#newcode1715 src/hydrogen-instructions.cc:1715: if (IsFastHoleyElementsKind(elements_kind())) { On 2012/06/12 08:10:43, Michael Starzinger ...
8 years, 6 months ago (2012-06-12 09:59:22 UTC) #4
Michael Starzinger
https://chromiumcodereview.appspot.com/10543094/diff/6001/src/hydrogen-instructions.h File src/hydrogen-instructions.h (right): https://chromiumcodereview.appspot.com/10543094/diff/6001/src/hydrogen-instructions.h#newcode622 src/hydrogen-instructions.h:622: virtual bool IsValueTaggedSmi() const { return false; } Yes, ...
8 years, 6 months ago (2012-06-12 10:48:05 UTC) #5
danno
PTAL
8 years, 6 months ago (2012-06-12 11:18:44 UTC) #6
Michael Starzinger
LGTM (with one final nit). https://chromiumcodereview.appspot.com/10543094/diff/7004/src/hydrogen-instructions.cc File src/hydrogen-instructions.cc (right): https://chromiumcodereview.appspot.com/10543094/diff/7004/src/hydrogen-instructions.cc#newcode1715 src/hydrogen-instructions.cc:1715: if (IsFastHoleyElementsKind(elements_kind())) { We ...
8 years, 6 months ago (2012-06-12 11:30:17 UTC) #7
danno
8 years, 6 months ago (2012-06-12 12:16:06 UTC) #8
Landing

http://codereview.chromium.org/10543094/diff/7004/src/hydrogen-instructions.cc
File src/hydrogen-instructions.cc (right):

http://codereview.chromium.org/10543094/diff/7004/src/hydrogen-instructions.c...
src/hydrogen-instructions.cc:1715: if (IsFastHoleyElementsKind(elements_kind()))
{
On 2012/06/12 11:30:17, Michael Starzinger wrote:
> We could base the output of "check_hole" on the result of RequiresHoleCheck()
> below, to get accurate debug output. Not sure if that helps though.

Done.

Powered by Google App Engine
This is Rietveld 408576698