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

Issue 1062633002: Re-implement %Generator% intrinsic as an object (Closed)

Created:
5 years, 8 months ago by mike3
Modified:
5 years, 8 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

Re-implement %Generator% intrinsic as an object From ES6 25.2.3 ("Properties of the GeneratorFunction Prototype Object"): > The GeneratorFunction prototype object is an ordinary object. It is > not a function object and does not have an [[ECMAScriptCode]] internal > slot or any other of the internal slots listed in Table 27 or Table > 56. Introduce one assertion for the value's type and additional tests for its properties. Remove an invalid assertion that fails as a result of this fix. BUG=v8:3991 LOG=N Committed: https://crrev.com/3b624a179682a6b8351eea8cba28cf21e2afcdcd Cr-Commit-Position: refs/heads/master@{#27603}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Correct code style inconsistencies #

Total comments: 1

Patch Set 3 : Add tool-assisted code formatting corrections #

Patch Set 4 : Fix failing test #

Total comments: 3

Patch Set 5 : Add TODO contact and bug URL #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -14 lines) Patch
M src/bootstrapper.cc View 1 2 1 chunk +14 lines, -4 lines 0 comments Download
M src/generator.js View 2 chunks +0 lines, -7 lines 0 comments Download
M test/mjsunit/builtins.js View 1 2 3 4 2 chunks +16 lines, -2 lines 0 comments Download
M test/mjsunit/es6/generators-runtime.js View 1 2 chunks +17 lines, -1 line 0 comments Download

Messages

Total messages: 24 (5 generated)
mike3
Hi Erik--could you please take a look?
5 years, 8 months ago (2015-04-03 23:42:05 UTC) #2
arv (Not doing code reviews)
LGTM with nits https://codereview.chromium.org/1062633002/diff/1/src/bootstrapper.cc File src/bootstrapper.cc (right): https://codereview.chromium.org/1062633002/diff/1/src/bootstrapper.cc#newcode2065 src/bootstrapper.cc:2065: factory()->InternalizeUtf8String("GeneratorFunctionPrototype"), Wrong indentation. `git cl upload` ...
5 years, 8 months ago (2015-04-06 15:16:25 UTC) #3
arv (Not doing code reviews)
LGTM with nits https://codereview.chromium.org/1062633002/diff/1/src/bootstrapper.cc File src/bootstrapper.cc (right): https://codereview.chromium.org/1062633002/diff/1/src/bootstrapper.cc#newcode2065 src/bootstrapper.cc:2065: factory()->InternalizeUtf8String("GeneratorFunctionPrototype"), Wrong indentation. `git cl upload` ...
5 years, 8 months ago (2015-04-06 15:16:29 UTC) #4
mike3
Hi Erik, I've fixed the code style inconsistencies, so this should be ready for another ...
5 years, 8 months ago (2015-04-06 16:24:11 UTC) #5
caitp (gmail)
https://codereview.chromium.org/1062633002/diff/20001/src/bootstrapper.cc File src/bootstrapper.cc (right): https://codereview.chromium.org/1062633002/diff/20001/src/bootstrapper.cc#newcode2065 src/bootstrapper.cc:2065: factory()->InternalizeUtf8String("GeneratorFunctionPrototype"), I think clang-format will complain about this indentation. ...
5 years, 8 months ago (2015-04-06 16:31:26 UTC) #7
arv (Not doing code reviews)
On 2015/04/06 16:31:26, caitp wrote: > ... (might want to > just target the specific ...
5 years, 8 months ago (2015-04-06 16:32:33 UTC) #8
caitp (gmail)
On 2015/04/06 16:32:33, arv wrote: > On 2015/04/06 16:31:26, caitp wrote: > > ... (might ...
5 years, 8 months ago (2015-04-06 16:33:36 UTC) #9
arv (Not doing code reviews)
On 2015/04/06 16:33:36, caitp wrote: > On 2015/04/06 16:32:33, arv wrote: > > On 2015/04/06 ...
5 years, 8 months ago (2015-04-06 16:34:34 UTC) #10
mike3
I've included the changes suggested by `git cl format`. Sorry for the noise
5 years, 8 months ago (2015-04-06 16:59:38 UTC) #11
arv (Not doing code reviews)
LGTM
5 years, 8 months ago (2015-04-06 17:26:16 UTC) #12
caitp (gmail)
On 2015/04/06 17:26:16, arv wrote: > LGTM LGTM, but need to fix the `checkConstructor` test ...
5 years, 8 months ago (2015-04-06 17:27:06 UTC) #13
mike3
Thanks, Cait! I've fixed the failing test. There are a lot of ways to do ...
5 years, 8 months ago (2015-04-06 18:03:33 UTC) #14
caitp (gmail)
That approach looks pretty solid (so long as the list of exceptions doesn't change too ...
5 years, 8 months ago (2015-04-06 18:05:05 UTC) #15
caitp (gmail)
https://codereview.chromium.org/1062633002/diff/60001/test/mjsunit/builtins.js File test/mjsunit/builtins.js (right): https://codereview.chromium.org/1062633002/diff/60001/test/mjsunit/builtins.js#newcode53 test/mjsunit/builtins.js:53: // Issue 3568: Generator Prototype should have an object ...
5 years, 8 months ago (2015-04-06 18:07:04 UTC) #16
arv (Not doing code reviews)
https://codereview.chromium.org/1062633002/diff/60001/test/mjsunit/builtins.js File test/mjsunit/builtins.js (right): https://codereview.chromium.org/1062633002/diff/60001/test/mjsunit/builtins.js#newcode53 test/mjsunit/builtins.js:53: // Issue 3568: Generator Prototype should have an object ...
5 years, 8 months ago (2015-04-06 18:15:14 UTC) #17
mike3
Alrighty, I've added a TODO contact and the URL to the bug.
5 years, 8 months ago (2015-04-06 19:03:09 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1062633002/80001
5 years, 8 months ago (2015-04-06 20:10:48 UTC) #22
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 8 months ago (2015-04-06 21:04:49 UTC) #23
commit-bot: I haz the power
5 years, 8 months ago (2015-04-06 21:04:59 UTC) #24
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/3b624a179682a6b8351eea8cba28cf21e2afcdcd
Cr-Commit-Position: refs/heads/master@{#27603}

Powered by Google App Engine
This is Rietveld 408576698