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

Issue 6902108: Implement CallAsConstructor method for Object in the API (Closed)

Created:
9 years, 8 months ago by Peter Varga
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Implement CallAsConstructor method for Object in the API Patch by Peter Varga. BUG=v8:1348 TEST=cctest/test-api/ConstructorForObject Committed: http://code.google.com/p/v8/source/detail?r=7803

Patch Set 1 #

Total comments: 5

Patch Set 2 : Add exception handling and some new test cases #

Total comments: 4

Patch Set 3 : Fix patch as suggested #

Patch Set 4 : Add missing testcase #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+274 lines, -8 lines) Patch
M include/v8.h View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M src/api.cc View 1 2 2 chunks +37 lines, -2 lines 2 comments Download
M src/execution.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M src/execution.cc View 1 1 chunk +28 lines, -0 lines 0 comments Download
M test/cctest/test-api.cc View 1 2 3 4 chunks +199 lines, -6 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Peter Varga
9 years, 8 months ago (2011-04-28 09:46:46 UTC) #1
Mads Ager (chromium)
Similar comments as to the Call patch. Is this driven by an actual need for ...
9 years, 8 months ago (2011-04-28 12:14:42 UTC) #2
Peter Varga
Fix patch like in case of the Object::CallAsFunction patch. The order of results is reverted ...
9 years, 7 months ago (2011-05-04 17:41:41 UTC) #3
Peter Varga
Sorry, It seems this patch is also failing in debug mode. I need to do ...
9 years, 7 months ago (2011-05-05 08:34:16 UTC) #4
Mads Ager (chromium)
http://codereview.chromium.org/6902108/diff/5001/include/v8.h File include/v8.h (right): http://codereview.chromium.org/6902108/diff/5001/include/v8.h#newcode1623 include/v8.h:1623: Handle<Value> argv[]) const; I would remove the const here ...
9 years, 7 months ago (2011-05-05 09:03:33 UTC) #5
Peter Varga
First of all thanks for reviews. Here are some things which aren't clear for me: ...
9 years, 7 months ago (2011-05-05 09:54:03 UTC) #6
Mads Ager (chromium)
On 2011/05/05 09:54:03, Peter Varga wrote: > First of all thanks for reviews. > Here ...
9 years, 7 months ago (2011-05-05 10:25:00 UTC) #7
Peter Varga
9 years, 7 months ago (2011-05-05 16:19:57 UTC) #8
Peter Varga
9 years, 7 months ago (2011-05-05 17:18:41 UTC) #9
Mads Ager (chromium)
9 years, 7 months ago (2011-05-06 10:41:47 UTC) #10
LGTM, I'll land.

http://codereview.chromium.org/6902108/diff/5008/src/api.cc
File src/api.cc (right):

http://codereview.chromium.org/6902108/diff/5008/src/api.cc#newcode3300
src/api.cc:3300: i::Handle<i::Object> returned;
I would move these to where they are used. I'll take care of than when landing.

http://codereview.chromium.org/6902108/diff/5008/src/api.cc#newcode3308
src/api.cc:3308: i::Handle<i::JSObject>::cast(returned)));
I would format this differently. I'll take care of that when landing.

Powered by Google App Engine
This is Rietveld 408576698