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

Issue 10008030: Inline the StackResource constructor/destructor. (Closed)

Created:
8 years, 8 months ago by turnidge
Modified:
8 years, 8 months ago
Reviewers:
siva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Inline the StackResource constructor/destructor. This yields a 29% improvement on the Benchmark_UseDartApi microbenchmark. To do this, I had to split a few fields from Isolate into a BaseIsolate class. Sort of yucky. Committed: https://code.google.com/p/dart/source/detail?r=6288

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+160 lines, -112 lines) Patch
M vm/allocation.h View 1 2 3 4 2 chunks +24 lines, -4 lines 0 comments Download
M vm/allocation.cc View 1 2 3 4 1 chunk +0 lines, -21 lines 0 comments Download
A vm/base_isolate.h View 1 2 1 chunk +117 lines, -0 lines 0 comments Download
M vm/handles.h View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M vm/handles.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M vm/isolate.h View 1 2 3 4 5 chunks +2 lines, -71 lines 0 comments Download
M vm/isolate.cc View 1 2 3 4 4 chunks +9 lines, -9 lines 0 comments Download
M vm/vm_sources.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M vm/zone.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M vm/zone.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
turnidge
Not completely sure I like this, but it does make things faster. Let me know ...
8 years, 8 months ago (2012-04-05 23:39:16 UTC) #1
siva
lgtm https://chromiumcodereview.appspot.com/10008030/diff/1003/vm/base_isolate.h File vm/base_isolate.h (right): https://chromiumcodereview.appspot.com/10008030/diff/1003/vm/base_isolate.h#newcode36 vm/base_isolate.h:36: Zone* current_zone_; DISALLOW_COPY_AND_ASSIGN(BaseIsolate);
8 years, 8 months ago (2012-04-06 17:30:14 UTC) #2
turnidge
8 years, 8 months ago (2012-04-06 17:50:40 UTC) #3
https://chromiumcodereview.appspot.com/10008030/diff/1003/vm/base_isolate.h
File vm/base_isolate.h (right):

https://chromiumcodereview.appspot.com/10008030/diff/1003/vm/base_isolate.h#n...
vm/base_isolate.h:36: Zone* current_zone_;
On 2012/04/06 17:30:14, asiva wrote:
> DISALLOW_COPY_AND_ASSIGN(BaseIsolate);

Done.

Powered by Google App Engine
This is Rietveld 408576698