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

Issue 1289813005: Use Object::null_instance and Object::null_function and do not create Handles everytime. (Closed)

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

Description

Use Object::null_instance and Object::null_function and do not create Handles everytime. BUG= R=hausner@google.com Committed: https://github.com/dart-lang/sdk/commit/228e0877a7692332404ec9a20b2e2fe2ec134b54

Patch Set 1 #

Total comments: 2

Patch Set 2 : code-review-patch #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -8 lines) Patch
M runtime/vm/bootstrap.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/class_finalizer.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/dart_api_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/object.cc View 1 4 chunks +0 lines, -4 lines 0 comments Download
M runtime/vm/parser.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10 (2 generated)
siva
5 years, 4 months ago (2015-08-13 01:57:53 UTC) #2
srdjan
DBC https://codereview.chromium.org/1289813005/diff/1/runtime/vm/object.cc File runtime/vm/object.cc (right): https://codereview.chromium.org/1289813005/diff/1/runtime/vm/object.cc#newcode7257 runtime/vm/object.cc:7257: result.set_initializer(Object::null_function()); Is this necessary at all, since all ...
5 years, 4 months ago (2015-08-13 15:49:01 UTC) #4
hausner
LGTM. Was this an issue with performance? These handles weren't created at a high rate. ...
5 years, 4 months ago (2015-08-13 16:09:55 UTC) #5
siva
On 2015/08/13 16:09:55, hausner wrote: > LGTM. Was this an issue with performance? These handles ...
5 years, 4 months ago (2015-08-13 16:51:58 UTC) #6
siva
https://codereview.chromium.org/1289813005/diff/1/runtime/vm/object.cc File runtime/vm/object.cc (right): https://codereview.chromium.org/1289813005/diff/1/runtime/vm/object.cc#newcode7257 runtime/vm/object.cc:7257: result.set_initializer(Object::null_function()); On 2015/08/13 15:49:01, srdjan wrote: > Is this ...
5 years, 4 months ago (2015-08-13 16:52:02 UTC) #7
siva
5 years, 4 months ago (2015-08-13 17:25:26 UTC) #8
siva
Committed patchset #2 (id:20001) manually as 228e0877a7692332404ec9a20b2e2fe2ec134b54 (presubmit successful).
5 years, 4 months ago (2015-08-13 17:57:22 UTC) #9
Florian Schneider
5 years, 4 months ago (2015-08-14 09:02:22 UTC) #10
Message was sent while issue was closed.
On 2015/08/13 16:51:58, siva wrote:
> On 2015/08/13 16:09:55, hausner wrote:
> > LGTM. Was this an issue with performance? These handles weren't created at a
> > high rate. I'm more concerned with the additional field in RawField, now
that
> > I'm aware of it. But that's a different discussion.
> 
> I did not measure any performance impact, Whenever I see wasted creation of
> handles I feel I need to get rid of it right away.

+1!

Powered by Google App Engine
This is Rietveld 408576698