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

Issue 2770753003: Migrate Object constructor to C++

Created:
3 years, 9 months ago by rongjie
Modified:
3 years, 8 months ago
CC:
v8-reviews_googlegroups.com, Yang
Target Ref:
refs/heads/master
Project:
v8
Visibility:
Public.

Description

Migrate Object constructor to C++ BUG=v8:6005

Patch Set 1 #

Patch Set 2 : Fix ObjectConstructor_ConstructStub #

Patch Set 3 : Merge branch 'master' into obj #

Patch Set 4 : Add ObjectConstructor_ConstructStub to CHECK #

Patch Set 5 : move builtin definition to correct header #

Patch Set 6 : Manually set ElementsKind #

Total comments: 6

Patch Set 7 : Ack comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -22 lines) Patch
M src/bootstrapper.cc View 1 2 3 4 5 6 3 chunks +16 lines, -6 lines 0 comments Download
M src/builtins/builtins-definitions.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M src/builtins/builtins-object.cc View 1 2 3 4 5 6 1 chunk +29 lines, -0 lines 0 comments Download
M src/crankshaft/hydrogen.cc View 1 2 3 4 1 chunk +4 lines, -1 line 0 comments Download
M src/debug/debug-evaluate.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M src/js/v8natives.js View 1 chunk +0 lines, -15 lines 0 comments Download

Messages

Total messages: 51 (39 generated)
rongjie
3 years, 9 months ago (2017-03-23 05:32:43 UTC) #2
rongjie
I am getting some CHECK fails concerning Crankshaft: out.gn\x64.debug\d8 --allow-natives-syntax --nofold-constants --crankshaft --noturbo test\mjsunit\mjsunit.js test\mjsunit\regress\regress-crbug-119926.js ...
3 years, 9 months ago (2017-03-23 06:54:09 UTC) #3
Benedikt Meurer
Awesome, lgtm​!
3 years, 9 months ago (2017-03-23 07:11:13 UTC) #4
rongjie
On 2017/03/23 07:11:13, Benedikt Meurer wrote: > Awesome, lgtm​! ? Many tests with --noturbo --crankshaft ...
3 years, 9 months ago (2017-03-23 07:14:39 UTC) #5
rongjie
My previous ObjectConstructor_ConstructStub was not following the spec correctly, fixed now. ObjectConstructor and ObjectConstructor_ConstructStub now ...
3 years, 9 months ago (2017-03-23 10:49:58 UTC) #14
Benedikt Meurer
+mvstanton
3 years, 9 months ago (2017-03-23 11:41:20 UTC) #17
rongjie
(Added two more crankshaft owners) (Sorry mvstanton@, I removed the asterisk to get tryjob. I ...
3 years, 8 months ago (2017-03-28 08:48:42 UTC) #29
rongjie
This is my last attempt to ask help in this CL. - Adding Builtins::kObjectConstructor_ConstructStub into ...
3 years, 8 months ago (2017-03-30 04:23:48 UTC) #47
Benedikt Meurer
Sorry for the delay. Will take a look now.
3 years, 8 months ago (2017-03-30 06:35:16 UTC) #48
Benedikt Meurer
Unfortunately it seems like there seems to be a fundamental issue here, where we now ...
3 years, 8 months ago (2017-03-30 08:33:22 UTC) #49
rongjie
Thanks for taking a look! > Unfortunately it seems like there seems to be a ...
3 years, 8 months ago (2017-03-30 09:08:22 UTC) #50
Benedikt Meurer
3 years, 8 months ago (2017-03-30 09:41:34 UTC) #51
On 2017/03/30 09:08:22, rongjie wrote:
> Thanks for taking a look!
> 
> > Unfortunately it seems like there seems to be a fundamental issue here,
where
> we now share the initial map of the Object function with the empty literal,
> which confuses the slack tracking.
> 
> I see some places where when the spec uses ObjectCreate(%ObjectPrototype%), V8
> uses isolate->factory()->NewJSObject(isolate->object_function()). If this is
> wrong, some tests should fail before this?
> 
> https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptors
>
https://cs.chromium.org/chromium/src/v8/src/builtins/builtins-object.cc?type=...

Yes. I'm not sure what the right approach will be to address this. We will have
to discuss this on the team first. Let's hold off on porting the Object
constructor for now, but please keep the CL up for future reference. And thanks
for the work/patience with this.

Powered by Google App Engine
This is Rietveld 408576698