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

Issue 7298003: Add fake data dependencies (instead of disabling GVN) to fix code motion (Closed)

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

Description

Add fake data dependencies (instead of disabling GVN) to fix code motion for HInstructions used in polymorphic array access code. TEST=existing tests pass. Committed: http://code.google.com/p/v8/source/detail?r=8699

Patch Set 1 #

Patch Set 2 : stricter instruction ordering #

Total comments: 9

Patch Set 3 : rebase; handle HLoadElements differently #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -79 lines) Patch
M src/hydrogen.cc View 1 2 9 chunks +25 lines, -48 lines 0 comments Download
M src/hydrogen-instructions.h View 1 2 5 chunks +6 lines, -14 lines 0 comments Download
M src/hydrogen-instructions.cc View 1 2 2 chunks +0 lines, -17 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Jakob Kummerow
PTAL. I haven't had time yet to manually inspect the machine code that gets generated ...
9 years, 5 months ago (2011-07-01 11:55:48 UTC) #1
Jakob Kummerow
Looking at the generated machine code I found that some type-dependent instructions were still hoisted ...
9 years, 5 months ago (2011-07-08 11:49:20 UTC) #2
Kevin Millikin (Chromium)
LGTM. http://codereview.chromium.org/7298003/diff/3001/src/hydrogen-instructions.h File src/hydrogen-instructions.h (right): http://codereview.chromium.org/7298003/diff/3001/src/hydrogen-instructions.h#newcode2401 src/hydrogen-instructions.h:2401: explicit HJSArrayLength(HValue* value, HValue* typecheck) No need for ...
9 years, 5 months ago (2011-07-11 15:03:53 UTC) #3
Jakob Kummerow
I finally got around to rebasing this CL onto current trunk and addressing Kevin's comments. ...
9 years, 5 months ago (2011-07-19 14:55:43 UTC) #4
fschneider
9 years, 5 months ago (2011-07-20 11:24:37 UTC) #5
LGTM.

This is the right direction. We could do the same for the bounds-check and
others. I'd assume that the cost of additional HValue-operands is not noticable.

Powered by Google App Engine
This is Rietveld 408576698