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

Issue 2811183005: Do not use new struct type where unnecessary. (Closed)

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

Description

Do not use new struct type where unnecessary. We can use TUPLE2 or TUPLE3 for structs that do not need special handling by deoptimizer and compiler. This frees up a few instance types, so that adding the next few new structs will not cause ABI compatibility to break. R=mstarzinger@chromium.org Review-Url: https://codereview.chromium.org/2811183005 Cr-Commit-Position: refs/heads/master@{#44685} Committed: https://chromium.googlesource.com/v8/v8/+/7b4e4ab70fcd962a3fad3710e0b07ad30d87c765

Patch Set 1 #

Total comments: 18

Patch Set 2 : address comments #

Patch Set 3 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+368 lines, -432 lines) Patch
M src/api.cc View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M src/ast/ast-types.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M src/compiler/types.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M src/deoptimizer.cc View 1 2 1 chunk +4 lines, -4 lines 0 comments Download
M src/factory.cc View 1 2 3 chunks +4 lines, -4 lines 0 comments Download
M src/objects.h View 1 2 10 chunks +298 lines, -312 lines 0 comments Download
M src/objects.cc View 1 2 1 chunk +5 lines, -1 line 0 comments Download
M src/objects-debug.cc View 4 chunks +0 lines, -25 lines 0 comments Download
M src/objects-inl.h View 1 2 5 chunks +9 lines, -1 line 0 comments Download
M src/objects-printer.cc View 4 chunks +0 lines, -31 lines 0 comments Download
M src/objects/literal-objects.h View 1 1 chunk +3 lines, -8 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/ArrayLiterals.golden View 4 chunks +6 lines, -6 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/ArrayLiteralsWide.golden View 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/interpreter/bytecode_expectations/CallAndSpread.golden View 3 chunks +5 lines, -5 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/CallRuntime.golden View 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/interpreter/bytecode_expectations/CountOperators.golden View 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/interpreter/bytecode_expectations/ForAwaitOf.golden View 4 chunks +4 lines, -4 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/ForIn.golden View 3 chunks +4 lines, -4 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/ForOf.golden View 3 chunks +3 lines, -3 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/Generators.golden View 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/interpreter/bytecode_expectations/NewAndSpread.golden View 3 chunks +5 lines, -5 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/SuperCallAndSpread.golden View 1 chunk +2 lines, -2 lines 0 comments Download
M test/cctest/test-debug.cc View 1 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 14 (8 generated)
Yang
3 years, 8 months ago (2017-04-12 08:44:14 UTC) #1
Michael Starzinger
https://codereview.chromium.org/2811183005/diff/1/src/objects.h File src/objects.h (right): https://codereview.chromium.org/2811183005/diff/1/src/objects.h#newcode7491 src/objects.h:7491: class TypeFeedbackInfo: public Struct { nit: Should inherit from ...
3 years, 8 months ago (2017-04-13 11:25:59 UTC) #2
Yang
https://codereview.chromium.org/2811183005/diff/1/src/objects.h File src/objects.h (right): https://codereview.chromium.org/2811183005/diff/1/src/objects.h#newcode7491 src/objects.h:7491: class TypeFeedbackInfo: public Struct { On 2017/04/13 11:25:59, Michael ...
3 years, 8 months ago (2017-04-13 11:53:34 UTC) #3
Michael Starzinger
LGTM. Thanks!
3 years, 8 months ago (2017-04-13 11:57:12 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2811183005/40001
3 years, 8 months ago (2017-04-18 12:17:34 UTC) #11
commit-bot: I haz the power
3 years, 8 months ago (2017-04-18 12:46:47 UTC) #14
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/v8/v8/+/7b4e4ab70fcd962a3fad3710e0b07ad30d8...

Powered by Google App Engine
This is Rietveld 408576698