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

Unified Diff: runtime/vm/intrinsifier.h

Issue 513213002: Generate some intrinsics using our IR. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: addressed Slava's feedback 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/intermediate_language_x64.cc ('k') | runtime/vm/intrinsifier.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intrinsifier.h
===================================================================
--- runtime/vm/intrinsifier.h (revision 39909)
+++ runtime/vm/intrinsifier.h (working copy)
@@ -13,25 +13,39 @@
// Forward declarations.
class Assembler;
+class FlowGraphCompiler;
class Function;
+class TargetEntryInstr;
+class ParsedFunction;
+class FlowGraph;
class Intrinsifier : public AllStatic {
public:
- // Try to intrinsify 'function'. Returns true if the function intrinsified
- // completely and the code does not need to be generated (i.e., no slow
- // path possible).
- static void Intrinsify(const Function& function, Assembler* assembler);
+ static void Intrinsify(ParsedFunction* parsed_function,
+ FlowGraphCompiler* compiler);
static void InitializeState();
+ static bool GraphIntrinsify(ParsedFunction* parsed_function,
+ FlowGraphCompiler* compiler);
+
+ static intptr_t ParameterSlotFromSp();
+
private:
static bool CanIntrinsify(const Function& function);
-#define DECLARE_FUNCTION(test_class_name, test_function_name, destination, fp) \
- static void destination(Assembler* assembler);
+#define DECLARE_FUNCTION(test_class_name, test_function_name, enum_name, fp) \
+ static void enum_name(Assembler* assembler);
ALL_INTRINSICS_LIST(DECLARE_FUNCTION)
#undef DECLARE_FUNCTION
+
+#define DECLARE_FUNCTION(test_class_name, test_function_name, enum_name, fp) \
+ static bool Build_##enum_name(FlowGraph* flow_graph);
+
+ GRAPH_INTRINSICS_LIST(DECLARE_FUNCTION)
+
+#undef DECLARE_FUNCTION
};
} // namespace dart
« no previous file with comments | « runtime/vm/intermediate_language_x64.cc ('k') | runtime/vm/intrinsifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698