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

Side by Side Diff: runtime/vm/intrinsifier.h

Issue 1821783002: Add graph intrinsics for many math library functions (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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 unified diff | Download patch
« no previous file with comments | « runtime/vm/intermediate_language.cc ('k') | runtime/vm/intrinsifier.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 // Class for intrinsifying functions. 4 // Class for intrinsifying functions.
5 5
6 #ifndef VM_INTRINSIFIER_H_ 6 #ifndef VM_INTRINSIFIER_H_
7 #define VM_INTRINSIFIER_H_ 7 #define VM_INTRINSIFIER_H_
8 8
9 #include "vm/allocation.h" 9 #include "vm/allocation.h"
10 #include "vm/method_recognizer.h" 10 #include "vm/method_recognizer.h"
(...skipping 14 matching lines...) Expand all
25 FlowGraphCompiler* compiler); 25 FlowGraphCompiler* compiler);
26 #if defined(DART_NO_SNAPSHOT) 26 #if defined(DART_NO_SNAPSHOT)
27 static void InitializeState(); 27 static void InitializeState();
28 #endif 28 #endif
29 29
30 static bool GraphIntrinsify(const ParsedFunction& parsed_function, 30 static bool GraphIntrinsify(const ParsedFunction& parsed_function,
31 FlowGraphCompiler* compiler); 31 FlowGraphCompiler* compiler);
32 32
33 static intptr_t ParameterSlotFromSp(); 33 static intptr_t ParameterSlotFromSp();
34 34
35 static void IntrinsicCallPrologue(Assembler* assembler);
36 static void IntrinsicCallEpilogue(Assembler* assembler);
37
35 private: 38 private:
36 static bool CanIntrinsify(const Function& function); 39 static bool CanIntrinsify(const Function& function);
37 40
38 #define DECLARE_FUNCTION(test_class_name, test_function_name, enum_name, fp) \ 41 #define DECLARE_FUNCTION(test_class_name, test_function_name, enum_name, fp) \
39 static void enum_name(Assembler* assembler); 42 static void enum_name(Assembler* assembler);
40 43
41 ALL_INTRINSICS_LIST(DECLARE_FUNCTION) 44 ALL_INTRINSICS_LIST(DECLARE_FUNCTION)
42 45
43 #undef DECLARE_FUNCTION 46 #undef DECLARE_FUNCTION
44 47
45 #define DECLARE_FUNCTION(test_class_name, test_function_name, enum_name, fp) \ 48 #define DECLARE_FUNCTION(test_class_name, test_function_name, enum_name, fp) \
46 static bool Build_##enum_name(FlowGraph* flow_graph); 49 static bool Build_##enum_name(FlowGraph* flow_graph);
47 50
48 GRAPH_INTRINSICS_LIST(DECLARE_FUNCTION) 51 GRAPH_INTRINSICS_LIST(DECLARE_FUNCTION)
49 52
50 #undef DECLARE_FUNCTION 53 #undef DECLARE_FUNCTION
51 }; 54 };
52 55
53 } // namespace dart 56 } // namespace dart
54 57
55 #endif // VM_INTRINSIFIER_H_ 58 #endif // VM_INTRINSIFIER_H_
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language.cc ('k') | runtime/vm/intrinsifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698