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

Unified Diff: runtime/vm/isolate.cc

Issue 10830109: Add type propagation phase in optimizing compiler (work in progress). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 5 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/isolate.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/isolate.cc
===================================================================
--- runtime/vm/isolate.cc (revision 10124)
+++ runtime/vm/isolate.cc (working copy)
@@ -305,6 +305,21 @@
}
+ICData* Isolate::GetICDataForCid(intptr_t cid) const {
+ if (ic_data_array() == Array::null()) {
+ return NULL;
+ }
+ const Array& array_handle = Array::Handle(ic_data_array());
+ if (cid >= array_handle.Length()) {
+ // For computations being added in the optimizing compiler.
+ return NULL;
+ }
+ ICData& ic_data_handle = ICData::ZoneHandle();
+ ic_data_handle ^= array_handle.At(cid);
+ return &ic_data_handle;
+}
+
+
static int MostUsedFunctionFirst(const Function* const* a,
const Function* const* b) {
if ((*a)->usage_counter() > (*b)->usage_counter()) {
« no previous file with comments | « runtime/vm/isolate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698