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

Unified Diff: runtime/vm/code_descriptors.cc

Issue 10885039: Deoptimization can occur at Dart calls (includes native calls to C) but not at runtime calls. This … (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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/code_descriptors.h ('k') | runtime/vm/code_generator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/code_descriptors.cc
===================================================================
--- runtime/vm/code_descriptors.cc (revision 11621)
+++ runtime/vm/code_descriptors.cc (working copy)
@@ -15,21 +15,21 @@
data.pc_offset = pc_offset;
data.kind = kind;
data.deopt_id = deopt_id;
- data.token_index = token_index;
+ data.SetTokenPos(token_index);
data.try_index = try_index;
list_.Add(data);
}
-void DescriptorList::AddDeoptInfo(intptr_t pc_offset,
- intptr_t deopt_id,
- intptr_t token_index,
- intptr_t deopt_array_index) {
+void DescriptorList::AddDeoptIndex(intptr_t pc_offset,
+ intptr_t deopt_id,
+ DeoptReasonId deopt_reason,
+ intptr_t deopt_array_index) {
struct PcDesc data;
data.pc_offset = pc_offset;
data.kind = PcDescriptors::kDeoptIndex;
data.deopt_id = deopt_id;
- data.token_index = token_index;
+ data.SetDeoptReason(deopt_reason);
// Try_index is reused for deopt_array_index.
data.try_index = deopt_array_index;
list_.Add(data);
« no previous file with comments | « runtime/vm/code_descriptors.h ('k') | runtime/vm/code_generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698