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

Issue 8857001: [hydrogen] don't bailout assignments to consts (Closed)

Created:
9 years ago by indutny
Modified:
9 years ago
CC:
v8-dev
Base URL:
gh:v8/v8@master
Visibility:
Public.

Description

[hydrogen] don't bailout assignments to consts If constant variable is allocated in CONTEXT Patch by Fedor Indutny <fedor.indutny@gmail.com>;. BUG= TEST= R=vegorov@chromium.org Committed: http://code.google.com/p/v8/source/detail?r=10244

Patch Set 1 #

Patch Set 2 : fixed x64 build #

Total comments: 2

Patch Set 3 : fixed naming, added test #

Total comments: 2

Patch Set 4 : RequiresHoleCheck for LoadContextSlot #

Patch Set 5 : [arm] fixed illegal access errorwq #

Total comments: 1

Patch Set 6 : rebased on bleeding_edge #

Total comments: 10

Patch Set 7 : fix issues #

Total comments: 4

Patch Set 8 : [mips] fixed branching in LoadContextSlot #

Patch Set 9 : style fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+210 lines, -44 lines) Patch
M src/arm/lithium-codegen-arm.cc View 1 2 3 4 5 6 3 chunks +18 lines, -4 lines 0 comments Download
M src/hydrogen.cc View 1 2 3 4 5 6 7 8 9 chunks +54 lines, -25 lines 0 comments Download
M src/hydrogen-instructions.h View 1 2 3 4 5 6 3 chunks +31 lines, -8 lines 0 comments Download
M src/ia32/lithium-codegen-ia32.cc View 1 2 3 4 5 6 3 chunks +20 lines, -2 lines 0 comments Download
src/mips/lithium-codegen-mips.cc View 1 2 3 4 5 6 7 3 chunks +23 lines, -3 lines 0 comments Download
M src/x64/lithium-codegen-x64.cc View 1 2 3 4 5 6 7 8 3 chunks +19 lines, -2 lines 0 comments Download
A test/mjsunit/function-named-self-reference.js View 1 2 1 chunk +45 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
fschneider
Approach looks OK. Could you add a unit test that makes sure that it triggers ...
9 years ago (2011-12-08 13:01:30 UTC) #1
indutny
Everything fixed, and I noticed that it was anyway bailouting on self-referencing named function, because ...
9 years ago (2011-12-08 19:05:22 UTC) #2
indutny
Sorry, bad grammar, never write replies too late :) hope everything is clear from my ...
9 years ago (2011-12-09 08:59:34 UTC) #3
fschneider
http://codereview.chromium.org/8857001/diff/6002/src/hydrogen.cc File src/hydrogen.cc (left): http://codereview.chromium.org/8857001/diff/6002/src/hydrogen.cc#oldcode3292 src/hydrogen.cc:3292: return Bailout("reference to const context slot"); In order to ...
9 years ago (2011-12-09 09:37:53 UTC) #4
indutny
Updated with fixes
9 years ago (2011-12-09 10:19:04 UTC) #5
fschneider
On 2011/12/09 10:19:04, indutny wrote: > Updated with fixes The new test still seems to ...
9 years ago (2011-12-09 13:14:14 UTC) #6
indutny
Not right now, but going to investigate...
9 years ago (2011-12-09 13:38:33 UTC) #7
indutny
Fixed, I was checking value, not target in StoreContextSlot.
9 years ago (2011-12-09 19:09:07 UTC) #8
indutny
any status update?
9 years ago (2011-12-12 09:24:17 UTC) #9
fschneider
Almost there - there is a conflicting change, so you'll need some adjustments in your ...
9 years ago (2011-12-12 09:55:55 UTC) #10
indutny
Done!
9 years ago (2011-12-12 11:47:23 UTC) #11
Steven
Thanks for submitting this CL. I have some drive by comments below. http://codereview.chromium.org/8857001/diff/17002/src/arm/lithium-codegen-arm.cc File src/arm/lithium-codegen-arm.cc ...
9 years ago (2011-12-12 13:12:44 UTC) #12
indutny
Done. http://codereview.chromium.org/8857001/diff/17002/src/hydrogen-instructions.h File src/hydrogen-instructions.h (right): http://codereview.chromium.org/8857001/diff/17002/src/hydrogen-instructions.h#newcode3549 src/hydrogen-instructions.h:3549: return mode_ == kCheckIgnoreAssignment; oh, sorry. this was ...
9 years ago (2011-12-12 13:59:05 UTC) #13
fschneider
http://codereview.chromium.org/8857001/diff/19008/src/hydrogen.cc File src/hydrogen.cc (right): http://codereview.chromium.org/8857001/diff/19008/src/hydrogen.cc#newcode3853 src/hydrogen.cc:3853: UNREACHABLE(); Maybe a short comment that this is checked ...
9 years ago (2011-12-13 16:15:00 UTC) #14
indutny
Done
9 years ago (2011-12-13 16:49:28 UTC) #15
fschneider
9 years ago (2011-12-13 16:55:10 UTC) #16
LGTM.

I'll land the patch.

Powered by Google App Engine
This is Rietveld 408576698