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

Issue 565513002: Optimize LocalVarDescriptor objects for functions that have no local variables (Closed)

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

Description

Optimize LocalVarDescriptor objects for functions that have no local variables Allocate a canonical “empty” variable descriptor object. Saves about 10% of variable descriptor space when running dart2js. R=asiva@google.com Committed: https://code.google.com/p/dart/source/detail?r=40158

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -1 line) Patch
M runtime/vm/object.h View 1 3 chunks +7 lines, -0 lines 0 comments Download
M runtime/vm/object.cc View 1 3 chunks +16 lines, -0 lines 0 comments Download
M runtime/vm/raw_object.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/vm/scopes.cc View 1 2 chunks +4 lines, -1 line 0 comments Download

Messages

Total messages: 5 (1 generated)
hausner
6 years, 3 months ago (2014-09-10 23:41:03 UTC) #2
siva
lgtm https://codereview.chromium.org/565513002/diff/1/runtime/vm/object.cc File runtime/vm/object.cc (right): https://codereview.chromium.org/565513002/diff/1/runtime/vm/object.cc#newcode680 runtime/vm/object.cc:680: empty_var_descriptors_->raw_ptr()->names_ = empty_array_->raw_ptr(); to be safe: StorePointer(&empty_var_descriptors_->raw_ptr()->names_, empty_array_->raw_ptr());
6 years, 3 months ago (2014-09-11 00:04:29 UTC) #3
hausner
https://codereview.chromium.org/565513002/diff/1/runtime/vm/object.cc File runtime/vm/object.cc (right): https://codereview.chromium.org/565513002/diff/1/runtime/vm/object.cc#newcode680 runtime/vm/object.cc:680: empty_var_descriptors_->raw_ptr()->names_ = empty_array_->raw_ptr(); StorePointer() is an instance method, can't ...
6 years, 3 months ago (2014-09-11 16:08:12 UTC) #4
hausner
6 years, 3 months ago (2014-09-11 16:09:04 UTC) #5
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as r40158 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698