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

Unified Diff: runtime/vm/flow_graph_compiler_ia32.cc

Issue 575443002: Refactor generating lazy deoptimization descriptors. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 3 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/flow_graph_compiler_arm64.cc ('k') | runtime/vm/flow_graph_compiler_mips.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_compiler_ia32.cc
===================================================================
--- runtime/vm/flow_graph_compiler_ia32.cc (revision 40149)
+++ runtime/vm/flow_graph_compiler_ia32.cc (working copy)
@@ -1110,8 +1110,7 @@
RawPcDescriptors::Kind kind,
LocationSummary* locs) {
__ call(label);
- AddCurrentDescriptor(kind, Isolate::kNoDeoptId, token_pos);
- RecordSafepoint(locs);
+ RecordCallInfo(token_pos, kind, Isolate::kNoDeoptId, locs, 0);
}
@@ -1121,18 +1120,7 @@
RawPcDescriptors::Kind kind,
LocationSummary* locs) {
__ call(label);
- AddCurrentDescriptor(kind, deopt_id, token_pos);
- RecordSafepoint(locs);
- // Marks either the continuation point in unoptimized code or the
- // deoptimization point in optimized code, after call.
- const intptr_t deopt_id_after = Isolate::ToDeoptAfter(deopt_id);
- if (is_optimizing()) {
- AddDeoptIndexAtCall(deopt_id_after, token_pos);
- } else {
- // Add deoptimization continuation point after the call and before the
- // arguments are removed.
- AddCurrentDescriptor(RawPcDescriptors::kDeopt, deopt_id_after, token_pos);
- }
+ RecordCallInfo(token_pos, kind, deopt_id, locs, locs->input_count());
}
@@ -1142,20 +1130,7 @@
intptr_t argument_count,
LocationSummary* locs) {
__ CallRuntime(entry, argument_count);
- AddCurrentDescriptor(RawPcDescriptors::kOther, deopt_id, token_pos);
- RecordSafepoint(locs);
- if (deopt_id != Isolate::kNoDeoptId) {
- // Marks either the continuation point in unoptimized code or the
- // deoptimization point in optimized code, after call.
- const intptr_t deopt_id_after = Isolate::ToDeoptAfter(deopt_id);
- if (is_optimizing()) {
- AddDeoptIndexAtCall(deopt_id_after, token_pos);
- } else {
- // Add deoptimization continuation point after the call and before the
- // arguments are removed.
- AddCurrentDescriptor(RawPcDescriptors::kDeopt, deopt_id_after, token_pos);
- }
- }
+ RecordCallInfo(token_pos, RawPcDescriptors::kOther, deopt_id, locs, 0);
}
@@ -1297,10 +1272,8 @@
__ LoadObject(EDX, arguments_descriptor);
__ addl(EBX, Immediate(Instructions::HeaderSize() - kHeapObjectTag));
__ call(EBX);
- AddCurrentDescriptor(RawPcDescriptors::kOther,
- Isolate::kNoDeoptId, token_pos);
- RecordSafepoint(locs);
- AddDeoptIndexAtCall(Isolate::ToDeoptAfter(deopt_id), token_pos);
+ RecordCallInfo(
+ token_pos, RawPcDescriptors::kOther, deopt_id, locs, locs->input_count());
__ Drop(argument_count);
}
« no previous file with comments | « runtime/vm/flow_graph_compiler_arm64.cc ('k') | runtime/vm/flow_graph_compiler_mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698