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

Unified Diff: runtime/vm/code_descriptors.cc

Issue 10830131: Adding deopt info to code object. (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
Index: runtime/vm/code_descriptors.cc
===================================================================
--- runtime/vm/code_descriptors.cc (revision 10150)
+++ runtime/vm/code_descriptors.cc (working copy)
@@ -21,6 +21,21 @@
}
+void DescriptorList::AddDeoptInfo(intptr_t pc_offset,
+ intptr_t node_id,
+ intptr_t token_index,
+ intptr_t deopt_array_index) {
+ struct PcDesc data;
+ data.pc_offset = pc_offset;
+ data.kind = PcDescriptors::kDeoptIndex;
+ data.node_id = node_id;
+ data.token_index = token_index;
+ // Try_index is reused for deopt_array_index.
+ data.try_index = deopt_array_index;
+ list_.Add(data);
+}
+
+
RawPcDescriptors* DescriptorList::FinalizePcDescriptors(uword entry_point) {
intptr_t num_descriptors = Length();
const PcDescriptors& descriptors =

Powered by Google App Engine
This is Rietveld 408576698