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

Unified Diff: runtime/vm/isolate.cc

Issue 15470013: Remove the IC data array from the isolate. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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
diff --git a/runtime/vm/isolate.cc b/runtime/vm/isolate.cc
index fe15ff307a025f556b3755634d61f82ece4bde24..6c41997a1452dd09d20f107b086666705c84d955 100644
--- a/runtime/vm/isolate.cc
+++ b/runtime/vm/isolate.cc
@@ -382,7 +382,6 @@ Isolate::Isolate()
long_jump_base_(NULL),
timer_list_(),
deopt_id_(0),
- ic_data_array_(Array::null()),
mutex_(new Mutex()),
stack_limit_(0),
saved_stack_limit_(0),
@@ -650,21 +649,6 @@ uword Isolate::GetAndClearInterrupts() {
}
-ICData* Isolate::GetICDataForDeoptId(intptr_t deopt_id) const {
- if (ic_data_array() == Array::null()) {
- return &ICData::ZoneHandle();
- }
- const Array& array_handle = Array::Handle(ic_data_array());
- if (deopt_id >= array_handle.Length()) {
- // For computations being added in the optimizing compiler.
- return &ICData::ZoneHandle();
- }
- ICData& ic_data_handle = ICData::ZoneHandle();
- ic_data_handle ^= array_handle.At(deopt_id);
- return &ic_data_handle;
-}
-
-
static int MostUsedFunctionFirst(const Function* const* a,
const Function* const* b) {
if ((*a)->usage_counter() > (*b)->usage_counter()) {
@@ -837,9 +821,6 @@ void Isolate::VisitObjectPointers(ObjectPointerVisitor* visitor,
// Visit the top context which is stored in the isolate.
visitor->VisitPointer(reinterpret_cast<RawObject**>(&top_context_));
- // Visit the currently active IC data array.
- visitor->VisitPointer(reinterpret_cast<RawObject**>(&ic_data_array_));
-
// Visit objects in the debugger.
debugger()->VisitObjectPointers(visitor);
}
« 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