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

Issue 1448933002: Introduce a BuiltinsConstructStub that sets up new.target and does a [[call]] per ES6 9.3.2 (Closed)

Created:
5 years, 1 month ago by Toon Verwaest
Modified:
5 years, 1 month ago
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Introduce a BuiltinsConstructStub that sets up new.target and does a [[call]] per ES6 9.3.2 BUG= Committed: https://crrev.com/469d9bfa8de49477dc4222ef9e0eb7d3d0d43d36 Cr-Commit-Position: refs/heads/master@{#32120}

Patch Set 1 : #

Total comments: 4

Patch Set 2 : Add tests #

Patch Set 3 : Add DataView test #

Patch Set 4 : Another test #

Patch Set 5 : #

Patch Set 6 : Addressed comments #

Patch Set 7 : Fix RegExp and DataView #

Patch Set 8 : Adding regexp tests #

Patch Set 9 : More RegExp tests #

Patch Set 10 : More accurate regexp #

Total comments: 9

Patch Set 11 : Addressed comment #

Patch Set 12 : #

Patch Set 13 : #

Patch Set 14 : #

Patch Set 15 : #

Patch Set 16 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1875 lines, -1818 lines) Patch
M src/api.cc View 1 2 3 4 5 6 1 chunk +3 lines, -4 lines 0 comments Download
M src/arm/builtins-arm.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +205 lines, -247 lines 0 comments Download
M src/arm64/builtins-arm64.cc View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +229 lines, -272 lines 0 comments Download
M src/bootstrapper.cc View 1 2 3 4 5 6 8 chunks +35 lines, -4 lines 0 comments Download
M src/builtins.h View 2 chunks +2 lines, -2 lines 0 comments Download
M src/contexts.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/crankshaft/hydrogen.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M src/execution.h View 1 2 3 4 5 6 1 chunk +0 lines, -4 lines 0 comments Download
M src/execution.cc View 1 2 3 4 5 6 1 chunk +0 lines, -14 lines 0 comments Download
M src/factory.cc View 1 chunk +2 lines, -6 lines 0 comments Download
M src/heap/heap.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/heap/objects-visiting.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/ia32/builtins-ia32.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +198 lines, -232 lines 0 comments Download
M src/js/date.js View 4 chunks +10 lines, -4 lines 0 comments Download
M src/js/macros.py View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -1 line 0 comments Download
M src/js/promise.js View 2 chunks +9 lines, -3 lines 0 comments Download
M src/js/proxy.js View 2 chunks +1 line, -5 lines 0 comments Download
M src/js/regexp.js View 1 2 3 4 5 6 7 8 9 10 2 chunks +53 lines, -38 lines 0 comments Download
M src/js/typedarray.js View 1 chunk +23 lines, -21 lines 0 comments Download
M src/js/v8natives.js View 1 chunk +5 lines, -5 lines 0 comments Download
M src/mips/builtins-mips.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +204 lines, -246 lines 0 comments Download
M src/mips64/builtins-mips64.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +207 lines, -249 lines 0 comments Download
M src/objects.h View 1 2 3 4 5 6 3 chunks +8 lines, -0 lines 0 comments Download
M src/objects.cc View 1 2 3 4 5 6 1 chunk +154 lines, -0 lines 0 comments Download
M src/objects-body-descriptors-inl.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/objects-debug.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/objects-printer.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/regexp/jsregexp.h View 1 2 3 4 5 6 1 chunk +0 lines, -7 lines 0 comments Download
M src/regexp/jsregexp.cc View 1 2 3 4 5 6 1 chunk +0 lines, -10 lines 0 comments Download
M src/runtime/runtime.h View 1 chunk +1 line, -1 line 0 comments Download
M src/runtime/runtime-classes.cc View 1 2 3 4 5 1 chunk +5 lines, -1 line 0 comments Download
M src/runtime/runtime-object.cc View 2 chunks +27 lines, -29 lines 0 comments Download
M src/runtime/runtime-proxy.cc View 2 chunks +5 lines, -8 lines 0 comments Download
M src/runtime/runtime-regexp.cc View 1 2 3 4 5 6 2 chunks +7 lines, -138 lines 0 comments Download
M src/types.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/x64/builtins-x64.cc View 1 2 3 4 5 4 chunks +187 lines, -236 lines 0 comments Download
M test/mjsunit/es6/classes-subclass-builtins.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +131 lines, -1 line 0 comments Download
A test/mjsunit/es6/regexp-constructor.js View 1 2 3 4 5 6 7 8 9 1 chunk +99 lines, -0 lines 0 comments Download
M test/mjsunit/mjsunit.js View 1 2 4 chunks +44 lines, -16 lines 0 comments Download
M test/mjsunit/regexp.js View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/regress/regress-crbug-435825.js View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M test/test262/test262.status View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +0 lines, -6 lines 0 comments Download
M test/webkit/fast/regex/constructor.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -2 lines 0 comments Download
M test/webkit/fast/regex/constructor-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -2 lines 0 comments Download
M test/webkit/regexp-compile.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -1 line 0 comments Download
M test/webkit/regexp-compile-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 44 (23 generated)
Toon Verwaest
WIP
5 years, 1 month ago (2015-11-16 17:11:02 UTC) #3
Toon Verwaest
@ishell: ptal @ulan: ptal for heap @mstarzinger,@bmeurer: fyi (comments welcome)
5 years, 1 month ago (2015-11-17 14:59:34 UTC) #14
Igor Sheludko
First round of comments. I think RegExp constructor should also use JSBuiltinsConstructStub, since IsRegExp call ...
5 years, 1 month ago (2015-11-18 09:16:07 UTC) #15
Toon Verwaest
Addressed comments https://codereview.chromium.org/1448933002/diff/180001/src/runtime/runtime-classes.cc File src/runtime/runtime-classes.cc (right): https://codereview.chromium.org/1448933002/diff/180001/src/runtime/runtime-classes.cc#newcode145 src/runtime/runtime-classes.cc:145: Handle<Code> stub(isolate->builtins()->JSBuiltinsConstructStub()); On 2015/11/18 09:16:07, Igor Sheludko ...
5 years, 1 month ago (2015-11-18 13:24:57 UTC) #16
Yang
Regexp part lgtm. But please add test cases and make sure Chromium's tests pass.
5 years, 1 month ago (2015-11-18 14:22:48 UTC) #18
Toon Verwaest
Added regexp tests and some fixes...
5 years, 1 month ago (2015-11-18 16:30:38 UTC) #19
Michael Starzinger
FYI, I duped the following CL into this: https://codereview.chromium.org/1221803004/
5 years, 1 month ago (2015-11-18 17:27:41 UTC) #20
ulan
heap changes lgtm.
5 years, 1 month ago (2015-11-19 09:03:54 UTC) #21
Igor Sheludko
Second round of comments. Only the tests are left. https://codereview.chromium.org/1448933002/diff/360001/src/api.cc File src/api.cc (right): https://codereview.chromium.org/1448933002/diff/360001/src/api.cc#newcode6116 src/api.cc:6116: ...
5 years, 1 month ago (2015-11-19 09:30:53 UTC) #22
Toon Verwaest
Addressed comment https://codereview.chromium.org/1448933002/diff/360001/src/api.cc File src/api.cc (right): https://codereview.chromium.org/1448933002/diff/360001/src/api.cc#newcode6116 src/api.cc:6116: if ((flags & RegExp::kIgnoreCase) != 0) flags_buf[num_flags++] ...
5 years, 1 month ago (2015-11-19 09:39:53 UTC) #23
Yang
https://codereview.chromium.org/1448933002/diff/360001/src/api.cc File src/api.cc (right): https://codereview.chromium.org/1448933002/diff/360001/src/api.cc#newcode6116 src/api.cc:6116: if ((flags & RegExp::kIgnoreCase) != 0) flags_buf[num_flags++] = 'i'; ...
5 years, 1 month ago (2015-11-19 09:46:32 UTC) #24
Toon Verwaest
Added ports...
5 years, 1 month ago (2015-11-19 10:27:47 UTC) #25
Igor Sheludko
lgtm https://codereview.chromium.org/1448933002/diff/360001/test/mjsunit/es6/classes-subclass-builtins.js File test/mjsunit/es6/classes-subclass-builtins.js (right): https://codereview.chromium.org/1448933002/diff/360001/test/mjsunit/es6/classes-subclass-builtins.js#newcode632 test/mjsunit/es6/classes-subclass-builtins.js:632: assertEquals(o.__proto__, f.prototype); assertTrue(p2 === f.prototype);
5 years, 1 month ago (2015-11-19 10:50:04 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1448933002/430001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1448933002/430001
5 years, 1 month ago (2015-11-19 11:00:38 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: v8_mac_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_mac_rel/builds/12029)
5 years, 1 month ago (2015-11-19 11:20:05 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1448933002/450001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1448933002/450001
5 years, 1 month ago (2015-11-19 12:37:34 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux64_asan_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux64_asan_rel/builds/10287) v8_linux_nodcheck_rel on tryserver.v8 (JOB_FAILED, ...
5 years, 1 month ago (2015-11-19 12:48:42 UTC) #36
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1448933002/470001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1448933002/470001
5 years, 1 month ago (2015-11-19 14:12:20 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1448933002/470001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1448933002/470001
5 years, 1 month ago (2015-11-19 16:08:52 UTC) #42
commit-bot: I haz the power
Committed patchset #16 (id:470001)
5 years, 1 month ago (2015-11-19 16:11:06 UTC) #43
commit-bot: I haz the power
5 years, 1 month ago (2015-11-19 16:11:18 UTC) #44
Message was sent while issue was closed.
Patchset 16 (id:??) landed as
https://crrev.com/469d9bfa8de49477dc4222ef9e0eb7d3d0d43d36
Cr-Commit-Position: refs/heads/master@{#32120}

Powered by Google App Engine
This is Rietveld 408576698