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

Issue 19974002: Reuse the top ApiLocalScope so that we do not allocate and free an ApiLocalScope (Closed)

Created:
7 years, 5 months ago by siva
Modified:
7 years, 5 months ago
Reviewers:
srdjan
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Reuse the top ApiLocalScope so that we do not allocate and free an ApiLocalScope for each Dart_EnterScope/Dart_ExitScope sequence. The runtime of UseDartApi benchmark on linux ia32 improves from 187316 to 121083. R=srdjan@google.com Committed: https://code.google.com/p/dart/source/detail?r=25292

Patch Set 1 #

Patch Set 2 : #

Total comments: 4

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+98 lines, -8 lines) Patch
M runtime/vm/dart_api_impl.cc View 1 2 2 chunks +19 lines, -5 lines 0 comments Download
M runtime/vm/dart_api_state.h View 1 2 7 chunks +54 lines, -3 lines 0 comments Download
M runtime/vm/handles.h View 1 chunk +3 lines, -0 lines 0 comments Download
M runtime/vm/handles_impl.h View 1 chunk +19 lines, -0 lines 0 comments Download
M runtime/vm/zone.cc View 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
siva
7 years, 5 months ago (2013-07-22 17:57:45 UTC) #1
srdjan
lgtm https://codereview.chromium.org/19974002/diff/7001/runtime/vm/dart_api_impl.cc File runtime/vm/dart_api_impl.cc (right): https://codereview.chromium.org/19974002/diff/7001/runtime/vm/dart_api_impl.cc#newcode1101 runtime/vm/dart_api_impl.cc:1101: delete scope; assert reusable_scope != scope https://codereview.chromium.org/19974002/diff/7001/runtime/vm/dart_api_state.h File ...
7 years, 5 months ago (2013-07-22 18:18:16 UTC) #2
siva
https://codereview.chromium.org/19974002/diff/7001/runtime/vm/dart_api_impl.cc File runtime/vm/dart_api_impl.cc (right): https://codereview.chromium.org/19974002/diff/7001/runtime/vm/dart_api_impl.cc#newcode1101 runtime/vm/dart_api_impl.cc:1101: delete scope; On 2013/07/22 18:18:16, srdjan wrote: > assert ...
7 years, 5 months ago (2013-07-22 18:42:08 UTC) #3
siva
7 years, 5 months ago (2013-07-22 18:46:19 UTC) #4
Message was sent while issue was closed.
Committed patchset #3 manually as r25292 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698