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

Issue 575663002: Eliminate 99% of allocated ExceptionHandler objects (Closed)

Created:
6 years, 3 months ago by hausner
Modified:
6 years, 3 months ago
Reviewers:
srdjan
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Eliminate 99% of allocated ExceptionHandler objects The vast majority of functions have no exception handlers, thus they can all share a single ExceptionHandler descriptor. This CL reduces the number of ExceptionHandler objects on the heap from about 8400 to 16, from 132KB to less than 1KB, when running dart2js. R=srdjan@google.com Committed: https://code.google.com/p/dart/source/detail?r=40323

Patch Set 1 #

Total comments: 6

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -24 lines) Patch
M runtime/vm/code_descriptors.h View 2 chunks +4 lines, -1 line 0 comments Download
M runtime/vm/debugger.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/object.h View 4 chunks +8 lines, -1 line 0 comments Download
M runtime/vm/object.cc View 11 chunks +31 lines, -14 lines 0 comments Download
M runtime/vm/object_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/raw_object.h View 1 chunk +5 lines, -3 lines 0 comments Download
M runtime/vm/raw_object.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M runtime/vm/stack_frame.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 5 (1 generated)
hausner
https://codereview.chromium.org/575663002/diff/1/runtime/vm/code_descriptors.h File runtime/vm/code_descriptors.h (left): https://codereview.chromium.org/575663002/diff/1/runtime/vm/code_descriptors.h#oldcode77 runtime/vm/code_descriptors.h:77: explicit StackmapTableBuilder() Unrelated to this CL. gcl upload complained ...
6 years, 3 months ago (2014-09-15 23:33:17 UTC) #2
srdjan
LGTM with comments https://codereview.chromium.org/575663002/diff/1/runtime/vm/code_descriptors.h File runtime/vm/code_descriptors.h (left): https://codereview.chromium.org/575663002/diff/1/runtime/vm/code_descriptors.h#oldcode77 runtime/vm/code_descriptors.h:77: explicit StackmapTableBuilder() On 2014/09/15 23:33:16, hausner ...
6 years, 3 months ago (2014-09-15 23:47:15 UTC) #3
hausner
https://codereview.chromium.org/575663002/diff/1/runtime/vm/object.cc File runtime/vm/object.cc (right): https://codereview.chromium.org/575663002/diff/1/runtime/vm/object.cc#newcode687 runtime/vm/object.cc:687: // and can share this cononical descriptor. On 2014/09/15 ...
6 years, 3 months ago (2014-09-16 00:28:41 UTC) #4
hausner
6 years, 3 months ago (2014-09-16 16:27:11 UTC) #5
Message was sent while issue was closed.
Committed patchset #4 (id:60001) manually as r40323 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698