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

Issue 6450003: Make sure that we do not call is_extensible on the global proxy.... (Closed)

Created:
9 years, 10 months ago by Rico
Modified:
9 years, 6 months ago
CC:
v8-dev
Visibility:
Public.

Description

Make sure that we do not call is_extensible on the global proxy. When calling Object.isExtensible we did not do a check for the global js proxy. This caused the check on the extensible bit on the map to return true, even when the bit was set to false on the global js object. Committed: http://code.google.com/p/v8/source/detail?r=6677

Patch Set 1 #

Total comments: 6

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -1 line) Patch
M src/runtime.cc View 1 1 chunk +8 lines, -1 line 0 comments Download
A test/mjsunit/regress/regress-1120.js View 1 chunk +33 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Rico
9 years, 10 months ago (2011-02-08 12:59:15 UTC) #1
Mads Ager (chromium)
http://codereview.chromium.org/6450003/diff/1/src/runtime.cc File src/runtime.cc (right): http://codereview.chromium.org/6450003/diff/1/src/runtime.cc#newcode881 src/runtime.cc:881: static MaybeObject* Runtime_PreventExtensions(Arguments args) { Do you need it ...
9 years, 10 months ago (2011-02-08 13:04:22 UTC) #2
Mads Ager (chromium)
And LGTM with that fixed. On 2011/02/08 13:04:22, Mads Ager wrote: > http://codereview.chromium.org/6450003/diff/1/src/runtime.cc > File ...
9 years, 10 months ago (2011-02-08 13:04:34 UTC) #3
Rico
9 years, 10 months ago (2011-02-08 13:08:58 UTC) #4
http://codereview.chromium.org/6450003/diff/1/src/runtime.cc
File src/runtime.cc (right):

http://codereview.chromium.org/6450003/diff/1/src/runtime.cc#newcode881
src/runtime.cc:881: static MaybeObject* Runtime_PreventExtensions(Arguments
args) {
On 2011/02/08 13:04:22, Mads Ager wrote:
> Do you need it here too?
No, we do this in PreventExtensions in objects.cc

http://codereview.chromium.org/6450003/diff/1/src/runtime.cc#newcode892
src/runtime.cc:892: if (proto->IsNull()) return obj;
On 2011/02/08 13:04:22, Mads Ager wrote:
> Return false? Otherwise this will be interpreted as true.

Done.

http://codereview.chromium.org/6450003/diff/1/src/runtime.cc#newcode896
src/runtime.cc:896: return obj->map()->is_extensible() ?  Heap::true_value()
On 2011/02/08 13:04:22, Mads Ager wrote:
> Remove extra space.

Done.

Powered by Google App Engine
This is Rietveld 408576698