Index: runtime/vm/intrinsifier.cc |
diff --git a/runtime/vm/intrinsifier.cc b/runtime/vm/intrinsifier.cc |
index af15e7a7f2a81df0e199b6cf7518a5bc31da34a0..97eeb67af07bdb739d6773b2eee8ad66e86bf9be 100644 |
--- a/runtime/vm/intrinsifier.cc |
+++ b/runtime/vm/intrinsifier.cc |
@@ -95,6 +95,7 @@ void Intrinsifier::InitializeState() { |
#endif // defined(DART_NO_SNAPSHOT). |
+#if !defined(TARGET_ARCH_DBC) |
static void EmitCodeFor(FlowGraphCompiler* compiler, |
FlowGraph* graph) { |
// The FlowGraph here is constructed by the intrinsics builder methods, and |
@@ -124,10 +125,14 @@ static void EmitCodeFor(FlowGraphCompiler* compiler, |
} |
} |
} |
+#endif |
bool Intrinsifier::GraphIntrinsify(const ParsedFunction& parsed_function, |
FlowGraphCompiler* compiler) { |
+#if defined(TARGET_ARCH_DBC) |
+ return false; |
+#else |
ZoneGrowableArray<const ICData*>* ic_data_array = |
new ZoneGrowableArray<const ICData*>(); |
FlowGraphBuilder builder(parsed_function, |
@@ -174,6 +179,7 @@ bool Intrinsifier::GraphIntrinsify(const ParsedFunction& parsed_function, |
} |
EmitCodeFor(compiler, graph); |
return true; |
+#endif |
} |
@@ -205,10 +211,20 @@ void Intrinsifier::Intrinsify(const ParsedFunction& parsed_function, |
default: |
break; |
} |
+ |
+#if defined(TARGET_ARCH_DBC) |
+ switch (function.recognized_kind()) { |
+ GRAPH_INTRINSICS_LIST(EMIT_CASE) |
+ default: |
+ break; |
+ } |
+#endif |
+ |
#undef EMIT_INTRINSIC |
} |
+#if !defined(TARGET_ARCH_DBC) |
static intptr_t CidForRepresentation(Representation rep) { |
switch (rep) { |
case kUnboxedDouble: |
@@ -882,5 +898,6 @@ bool Intrinsifier::Build_DoubleFlipSignBit(FlowGraph* flow_graph) { |
builder.AddIntrinsicReturn(new Value(result)); |
return true; |
} |
+#endif |
} // namespace dart |