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

Issue 10825483: Add --use_cha (default true, switch to false if you use dynamic class loading). Use CHA to specify … (Closed)

Created:
8 years, 4 months ago by srdjan
Modified:
8 years, 4 months ago
Reviewers:
regis, siva
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Add --use_cha (default true, switch to false if you use dynamic class loading). Use CHA to specify receiver class if no subclasses of the receiver exist, eliminate check class computation. Remove all optimized code whenever we load scripts/libraries/snapshots. Currently this occurs only when no Dart frame is live on stack. Future change (deoptimization) will allow dynamic class loading in presence of live Dart frames. The cost of removing all optimized code is supposed to be low. If that assumptions turns out to be false I can add more elaborate tracking of optimized functions. Committed: https://code.google.com/p/dart/source/detail?r=11106

Patch Set 1 #

Total comments: 6

Patch Set 2 : #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -3 lines) Patch
M runtime/vm/class_table.h View 1 1 chunk +7 lines, -0 lines 0 comments Download
M runtime/vm/dart_api_impl.cc View 1 5 chunks +41 lines, -0 lines 0 comments Download
M runtime/vm/flow_graph_optimizer.cc View 1 4 chunks +10 lines, -1 line 0 comments Download
M runtime/vm/intermediate_language_ia32.cc View 1 2 chunks +8 lines, -1 line 0 comments Download
M runtime/vm/intermediate_language_x64.cc View 1 2 2 chunks +8 lines, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
srdjan
8 years, 4 months ago (2012-08-21 20:01:05 UTC) #1
regis
LGTM https://chromiumcodereview.appspot.com/10825483/diff/1/runtime/vm/dart_api_impl.cc File runtime/vm/dart_api_impl.cc (right): https://chromiumcodereview.appspot.com/10825483/diff/1/runtime/vm/dart_api_impl.cc#newcode3755 runtime/vm/dart_api_impl.cc:3755: intptr_t num_cids = class_table.NumCids(); const https://chromiumcodereview.appspot.com/10825483/diff/1/runtime/vm/flow_graph_optimizer.cc File runtime/vm/flow_graph_optimizer.cc ...
8 years, 4 months ago (2012-08-21 20:52:21 UTC) #2
siva
https://chromiumcodereview.appspot.com/10825483/diff/1/runtime/vm/dart_api_impl.cc File runtime/vm/dart_api_impl.cc (right): https://chromiumcodereview.appspot.com/10825483/diff/1/runtime/vm/dart_api_impl.cc#newcode3780 runtime/vm/dart_api_impl.cc:3780: } These checks on every load library/script/source seem pretty ...
8 years, 4 months ago (2012-08-21 21:39:19 UTC) #3
srdjan
https://chromiumcodereview.appspot.com/10825483/diff/1/runtime/vm/dart_api_impl.cc File runtime/vm/dart_api_impl.cc (right): https://chromiumcodereview.appspot.com/10825483/diff/1/runtime/vm/dart_api_impl.cc#newcode3755 runtime/vm/dart_api_impl.cc:3755: intptr_t num_cids = class_table.NumCids(); On 2012/08/21 20:52:21, regis wrote: ...
8 years, 4 months ago (2012-08-21 22:08:15 UTC) #4
siva
lgtm
8 years, 4 months ago (2012-08-21 22:21:11 UTC) #5
srdjan
8 years, 4 months ago (2012-08-21 22:31:39 UTC) #6
Added also the forgotten _x64 file.. same code as in ia32 version reviewed.

Powered by Google App Engine
This is Rietveld 408576698