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

Unified Diff: runtime/vm/compiler.cc

Issue 1016973002: Move CHA state keeping from Isolate to Thread. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/cha_test.cc ('k') | runtime/vm/flow_graph_optimizer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/compiler.cc
===================================================================
--- runtime/vm/compiler.cc (revision 44544)
+++ runtime/vm/compiler.cc (working copy)
@@ -397,7 +397,7 @@
// Class hierarchy analysis is registered with the isolate in the
// constructor and unregisters itself upon destruction.
- CHA cha(isolate);
+ CHA cha(thread);
// TimerScope needs an isolate to be properly terminated in case of a
// LongJump.
@@ -745,9 +745,9 @@
// Register code with the classes it depends on because of CHA.
for (intptr_t i = 0;
- i < isolate->cha()->leaf_classes().length();
+ i < thread->cha()->leaf_classes().length();
++i) {
- isolate->cha()->leaf_classes()[i]->RegisterCHACode(code);
+ thread->cha()->leaf_classes()[i]->RegisterCHACode(code);
}
for (intptr_t i = 0;
« no previous file with comments | « runtime/vm/cha_test.cc ('k') | runtime/vm/flow_graph_optimizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698