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

Issue 10443114: Progress towards making Zones independent of Isolates and Threads. (Closed)

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

Description

Progress towards making Zones independent of Isolates and Threads. This CL changes some parts of the code to explicitly pass around a Zone. Not passing in a zone is okay too (in fact most of v8 still doesn't), but that may incur a TLS lookup. BUG= TEST= Committed: https://code.google.com/p/v8/source/detail?r=11709

Patch Set 1 #

Total comments: 1

Patch Set 2 : Fix build on ia32. #

Total comments: 13

Patch Set 3 : Fix issues and nits. #

Total comments: 12

Patch Set 4 : Addressed review. #

Total comments: 10

Patch Set 5 : Address review. #

Total comments: 6

Patch Set 6 : Fix nits and rebase on current bleeding_edge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+479 lines, -305 lines) Patch
M src/allocation.h View 3 chunks +7 lines, -7 lines 0 comments Download
M src/allocation-inl.h View 1 chunk +2 lines, -2 lines 0 comments Download
M src/arm/lithium-arm.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/arm/lithium-arm.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M src/arm/lithium-codegen-arm.h View 1 2 3 4 chunks +9 lines, -2 lines 0 comments Download
M src/arm/lithium-codegen-arm.cc View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M src/ast.h View 1 chunk +3 lines, -1 line 0 comments Download
M src/compiler.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/deoptimizer.h View 1 2 3 4 4 chunks +12 lines, -7 lines 0 comments Download
M src/deoptimizer.cc View 3 chunks +28 lines, -28 lines 0 comments Download
M src/full-codegen.h View 1 chunk +3 lines, -4 lines 0 comments Download
M src/hashmap.h View 1 2 3 4 5 12 chunks +51 lines, -36 lines 0 comments Download
M src/hydrogen.h View 1 chunk +1 line, -1 line 0 comments Download
M src/hydrogen.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M src/ia32/lithium-codegen-ia32.h View 1 4 chunks +9 lines, -2 lines 0 comments Download
M src/ia32/lithium-codegen-ia32.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download
M src/ia32/lithium-ia32.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/ia32/lithium-ia32.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M src/isolate.h View 1 chunk +1 line, -1 line 0 comments Download
M src/isolate.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/jsregexp.h View 1 2 18 chunks +42 lines, -25 lines 0 comments Download
M src/jsregexp.cc View 1 2 3 4 5 29 chunks +52 lines, -34 lines 0 comments Download
M src/list.h View 1 2 3 5 chunks +38 lines, -19 lines 0 comments Download
M src/list-inl.h View 6 chunks +20 lines, -20 lines 0 comments Download
M src/lithium.h View 4 chunks +8 lines, -2 lines 0 comments Download
M src/parser.h View 1 2 3 4 5 chunks +8 lines, -5 lines 0 comments Download
M src/parser.cc View 1 2 18 chunks +30 lines, -25 lines 0 comments Download
M src/runtime.cc View 12 chunks +24 lines, -12 lines 0 comments Download
M src/safepoint-table.h View 3 chunks +10 lines, -7 lines 0 comments Download
M src/splay-tree.h View 1 2 3 4 chunks +15 lines, -10 lines 0 comments Download
M src/splay-tree-inl.h View 3 chunks +10 lines, -7 lines 0 comments Download
M src/string-stream.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/v8.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/x64/lithium-codegen-x64.h View 4 chunks +9 lines, -2 lines 0 comments Download
M src/x64/lithium-codegen-x64.cc View 2 chunks +4 lines, -3 lines 0 comments Download
M src/x64/lithium-x64.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/x64/lithium-x64.cc View 1 chunk +2 lines, -1 line 0 comments Download
M src/zone.h View 1 2 3 4 5 3 chunks +49 lines, -20 lines 0 comments Download
M src/zone-inl.h View 1 2 2 chunks +7 lines, -4 lines 0 comments Download
M test/cctest/test-list.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/test-parsing.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M test/cctest/test-regexp.cc View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 13 (0 generated)
sanjoy
8 years, 6 months ago (2012-05-31 20:23:01 UTC) #1
sanjoy
8 years, 6 months ago (2012-06-01 08:35:51 UTC) #2
danno
http://codereview.chromium.org/10443114/diff/1/src/hashmap.h File src/hashmap.h (right): http://codereview.chromium.org/10443114/diff/1/src/hashmap.h#newcode310 src/hashmap.h:310: nit: remove stray extra line http://codereview.chromium.org/10443114/diff/3002/src/ia32/lithium-ia32.h File src/ia32/lithium-ia32.h (right): ...
8 years, 6 months ago (2012-06-01 11:29:24 UTC) #3
sanjoy
http://codereview.chromium.org/10443114/diff/3002/src/parser.cc File src/parser.cc (right): http://codereview.chromium.org/10443114/diff/3002/src/parser.cc#newcode6028 src/parser.cc:6028: Parser parser(script, parsing_flags, NULL, NULL, info->isolate()->zone()); On 2012/06/01 11:29:24, ...
8 years, 6 months ago (2012-06-01 11:39:26 UTC) #4
sanjoy
8 years, 6 months ago (2012-06-01 13:00:05 UTC) #5
danno
It doesn't look like you've ported to ARM or MIPS in this CL yet? https://chromiumcodereview.appspot.com/10443114/diff/11001/src/hydrogen.cc ...
8 years, 6 months ago (2012-06-01 15:25:34 UTC) #6
sanjoy
8 years, 6 months ago (2012-06-01 17:04:45 UTC) #7
sanjoy
8 years, 6 months ago (2012-06-04 09:46:57 UTC) #8
sanjoy
Ported to changes to arm. http://codereview.chromium.org/10443114/diff/11001/src/hydrogen.cc File src/hydrogen.cc (right): http://codereview.chromium.org/10443114/diff/11001/src/hydrogen.cc#newcode699 src/hydrogen.cc:699: LChunkBuilder builder(info, this, &allocator, ...
8 years, 6 months ago (2012-06-04 10:17:21 UTC) #9
danno
http://codereview.chromium.org/10443114/diff/10002/src/compiler.cc File src/compiler.cc (right): http://codereview.chromium.org/10443114/diff/10002/src/compiler.cc#newcode307 src/compiler.cc:307: Handle<Code> optimized_code = graph->Compile(info, info->isolate()->zone()); either graph->zone() or put ...
8 years, 6 months ago (2012-06-04 10:46:46 UTC) #10
sanjoy
http://codereview.chromium.org/10443114/diff/10002/src/compiler.cc File src/compiler.cc (right): http://codereview.chromium.org/10443114/diff/10002/src/compiler.cc#newcode307 src/compiler.cc:307: Handle<Code> optimized_code = graph->Compile(info, info->isolate()->zone()); On 2012/06/04 10:46:46, danno ...
8 years, 6 months ago (2012-06-04 11:05:42 UTC) #11
danno
LGTM with nits. https://chromiumcodereview.appspot.com/10443114/diff/20003/src/hashmap.h File src/hashmap.h (right): https://chromiumcodereview.appspot.com/10443114/diff/20003/src/hashmap.h#newcode345 src/hashmap.h:345: : TemplateHashMapImpl<AllocationPolicy>( nit: two space indent ...
8 years, 6 months ago (2012-06-04 13:46:17 UTC) #12
sanjoy
8 years, 6 months ago (2012-06-04 13:58:53 UTC) #13
Fixed nits and rebased on bleeding_edge.

https://chromiumcodereview.appspot.com/10443114/diff/20003/src/hashmap.h
File src/hashmap.h (right):

https://chromiumcodereview.appspot.com/10443114/diff/20003/src/hashmap.h#newc...
src/hashmap.h:345: : TemplateHashMapImpl<AllocationPolicy>(
On 2012/06/04 13:46:17, danno wrote:
> nit: two space indent from beginning of line here, and the following lines
lined
> up accordingly.

Fixed.

https://chromiumcodereview.appspot.com/10443114/diff/20003/src/zone.h
File src/zone.h (right):

https://chromiumcodereview.appspot.com/10443114/diff/20003/src/zone.h#newcode167
src/zone.h:167: // The ZoneAllocationPolicy is used to specialize the generic
data
On 2012/06/04 13:46:17, danno wrote:
> nit: should be just "specialize generic data"

Done.

https://chromiumcodereview.appspot.com/10443114/diff/20003/src/zone.h#newcode202
src/zone.h:202: // We add some convenience wrappers where so that we can pass in
a
On 2012/06/04 13:46:17, danno wrote:
> nit: should be just "wrappers so that"

Done.

Powered by Google App Engine
This is Rietveld 408576698