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

Unified Diff: runtime/vm/method_recognizer.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/intrinsifier_x64.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/method_recognizer.h
diff --git a/runtime/vm/method_recognizer.h b/runtime/vm/method_recognizer.h
index f4d6b068d50beca0a224cbaf5a9eb7342bf16fff..f268c678adb964d234df1ac0f1e5c20b47668d6f 100644
--- a/runtime/vm/method_recognizer.h
+++ b/runtime/vm/method_recognizer.h
@@ -52,13 +52,6 @@ namespace dart {
V(_Double, _sub, DoubleSub, 1086286468) \
V(_Double, _mul, DoubleMul, 166332351) \
V(_Double, _div, DoubleDiv, 821396195) \
- V(::, sin, MathSin, 939048573) \
- V(::, cos, MathCos, 1148850331) \
- V(::, tan, MathTan, 179725235) \
- V(::, asin, MathAsin, 848695059) \
- V(::, acos, MathAcos, 337299516) \
- V(::, atan, MathAtan, 866406810) \
- V(::, atan2, MathAtan2, 1901969510) \
V(::, min, MathMin, 1115051548) \
V(::, max, MathMax, 1410473322) \
V(::, _doublePow, MathDoublePow, 562154128) \
@@ -243,6 +236,14 @@ namespace dart {
V(::, sqrt, MathSqrt, 1446681622) \
V(_Random, _nextState, Random_nextState, 1241583299) \
+#define GRAPH_MATH_LIB_INTRINSIC_LIST(V) \
+ V(::, sin, MathSin, 939048573) \
+ V(::, cos, MathCos, 1148850331) \
+ V(::, tan, MathTan, 179725235) \
+ V(::, asin, MathAsin, 848695059) \
+ V(::, acos, MathAcos, 337299516) \
+ V(::, atan, MathAtan, 866406810) \
+ V(::, atan2, MathAtan2, 1901969510) \
#define TYPED_DATA_LIB_INTRINSIC_LIST(V) \
V(Int8List, ., TypedData_Int8Array_factory, 779569635) \
@@ -295,6 +296,7 @@ namespace dart {
#define GRAPH_INTRINSICS_LIST(V) \
GRAPH_CORE_INTRINSICS_LIST(V) \
GRAPH_TYPED_DATA_INTRINSICS_LIST(V) \
+ GRAPH_MATH_LIB_INTRINSIC_LIST(V) \
#define DEVELOPER_LIB_INTRINSIC_LIST(V) \
V(_UserTag, makeCurrent, UserTag_makeCurrent, 187721469) \
« no previous file with comments | « runtime/vm/intrinsifier_x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698