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 get rid of this bailout we also additional code for for
HLoadContextSlot to return undefined if we find the hole-value:

1. Load value
2. Check if value is the_hole_value.
3. If no, return value.
4. If yes, return undefined_value.

http://codereview.chromium.org/8857001/diff/6002/src/hydrogen.cc
File src/hydrogen.cc (right):

http://codereview.chromium.org/8857001/diff/6002/src/hydrogen.cc#newcode4034
src/hydrogen.cc:4034: if (var->is_const_mode()) {
Here I would write

if (var->mode() == CONST)

to handle the CONST case only.

http://codereview.chromium.org/8857001/

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to