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

Issue 1137693003: Added constructor call on object in InstantiateObject method (Closed)

Created:
5 years, 7 months ago by dtalley
Modified:
5 years, 6 months ago
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Added constructor call on object in InstantiateObject method I found after upgrading from 4.2.2 where apinatives.js still existed to 4.4.56 where everything had been converted to C++ in api-natives.cc, my constructors for ObjectTemplate instantiated objects were no longer being called. After investigation, I noticed in apinatives.js that a new call would handle that, but there was no corresponding constructor call in api-natives.cc (or anywhere else along the chain of InstantiateObject), so I added a call to Execution::Call to actually construct the object. Forgive me if that isn't the right place to add it (InitializeBody in objects-inl.h also looked like a good place), or if there's a reason constructors are not being called. I also added myself to the AUTHORS file in this CL. Committed: https://crrev.com/e61a957b2a9726294cdd2802a6a2b6e3a9ef657d Cr-Commit-Position: refs/heads/master@{#29076}

Patch Set 1 #

Patch Set 2 : Added Check() call after Execution::Call in InstantiateObject #

Patch Set 3 : Moving comment one line down over its original subject #

Patch Set 4 : Added check around constructor call in InstantiateObject to execute only if a constructor is provid… #

Patch Set 5 : Wrapped Execution::Call in RETURN_ON_EXCEPTION #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -0 lines) Patch
M AUTHORS View 1 chunk +1 line, -0 lines 0 comments Download
M src/api-natives.cc View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (2 generated)
dtalley
5 years, 7 months ago (2015-05-08 15:36:21 UTC) #1
dtalley
5 years, 7 months ago (2015-05-17 18:47:05 UTC) #2
dtalley
Added a Check() call after Execution::Call to fix the build errors (hopefully)
5 years, 7 months ago (2015-05-18 13:58:12 UTC) #3
dtalley
I'm not sure how that layout test failure relates to my patch. Looking back through ...
5 years, 7 months ago (2015-05-19 15:07:23 UTC) #4
Sven Panne
Hmmm, this really looks like an omission on the C++ side, but I'm not 100% ...
5 years, 6 months ago (2015-05-28 12:51:04 UTC) #6
dtalley
On 2015/05/28 12:51:04, Sven Panne wrote: > Hmmm, this really looks like an omission on ...
5 years, 6 months ago (2015-05-28 16:48:30 UTC) #7
dtalley
On 2015/05/28 16:48:30, dtalley wrote: > On 2015/05/28 12:51:04, Sven Panne wrote: > > Hmmm, ...
5 years, 6 months ago (2015-06-15 20:23:54 UTC) #8
Toon Verwaest
Sorry, I've been OOO for 2 weeks. LGTM, thanks for fixing this.
5 years, 6 months ago (2015-06-17 09:58:48 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1137693003/80001
5 years, 6 months ago (2015-06-17 10:01:24 UTC) #11
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 6 months ago (2015-06-17 10:24:08 UTC) #12
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/e61a957b2a9726294cdd2802a6a2b6e3a9ef657d Cr-Commit-Position: refs/heads/master@{#29076}
5 years, 6 months ago (2015-06-17 10:24:20 UTC) #13
Michael Achenbach
A revert of this CL (patchset #5 id:80001) has been created in https://codereview.chromium.org/1188233002/ by machenbach@chromium.org. ...
5 years, 6 months ago (2015-06-17 12:20:30 UTC) #14
dtalley
5 years, 6 months ago (2015-06-22 06:27:01 UTC) #15
Message was sent while issue was closed.
On 2015/06/17 12:20:30, Michael Achenbach wrote:
> A revert of this CL (patchset #5 id:80001) has been created in
> https://codereview.chromium.org/1188233002/ by mailto:machenbach@chromium.org.
> 
> The reason for reverting is: [Sheriff] This breaks layout test expectations:
>
http://build.chromium.org/p/client.v8.fyi/builders/V8-Blink%20Linux%2032/buil...
> 
> See:
>
https://storage.googleapis.com/chromium-layout-test-archives/V8-Blink_Linux_3...
> 
> Please land a needsmanualrebaseline change on the blink-side before relanding
> this, if the change was intended.
> 
> Please include a blink trybot on relanding this..

I don't think the failed layout test is relevant to the change, and in fact I
still think that particular test is incorrectly testing for pass or fail.

Powered by Google App Engine
This is Rietveld 408576698