Chromium Code Reviews

Issue 8054008: Improve our simple elimination of hole checks. (Closed)

Created:
9 years, 2 months ago by fschneider
Modified:
9 years, 2 months ago
Reviewers:
Kevin Millikin (Chromium)
CC:
v8-dev
Visibility:
Public.

Description

Improve our simple elimination of hole checks. Currently we avoid checking for the hole value after array loads, if the result is only used by instructions that definitely deoptimize in case of the hole value (HChange instructions). This change performs the same procedure for loading from deleteable/read-only global variable where we can also avoid the check in the same cases. Committed: http://code.google.com/p/v8/source/detail?r=9453

Patch Set 1 #

Total comments: 1

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Stats (+62 lines, -62 lines)
M src/arm/lithium-arm.cc View 2 chunks +2 lines, -2 lines 0 comments
M src/arm/lithium-codegen-arm.cc View 3 chunks +5 lines, -9 lines 0 comments
M src/hydrogen.cc View 2 chunks +4 lines, -4 lines 0 comments
M src/hydrogen-instructions.h View 6 chunks +11 lines, -11 lines 0 comments
M src/hydrogen-instructions.cc View 4 chunks +15 lines, -7 lines 0 comments
M src/ia32/lithium-codegen-ia32.cc View 3 chunks +10 lines, -12 lines 0 comments
M src/ia32/lithium-ia32.cc View 2 chunks +2 lines, -2 lines 0 comments
M src/x64/lithium-codegen-x64.cc View 3 chunks +11 lines, -13 lines 0 comments
M src/x64/lithium-x64.cc View 2 chunks +2 lines, -2 lines 0 comments

Messages

Total messages: 3 (0 generated)
fschneider
9 years, 2 months ago (2011-09-27 11:42:23 UTC) #1
Kevin Millikin (Chromium)
LGTM, but I have one suggestion for improvement below. http://codereview.chromium.org/8054008/diff/1/src/hydrogen-instructions.h File src/hydrogen-instructions.h (right): http://codereview.chromium.org/8054008/diff/1/src/hydrogen-instructions.h#newcode3204 src/hydrogen-instructions.h:3204: ...
9 years, 2 months ago (2011-09-27 12:01:04 UTC) #2
fschneider
9 years, 2 months ago (2011-09-27 12:36:18 UTC) #3
Done. Landing.

Powered by Google App Engine