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

Unified Diff: runtime/vm/flow_graph_compiler.cc

Issue 2039913006: DBC: Eager deoptimization and CheckSmi instruction. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Address comments Created 4 years, 6 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.h ('k') | runtime/vm/flow_graph_compiler_dbc.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_compiler.cc
diff --git a/runtime/vm/flow_graph_compiler.cc b/runtime/vm/flow_graph_compiler.cc
index b403bbf7fa677161f9c64a0e3a899e302e8dd51e..8632f7f40c4096d74064d7c34c4f5f14cfb048ec 100644
--- a/runtime/vm/flow_graph_compiler.cc
+++ b/runtime/vm/flow_graph_compiler.cc
@@ -987,6 +987,25 @@ Label* FlowGraphCompiler::AddDeoptStub(intptr_t deopt_id,
}
+#if defined(TARGET_ARCH_DBC)
+void FlowGraphCompiler::EmitDeopt(intptr_t deopt_id,
+ ICData::DeoptReasonId reason,
+ uint32_t flags) {
+ ASSERT(is_optimizing());
+ ASSERT(!intrinsic_mode());
+ CompilerDeoptInfo* info =
+ new(zone()) CompilerDeoptInfo(deopt_id,
+ reason,
+ flags,
+ pending_deoptimization_env_);
+
+ deopt_infos_.Add(info);
+ assembler()->Deopt(0, /*is_eager =*/ 1);
+ info->set_pc_offset(assembler()->CodeSize());
+}
+#endif // defined(TARGET_ARCH_DBC)
+
+
void FlowGraphCompiler::FinalizeExceptionHandlers(const Code& code) {
ASSERT(exception_handlers_list_ != NULL);
const ExceptionHandlers& handlers = ExceptionHandlers::Handle(
« no previous file with comments | « runtime/vm/flow_graph_compiler.h ('k') | runtime/vm/flow_graph_compiler_dbc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698