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

Unified Diff: runtime/vm/stack_frame.cc

Issue 1054393003: Compress deopt instructions in memory using variable length encoding. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: landing Created 5 years, 8 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/stack_frame.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/stack_frame.cc
diff --git a/runtime/vm/stack_frame.cc b/runtime/vm/stack_frame.cc
index f8537c3a5f0d94196b5fabc75f739779f99a50f9..8e3806c333f72b53bcda5cd4338e9a94c4cdb526 100644
--- a/runtime/vm/stack_frame.cc
+++ b/runtime/vm/stack_frame.cc
@@ -430,7 +430,7 @@ InlinedFunctionsIterator::InlinedFunctionsIterator(const Code& code, uword pc)
: index_(0),
num_materializations_(0),
code_(Code::Handle(code.raw())),
- deopt_info_(DeoptInfo::Handle()),
+ deopt_info_(TypedData::Handle()),
function_(Function::Handle()),
pc_(pc),
deopt_instructions_(),
@@ -450,8 +450,8 @@ InlinedFunctionsIterator::InlinedFunctionsIterator(const Code& code, uword pc)
// Unpack deopt info into instructions (translate away suffixes).
const Array& deopt_table = Array::Handle(code_.deopt_info_array());
ASSERT(!deopt_table.IsNull());
- deopt_info_.ToInstructions(deopt_table, &deopt_instructions_);
- num_materializations_ = deopt_info_.NumMaterializations();
+ DeoptInfo::Unpack(deopt_table, deopt_info_, &deopt_instructions_);
+ num_materializations_ = DeoptInfo::NumMaterializations(deopt_instructions_);
object_table_ = code_.object_table();
Advance();
}
« no previous file with comments | « runtime/vm/stack_frame.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698