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

Issue 10534139: One Zone per CompilationInfo. (Closed)

Created:
8 years, 6 months ago by sanjoy
Modified:
8 years, 6 months ago
CC:
v8-dev
Visibility:
Public.

Description

One Zone per CompilationInfo. The CompilationInfo record now saves a Zone, and the compiler pipeline allocates memory from the Zone in the CompilationInfo. Before compiling a function, we create a Zone on the stack and save a pointer to that Zone to the CompilationInfo; which then gets picked up and allocated from. BUG= TEST= Committed: https://code.google.com/p/v8/source/detail?r=11877

Patch Set 1 #

Total comments: 24

Patch Set 2 : Review. #

Patch Set 3 : Rebase on current master. #

Total comments: 1

Patch Set 4 : Review #

Total comments: 4

Patch Set 5 : Rename CompilationInfoZone to ZoneWithCompilationInfo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+341 lines, -295 lines) Patch
M src/arm/full-codegen-arm.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/arm/lithium-codegen-arm.h View 1 3 chunks +10 lines, -12 lines 0 comments Download
M src/ast.h View 1 2 3 2 chunks +4 lines, -5 lines 0 comments Download
M src/compiler.h View 1 2 3 4 3 chunks +33 lines, -5 lines 0 comments Download
M src/compiler.cc View 1 2 3 4 19 chunks +26 lines, -22 lines 0 comments Download
M src/debug.cc View 1 2 3 4 2 chunks +1 line, -2 lines 0 comments Download
M src/deoptimizer.cc View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M src/full-codegen.h View 1 2 3 2 chunks +7 lines, -6 lines 0 comments Download
M src/full-codegen.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/hydrogen.h View 1 2 4 chunks +5 lines, -3 lines 0 comments Download
M src/hydrogen.cc View 1 2 3 10 chunks +19 lines, -21 lines 0 comments Download
M src/ia32/full-codegen-ia32.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/ia32/lithium-codegen-ia32.h View 1 3 chunks +9 lines, -11 lines 0 comments Download
M src/isolate.h View 2 chunks +2 lines, -2 lines 0 comments Download
M src/isolate.cc View 1 2 4 chunks +3 lines, -3 lines 0 comments Download
M src/json-parser.h View 1 chunk +1 line, -1 line 0 comments Download
M src/jsregexp.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M src/jsregexp.cc View 1 5 chunks +9 lines, -6 lines 0 comments Download
M src/lithium.h View 1 chunk +1 line, -1 line 0 comments Download
M src/liveedit.cc View 1 2 3 4 3 chunks +2 lines, -3 lines 0 comments Download
M src/mips/full-codegen-mips.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/mips/lithium-codegen-mips.h View 1 3 chunks +10 lines, -12 lines 0 comments Download
M src/objects.cc View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M src/parser.h View 3 chunks +6 lines, -3 lines 0 comments Download
M src/parser.cc View 1 2 3 19 chunks +23 lines, -20 lines 0 comments Download
M src/rewriter.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M src/runtime.cc View 1 2 3 4 15 chunks +37 lines, -31 lines 0 comments Download
M src/scopes.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M src/stub-cache.h View 3 chunks +2 lines, -3 lines 0 comments Download
M src/stub-cache.cc View 4 chunks +5 lines, -4 lines 0 comments Download
M src/type-info.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/x64/full-codegen-x64.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/x64/lithium-codegen-x64.h View 1 3 chunks +10 lines, -12 lines 0 comments Download
M src/zone.h View 1 4 chunks +4 lines, -5 lines 0 comments Download
M src/zone.cc View 1 1 chunk +5 lines, -5 lines 0 comments Download
M src/zone-inl.h View 1 2 3 2 chunks +5 lines, -10 lines 0 comments Download
M test/cctest/test-ast.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M test/cctest/test-dataflow.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M test/cctest/test-liveedit.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M test/cctest/test-parsing.cc View 1 2 3 4 2 chunks +5 lines, -4 lines 0 comments Download
M test/cctest/test-regexp.cc View 1 31 chunks +62 lines, -53 lines 0 comments Download
M test/cctest/test-strings.cc View 4 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
sanjoy
Deleted the previous CL -- it had a memory leak.
8 years, 6 months ago (2012-06-13 15:29:10 UTC) #1
danno
http://codereview.chromium.org/10534139/diff/1/src/arm/lithium-codegen-arm.h File src/arm/lithium-codegen-arm.h (right): http://codereview.chromium.org/10534139/diff/1/src/arm/lithium-codegen-arm.h#newcode54 src/arm/lithium-codegen-arm.h:54: deoptimizations_(4, zone_), This is really fragile, since it depends ...
8 years, 6 months ago (2012-06-14 14:22:18 UTC) #2
sanjoy
http://codereview.chromium.org/10534139/diff/1/src/arm/lithium-codegen-arm.h File src/arm/lithium-codegen-arm.h (right): http://codereview.chromium.org/10534139/diff/1/src/arm/lithium-codegen-arm.h#newcode54 src/arm/lithium-codegen-arm.h:54: deoptimizations_(4, zone_), On 2012/06/14 14:22:19, danno wrote: > This ...
8 years, 6 months ago (2012-06-15 09:24:30 UTC) #3
sanjoy
8 years, 6 months ago (2012-06-18 17:53:24 UTC) #4
danno
https://chromiumcodereview.appspot.com/10534139/diff/11001/src/runtime.cc File src/runtime.cc (right): https://chromiumcodereview.appspot.com/10534139/diff/11001/src/runtime.cc#newcode11205 src/runtime.cc:11205: CompilationInfo info(shared_info, &zone); Ass discussed, move zone and zonescope ...
8 years, 6 months ago (2012-06-19 15:24:57 UTC) #5
sanjoy
1. Added a subclass to CompilationInfo -- ZoneCompilationInfo which has its own Zone and ZoneScope. ...
8 years, 6 months ago (2012-06-19 16:46:50 UTC) #6
danno
http://codereview.chromium.org/10534139/diff/16001/src/compiler.h File src/compiler.h (right): http://codereview.chromium.org/10534139/diff/16001/src/compiler.h#newcode268 src/compiler.h:268: class ZoneCompilationInfo: public CompilationInfo { Please call this CompilationInfoWithZone, ...
8 years, 6 months ago (2012-06-19 20:09:53 UTC) #7
sanjoy
http://codereview.chromium.org/10534139/diff/16001/src/compiler.h File src/compiler.h (right): http://codereview.chromium.org/10534139/diff/16001/src/compiler.h#newcode268 src/compiler.h:268: class ZoneCompilationInfo: public CompilationInfo { On 2012/06/19 20:09:53, danno ...
8 years, 6 months ago (2012-06-19 20:56:40 UTC) #8
danno
8 years, 6 months ago (2012-06-20 08:57:43 UTC) #9
lgtm

Powered by Google App Engine
This is Rietveld 408576698