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

Issue 10223015: Add a stub_code_space in the heap alongside code_space so that stub code generation happens here an… (Closed)

Created:
8 years, 8 months ago by siva
Modified:
8 years, 8 months ago
Reviewers:
srdjan, Ivan Posva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Add a stub_code_space in the heap alongside code_space so that stub code generation happens here and it is easy to determine if a PC is a stub code or not. This gets rid of the temporary change made in code_generator.cc for fast access to the top dart frame. In addition it will not pollute the pc ==> code cache that I plan to add next as we don't have to store stub pcs in that table. Committed: https://code.google.com/p/dart/source/detail?r=7033

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -76 lines) Patch
M vm/code_generator.cc View 10 chunks +19 lines, -35 lines 0 comments Download
M vm/gc_marker.cc View 1 chunk +1 line, -0 lines 0 comments Download
M vm/heap.h View 1 7 chunks +15 lines, -5 lines 0 comments Download
M vm/heap.cc View 1 15 chunks +48 lines, -12 lines 2 comments Download
M vm/object.h View 3 chunks +6 lines, -1 line 0 comments Download
M vm/object.cc View 3 chunks +17 lines, -6 lines 0 comments Download
M vm/stack_frame.h View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M vm/stack_frame.cc View 2 chunks +6 lines, -13 lines 0 comments Download
M vm/stub_code.cc View 3 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
siva
8 years, 8 months ago (2012-04-25 22:17:17 UTC) #1
srdjan
LGTM if the performance has not changed
8 years, 8 months ago (2012-04-25 23:05:34 UTC) #2
Ivan Posva
I think this is fine for now, but longer-term we need to find a better ...
8 years, 8 months ago (2012-04-26 15:09:01 UTC) #3
siva
8 years, 8 months ago (2012-04-26 16:51:42 UTC) #4
I agree that we should strongly consider emitting the instruction object after a
'call' instruction that is the most efficient form of identifying the frame.

Once the new codegen settles, I will do this experiment to see what the size
impact would be on adding this.

https://chromiumcodereview.appspot.com/10223015/diff/13/vm/heap.cc
File vm/heap.cc (right):

https://chromiumcodereview.appspot.com/10223015/diff/13/vm/heap.cc#newcode37
vm/heap.cc:37: "e.g: --code_heap_size=256 allocates a 256KB stub code heap");
On 2012/04/26 15:09:01, Ivan Posva wrote:
> Mismatch in flag comment.

Done.

Powered by Google App Engine
This is Rietveld 408576698