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

Unified Diff: runtime/vm/flow_graph_builder.cc

Issue 9559012: Adding Native Call node : a native function consists of that node, it does call into C runtime. In … (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 10 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 | « no previous file | runtime/vm/flow_graph_compiler_x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_builder.cc
===================================================================
--- runtime/vm/flow_graph_builder.cc (revision 4804)
+++ runtime/vm/flow_graph_builder.cc (working copy)
@@ -461,7 +461,8 @@
void EffectGraphVisitor::VisitNativeBodyNode(NativeBodyNode* node) {
- Bailout("EffectGraphVisitor::VisitNativeBodyNode");
+ NativeCallComp* native_call = new NativeCallComp(node);
+ ReturnComputation(native_call);
}
@@ -681,6 +682,11 @@
}
+void FlowGraphPrinter::VisitNativeCall(NativeCallComp* comp) {
+ OS::Print("NativeCall(%s)", comp->native_name().ToCString());
+}
+
+
void FlowGraphPrinter::VisitJoinEntry(JoinEntryInstr* instr) {
OS::Print("%2d: [join]", instr->block_number());
}
« no previous file with comments | « no previous file | runtime/vm/flow_graph_compiler_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698