Also removed reservation of in-object properties, and made sure that I
initialize the padding slot.


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);
On 2011/07/17 10:43:47, Mads Ager wrote:
A comment explaining what this operation does would be nice. Also, I
guess the
object has to be a proxy or function proxy? If that is the case I
think we
should restrict the type from JSReceiver to JSProxy for the argument.

Done.

http://codereview.chromium.org/7391001/diff/3001/src/heap.cc
File src/heap.cc (right):

http://codereview.chromium.org/7391001/diff/3001/src/heap.cc#newcode3282
src/heap.cc:3282: MaybeObject* Heap::AllocateGlobalObject(JSFunction*
constructor) {
On 2011/07/17 10:43:47, Mads Ager wrote:
Accidental edit. :-)

Done.

http://codereview.chromium.org/7391001/diff/3001/src/heap.h
File src/heap.h (right):

http://codereview.chromium.org/7391001/diff/3001/src/heap.h#newcode447
src/heap.h:447: MUST_USE_RESULT MaybeObject*
ReinitializeJSReceiverAsJSObject(
On 2011/07/17 10:43:47, Mads Ager wrote:
JSReceiver -> JSProxy

We don't need this operation for anything else and the current
implementation
restrictions on the size of the input means that it will not work for
much else.
Let's reflect that in the type of the input?

Done.

http://codereview.chromium.org/7391001/diff/3001/test/mjsunit/harmony/proxies.js
File test/mjsunit/harmony/proxies.js (right):

http://codereview.chromium.org/7391001/diff/3001/test/mjsunit/harmony/proxies.js#newcode589
test/mjsunit/harmony/proxies.js:589: TestFix(["a", "b", "c", "d", "zz"],
{
On 2011/07/17 10:43:47, Mads Ager wrote:
I would add a newline between each TestFix invocation here to make it
easier to
read.

Done.

http://codereview.chromium.org/7391001/

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

Reply via email to