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

Issue 2311203002: Move kMaxRegularHeapObjectSize into globals (Closed)

Created:
4 years, 3 months ago by Michael Lippautz
Modified:
4 years, 3 months ago
CC:
v8-reviews_googlegroups.com, v8-x87-ports_googlegroups.com, Yang, v8-ppc-ports_googlegroups.com, v8-mips-ports_googlegroups.com, Hannes Payer (out of office), ulan
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Move kMaxRegularHeapObjectSize into globals This way we avoid the cyclic dependency between objects.h and heap.h and still have one definition. Add a static assert that this size is indeed smaller than the payload of a page. Follow ups can finally remove the dependency on spaces.h for all heap.h users. R=ulan@chromium.org,bmeurer@chromium.org,vogelheim@chromium.og Committed: https://crrev.com/059b56435ad6b6886457eaa8b1ff254b6ca0da3e Cr-Commit-Position: refs/heads/master@{#39206}

Patch Set 1 #

Patch Set 2 : s/Page::kMaxRegularHeapObjectSize/kMaxRegularHeapObjectSize/ #

Patch Set 3 : Saving the file helps... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -125 lines) Patch
M src/arm/code-stubs-arm.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M src/arm/macro-assembler-arm.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M src/arm64/code-stubs-arm64.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M src/arm64/macro-assembler-arm64.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M src/code-stub-assembler.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M src/code-stubs.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M src/code-stubs-hydrogen.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/compiler/memory-optimizer.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M src/crankshaft/arm/lithium-codegen-arm.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M src/crankshaft/arm64/lithium-codegen-arm64.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M src/crankshaft/hydrogen.cc View 1 4 chunks +7 lines, -6 lines 0 comments Download
M src/crankshaft/hydrogen-instructions.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M src/crankshaft/ia32/lithium-codegen-ia32.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M src/crankshaft/mips/lithium-codegen-mips.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M src/crankshaft/mips64/lithium-codegen-mips64.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M src/crankshaft/ppc/lithium-codegen-ppc.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M src/crankshaft/s390/lithium-codegen-s390.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M src/crankshaft/x64/lithium-codegen-x64.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M src/crankshaft/x87/lithium-codegen-x87.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M src/globals.h View 1 chunk +7 lines, -0 lines 0 comments Download
M src/heap/heap.cc View 8 chunks +8 lines, -8 lines 0 comments Download
M src/heap/heap-inl.h View 1 chunk +1 line, -1 line 0 comments Download
M src/heap/objects-visiting.h View 1 chunk +1 line, -1 line 0 comments Download
M src/heap/spaces.h View 6 chunks +6 lines, -12 lines 0 comments Download
M src/ia32/code-stubs-ia32.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M src/ia32/macro-assembler-ia32.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/mips/code-stubs-mips.cc View 1 2 chunks +2 lines, -3 lines 0 comments Download
M src/mips/macro-assembler-mips.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M src/mips64/code-stubs-mips64.cc View 1 2 chunks +2 lines, -3 lines 0 comments Download
M src/mips64/macro-assembler-mips64.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M src/objects.h View 1 chunk +1 line, -5 lines 0 comments Download
M src/objects.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/ppc/code-stubs-ppc.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M src/ppc/macro-assembler-ppc.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M src/runtime/runtime-internal.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M src/s390/code-stubs-s390.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M src/s390/macro-assembler-s390.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M src/snapshot/serializer.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M src/x64/code-stubs-x64.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M src/x64/macro-assembler-x64.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/x87/code-stubs-x87.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M src/x87/macro-assembler-x87.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/heap/heap-utils.h View 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/heap/test-alloc.cc View 1 1 chunk +3 lines, -4 lines 0 comments Download
M test/cctest/heap/test-heap.cc View 4 chunks +6 lines, -6 lines 0 comments Download
M test/cctest/heap/test-mark-compact.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M test/cctest/heap/test-spaces.cc View 3 chunks +6 lines, -7 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 26 (19 generated)
Michael Lippautz
Change is mechanical, except for the additional static assert. This allows cleaning up heap.h to ...
4 years, 3 months ago (2016-09-06 12:05:01 UTC) #4
Benedikt Meurer
Awesome, LGTM!
4 years, 3 months ago (2016-09-06 12:06:30 UTC) #5
vogelheim
lgtm for src/snapshot/*
4 years, 3 months ago (2016-09-06 12:08:01 UTC) #6
ulan
lgtm!
4 years, 3 months ago (2016-09-06 12:41:55 UTC) #17
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/2311203002/40001
4 years, 3 months ago (2016-09-06 12:56:15 UTC) #22
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 3 months ago (2016-09-06 12:59:11 UTC) #24
commit-bot: I haz the power
4 years, 3 months ago (2016-09-06 12:59:51 UTC) #26
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/059b56435ad6b6886457eaa8b1ff254b6ca0da3e
Cr-Commit-Position: refs/heads/master@{#39206}

Powered by Google App Engine
This is Rietveld 408576698