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

Issue 14262004: Generator objects have [[Class]] === "Generator" (Closed)

Created:
7 years, 8 months ago by wingo
Modified:
7 years, 8 months ago
Base URL:
git://github.com/v8/v8.git@master
Visibility:
Public.

Description

Generator objects have [[Class]] === "Generator" Generator object maps now link to their constructors, which are created with a "Generator" class name. This does not cause a per-generator constructor property to be set. BUG=v8:2355 TEST=mjsunit/harmony/generators-objects Committed: http://code.google.com/p/v8/source/detail?r=14309

Patch Set 1 #

Patch Set 2 : Generator object methods check class of receiver #

Total comments: 14

Patch Set 3 : Address review comments #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -4 lines) Patch
M src/compiler.cc View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M src/factory.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M src/factory.cc View 1 2 2 chunks +4 lines, -0 lines 0 comments Download
M src/generator.js View 1 2 1 chunk +20 lines, -0 lines 0 comments Download
M src/heap.h View 1 chunk +2 lines, -1 line 0 comments Download
M src/heap.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/macros.py View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/parser.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M test/mjsunit/harmony/generators-objects.js View 1 2 3 chunks +30 lines, -1 line 1 comment Download

Messages

Total messages: 6 (0 generated)
wingo
Attached patch fixes %ClassOf for generator objects. I had to do it in C++ as ...
7 years, 8 months ago (2013-04-15 13:36:22 UTC) #1
wingo
Updated patch uses the class name in generator object methods and adds more tests.
7 years, 8 months ago (2013-04-16 14:07:35 UTC) #2
Michael Starzinger
This is looking almost good. Just few minor comments. https://codereview.chromium.org/14262004/diff/3001/src/compiler.cc File src/compiler.cc (right): https://codereview.chromium.org/14262004/diff/3001/src/compiler.cc#newcode1126 src/compiler.cc:1126: ...
7 years, 8 months ago (2013-04-17 12:52:19 UTC) #3
wingo
Thanks for the review. Updated patch addresses review comments. https://codereview.chromium.org/14262004/diff/3001/src/compiler.cc File src/compiler.cc (right): https://codereview.chromium.org/14262004/diff/3001/src/compiler.cc#newcode1126 src/compiler.cc:1126: ...
7 years, 8 months ago (2013-04-17 14:23:51 UTC) #4
Michael Starzinger
LGTM. I'll land this. https://codereview.chromium.org/14262004/diff/11002/test/mjsunit/harmony/generators-objects.js File test/mjsunit/harmony/generators-objects.js (right): https://codereview.chromium.org/14262004/diff/11002/test/mjsunit/harmony/generators-objects.js#newcode84 test/mjsunit/harmony/generators-objects.js:84: non_generator.close = iter.close; I think ...
7 years, 8 months ago (2013-04-17 14:31:28 UTC) #5
Michael Starzinger
7 years, 8 months ago (2013-04-17 15:01:43 UTC) #6
Message was sent while issue was closed.
Committed patchset #3 manually as r14309 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698