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

Unified Diff: runtime/vm/flow_graph_compiler_dbc.cc

Issue 2111803003: DBC: Remove special case from CheckClassInstr. Cleanup. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: 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
Index: runtime/vm/flow_graph_compiler_dbc.cc
diff --git a/runtime/vm/flow_graph_compiler_dbc.cc b/runtime/vm/flow_graph_compiler_dbc.cc
index 81c639e89bf50623bd53c0d2fa4d2c8b838ba533..004079ee40382118c42650a294f461f4b80d26c9 100644
--- a/runtime/vm/flow_graph_compiler_dbc.cc
+++ b/runtime/vm/flow_graph_compiler_dbc.cc
@@ -398,6 +398,16 @@ void FlowGraphCompiler::CompileGraph() {
}
+uint16_t FlowGraphCompiler::ToEmbeddableCid(intptr_t cid,
+ Instruction* instruction) {
+ if (!Utils::IsUint(16, cid)) {
+ instruction->Unsupported();
+ UNREACHABLE();
+ }
+ return static_cast<uint16_t>(cid);
+}
+
+
#undef __
#define __ compiler_->assembler()->
@@ -417,6 +427,7 @@ void ParallelMoveResolver::EmitMove(int index) {
__ LoadConstant(destination.reg(), source.constant());
} else {
compiler_->Bailout("Unsupported move");
+ UNREACHABLE();
}
move->Eliminate();

Powered by Google App Engine
This is Rietveld 408576698