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

Issue 1288863006: Use zone allocated growable array to populate interim static and stub calls table, thus allocating … (Closed)

Created:
5 years, 4 months ago by srdjan
Modified:
5 years, 4 months ago
Reviewers:
koda, Ivan Posva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Base URL:
https://github.com/dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Use zone allocated growable array to populate interim static and stub calls table, thus allocating less objects in old space BUG= R=koda@google.com Committed: https://github.com/dart-lang/sdk/commit/92013dd381f109f09d3d80b957d25075e367ff04

Patch Set 1 #

Total comments: 2

Patch Set 2 : s #

Patch Set 3 : Address review comments; allocate static table array in old space. #

Total comments: 2

Patch Set 4 : add comment #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -84 lines) Patch
M runtime/vm/compiler.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/flow_graph_compiler.h View 1 2 3 2 chunks +12 lines, -2 lines 4 comments Download
M runtime/vm/flow_graph_compiler.cc View 1 2 3 chunks +22 lines, -19 lines 0 comments Download
M runtime/vm/flow_graph_compiler_arm.cc View 1 chunk +2 lines, -1 line 0 comments Download
M runtime/vm/flow_graph_compiler_arm64.cc View 1 chunk +2 lines, -1 line 0 comments Download
M runtime/vm/flow_graph_compiler_ia32.cc View 1 chunk +2 lines, -1 line 0 comments Download
M runtime/vm/flow_graph_compiler_mips.cc View 1 chunk +2 lines, -1 line 0 comments Download
M runtime/vm/flow_graph_compiler_x64.cc View 1 chunk +2 lines, -1 line 0 comments Download
M runtime/vm/intermediate_language.h View 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/vm/intermediate_language_arm.cc View 4 chunks +8 lines, -11 lines 0 comments Download
M runtime/vm/intermediate_language_arm64.cc View 4 chunks +8 lines, -11 lines 0 comments Download
M runtime/vm/intermediate_language_ia32.cc View 4 chunks +8 lines, -11 lines 0 comments Download
M runtime/vm/intermediate_language_mips.cc View 4 chunks +8 lines, -11 lines 0 comments Download
M runtime/vm/intermediate_language_x64.cc View 4 chunks +8 lines, -11 lines 0 comments Download

Messages

Total messages: 10 (2 generated)
srdjan
5 years, 4 months ago (2015-08-19 22:25:22 UTC) #2
koda
https://codereview.chromium.org/1288863006/diff/1/runtime/vm/flow_graph_compiler.cc File runtime/vm/flow_graph_compiler.cc (right): https://codereview.chromium.org/1288863006/diff/1/runtime/vm/flow_graph_compiler.cc#newcode731 runtime/vm/flow_graph_compiler.cc:731: &Function::ZoneHandle(zone()), As I understand it, exactly one of the ...
5 years, 4 months ago (2015-08-20 14:14:14 UTC) #3
srdjan
PTAL https://codereview.chromium.org/1288863006/diff/1/runtime/vm/flow_graph_compiler.cc File runtime/vm/flow_graph_compiler.cc (right): https://codereview.chromium.org/1288863006/diff/1/runtime/vm/flow_graph_compiler.cc#newcode731 runtime/vm/flow_graph_compiler.cc:731: &Function::ZoneHandle(zone()), On 2015/08/20 14:14:14, koda wrote: > As ...
5 years, 4 months ago (2015-08-20 16:25:40 UTC) #4
koda
LGTM with comment suggestion https://codereview.chromium.org/1288863006/diff/40001/runtime/vm/flow_graph_compiler.h File runtime/vm/flow_graph_compiler.h (right): https://codereview.chromium.org/1288863006/diff/40001/runtime/vm/flow_graph_compiler.h#newcode667 runtime/vm/flow_graph_compiler.h:667: const Function* function; For readability, ...
5 years, 4 months ago (2015-08-20 18:13:18 UTC) #5
srdjan
Committed patchset #4 (id:60001) manually as 92013dd381f109f09d3d80b957d25075e367ff04 (presubmit successful).
5 years, 4 months ago (2015-08-20 18:43:14 UTC) #6
srdjan
https://codereview.chromium.org/1288863006/diff/40001/runtime/vm/flow_graph_compiler.h File runtime/vm/flow_graph_compiler.h (right): https://codereview.chromium.org/1288863006/diff/40001/runtime/vm/flow_graph_compiler.h#newcode667 runtime/vm/flow_graph_compiler.h:667: const Function* function; On 2015/08/20 18:13:18, koda wrote: > ...
5 years, 4 months ago (2015-08-20 21:37:46 UTC) #7
Ivan Posva
DBC -ip https://codereview.chromium.org/1288863006/diff/60001/runtime/vm/flow_graph_compiler.h File runtime/vm/flow_graph_compiler.h (right): https://codereview.chromium.org/1288863006/diff/60001/runtime/vm/flow_graph_compiler.h#newcode666 runtime/vm/flow_graph_compiler.h:666: struct StaticCallsStruct { This struct has a ...
5 years, 4 months ago (2015-08-20 23:53:36 UTC) #9
srdjan
5 years, 4 months ago (2015-08-21 16:56:14 UTC) #10
Message was sent while issue was closed.
https://codereview.chromium.org/1288863006/diff/60001/runtime/vm/flow_graph_c...
File runtime/vm/flow_graph_compiler.h (right):

https://codereview.chromium.org/1288863006/diff/60001/runtime/vm/flow_graph_c...
runtime/vm/flow_graph_compiler.h:666: struct StaticCallsStruct {
On 2015/08/20 23:53:36, Ivan Posva wrote:
> This struct has a constructor, shouldn't it be a class?

This is a pattern that we use throughout the VM. Discussed offline and agreed
that it is more efficient to make StaticCallsStruct a subclass of ZoneObject.

https://codereview.chromium.org/1288863006/diff/60001/runtime/vm/flow_graph_c...
runtime/vm/flow_graph_compiler.h:673: : offset(offset_arg),
function(function_arg), code(code_arg) {}
On 2015/08/20 23:53:36, Ivan Posva wrote:
> How about asserting that the handles being passed in here are zone handles?
> 
> Also, DISALLOW_COPY*?

Thanks, will add checks for zone handles in next CL. Adding DISALLOW_...

Powered by Google App Engine
This is Rietveld 408576698