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

Issue 7391001: Implement sealing, freezing, and related functions for proxies. (Closed)

Created:
9 years, 5 months ago by rossberg
Modified:
9 years, 5 months ago
CC:
v8-dev
Visibility:
Public.

Description

Implement sealing, freezing, and related functions for proxies. R=ager@chromium.org BUG=v8:1543 TEST= Committed: http://code.google.com/p/v8/source/detail?r=8673

Patch Set 1 #

Patch Set 2 : Oops, forgot to rebase branch. #

Total comments: 8

Patch Set 3 : Addressing Mads' comments, plus bug fix. #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+204 lines, -8 lines) Patch
M src/factory.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M src/factory.cc View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M src/heap.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M src/heap.cc View 1 2 2 chunks +31 lines, -2 lines 0 comments Download
M src/messages.js View 1 chunk +2 lines, -1 line 0 comments Download
M src/objects.h View 1 2 3 chunks +13 lines, -2 lines 0 comments Download
M src/objects.cc View 1 2 1 chunk +12 lines, -0 lines 2 comments Download
M src/objects-inl.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M src/runtime.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/runtime.cc View 1 1 chunk +8 lines, -0 lines 2 comments Download
M src/v8natives.js View 9 chunks +40 lines, -3 lines 0 comments Download
M test/mjsunit/harmony/proxies.js View 1 1 chunk +81 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
rossberg
9 years, 5 months ago (2011-07-15 15:02:13 UTC) #1
Mads Ager (chromium)
LGTM http://codereview.chromium.org/7391001/diff/3001/src/factory.h File src/factory.h (right): http://codereview.chromium.org/7391001/diff/3001/src/factory.h#newcode256 src/factory.h:256: void BecomeJSObject(Handle<JSReceiver> object); A comment explaining what this ...
9 years, 5 months ago (2011-07-17 10:43:47 UTC) #2
rossberg
Also removed reservation of in-object properties, and made sure that I initialize the padding slot. ...
9 years, 5 months ago (2011-07-18 10:53:53 UTC) #3
Mads Ager (chromium)
Even better. LGTM!
9 years, 5 months ago (2011-07-18 11:02:37 UTC) #4
Vyacheslav Egorov (Chromium)
DBC. Sorry did not send it earlier had poor connection. http://codereview.chromium.org/7391001/diff/9002/src/objects.cc File src/objects.cc (right): http://codereview.chromium.org/7391001/diff/9002/src/objects.cc#newcode2310 ...
9 years, 5 months ago (2011-07-19 04:07:56 UTC) #5
rossberg
9 years, 5 months ago (2011-07-20 09:11:09 UTC) #6
Thanks Slava. Addressed in http://codereview.chromium.org/7460009

http://codereview.chromium.org/7391001/diff/9002/src/objects.cc
File src/objects.cc (right):

http://codereview.chromium.org/7391001/diff/9002/src/objects.cc#newcode2310
src/objects.cc:2310: ASSERT(IsJSObject());
On 2011/07/19 04:07:57, Vyacheslav Egorov wrote:
> self->IsJSObject() as we have GC above

Done.

http://codereview.chromium.org/7391001/diff/9002/src/runtime.cc
File src/runtime.cc (right):

http://codereview.chromium.org/7391001/diff/9002/src/runtime.cc#newcode622
src/runtime.cc:622: return proxy;
On 2011/07/19 04:07:57, Vyacheslav Egorov wrote:
> You are potentially returning invalid pointer here cause Fix can cause a GC
> (though it does not matter cause return value is ignored atm).
> 
> Better return undefined I think

Done.

Powered by Google App Engine
This is Rietveld 408576698