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

Issue 1680513002: [runtime] We don't need an actual instance type for JSIteratorResult. (Closed)

Created:
4 years, 10 months ago by Benedikt Meurer
Modified:
4 years, 10 months ago
CC:
v8-reviews_googlegroups.com, Hannes Payer (out of office), ulan
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[runtime] We don't need an actual instance type for JSIteratorResult. It's fine to use JS_OBJECT_TYPE for JSIteratorResult and only have a preallocated initial map for them to avoid unnecessary polymorphism from generators / builtin iterators. The instance type doesn't provide any advantage, since we always have to treat JSIteratorResult objects as regular JSObjects later. R=yangguo@chromium.org TBR=hpayer@chromium.org Committed: https://crrev.com/f3b0dbb5e794aed871e4e6167016b371f70680e8 Cr-Commit-Position: refs/heads/master@{#33800}

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -89 lines) Patch
M src/bootstrapper.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/crankshaft/hydrogen.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/factory.h View 1 chunk +0 lines, -5 lines 0 comments Download
M src/factory.cc View 1 chunk +0 lines, -10 lines 0 comments Download
M src/heap/objects-visiting.cc View 1 chunk +0 lines, -1 line 0 comments Download
M src/objects.h View 5 chunks +18 lines, -37 lines 2 comments Download
M src/objects.cc View 1 chunk +0 lines, -1 line 0 comments Download
M src/objects-body-descriptors-inl.h View 1 chunk +0 lines, -1 line 0 comments Download
M src/objects-debug.cc View 2 chunks +0 lines, -11 lines 0 comments Download
M src/objects-inl.h View 4 chunks +0 lines, -8 lines 0 comments Download
M src/objects-printer.cc View 2 chunks +0 lines, -11 lines 0 comments Download
M src/runtime/runtime-object.cc View 1 chunk +5 lines, -1 line 0 comments Download
M src/types.cc View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 9 (2 generated)
Benedikt Meurer
4 years, 10 months ago (2016-02-06 18:02:12 UTC) #1
Benedikt Meurer
Hey Yang, I just figured out that the instance type is completely unnecessary and that ...
4 years, 10 months ago (2016-02-06 18:03:52 UTC) #2
Yang
lgtm. nice clean up. https://codereview.chromium.org/1680513002/diff/1/src/objects.h File src/objects.h (right): https://codereview.chromium.org/1680513002/diff/1/src/objects.h#newcode2603 src/objects.h:2603: class JSIteratorResult: public JSObject { ...
4 years, 10 months ago (2016-02-08 06:27:13 UTC) #3
Benedikt Meurer
https://codereview.chromium.org/1680513002/diff/1/src/objects.h File src/objects.h (right): https://codereview.chromium.org/1680513002/diff/1/src/objects.h#newcode2603 src/objects.h:2603: class JSIteratorResult: public JSObject { On 2016/02/08 06:27:13, Yang ...
4 years, 10 months ago (2016-02-08 06:28:22 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1680513002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1680513002/1
4 years, 10 months ago (2016-02-08 06:28:33 UTC) #6
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 10 months ago (2016-02-08 06:55:24 UTC) #7
commit-bot: I haz the power
4 years, 10 months ago (2016-02-08 06:55:56 UTC) #9
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/f3b0dbb5e794aed871e4e6167016b371f70680e8
Cr-Commit-Position: refs/heads/master@{#33800}

Powered by Google App Engine
This is Rietveld 408576698