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

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

Issue 1832343003: Intrinsify some double operations, helps in AOT (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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
« runtime/vm/intrinsifier.cc ('K') | « runtime/vm/intrinsifier.cc ('k') | no next file » | 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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 4
5 #ifndef VM_METHOD_RECOGNIZER_H_ 5 #ifndef VM_METHOD_RECOGNIZER_H_
6 #define VM_METHOD_RECOGNIZER_H_ 6 #define VM_METHOD_RECOGNIZER_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 9
10 namespace dart { 10 namespace dart {
(...skipping 25 matching lines...) Expand all
36 V(_TypedList, _setUint32, ByteArrayBaseSetUint32, 1325523969) \ 36 V(_TypedList, _setUint32, ByteArrayBaseSetUint32, 1325523969) \
37 V(_TypedList, _setInt64, ByteArrayBaseSetInt64, 935451230) \ 37 V(_TypedList, _setInt64, ByteArrayBaseSetInt64, 935451230) \
38 V(_TypedList, _setFloat32, ByteArrayBaseSetFloat32, 541136999) \ 38 V(_TypedList, _setFloat32, ByteArrayBaseSetFloat32, 541136999) \
39 V(_TypedList, _setFloat64, ByteArrayBaseSetFloat64, 365317124) \ 39 V(_TypedList, _setFloat64, ByteArrayBaseSetFloat64, 365317124) \
40 V(_TypedList, _setFloat32x4, ByteArrayBaseSetFloat32x4, 1766802707) \ 40 V(_TypedList, _setFloat32x4, ByteArrayBaseSetFloat32x4, 1766802707) \
41 V(_TypedList, _setInt32x4, ByteArrayBaseSetInt32x4, 2075229300) \ 41 V(_TypedList, _setInt32x4, ByteArrayBaseSetInt32x4, 2075229300) \
42 V(_StringBase, _interpolate, StringBaseInterpolate, 1597087225) \ 42 V(_StringBase, _interpolate, StringBaseInterpolate, 1597087225) \
43 V(_IntegerImplementation, toDouble, IntegerToDouble, 150718448) \ 43 V(_IntegerImplementation, toDouble, IntegerToDouble, 150718448) \
44 V(_IntegerImplementation, _leftShiftWithMask32, \ 44 V(_IntegerImplementation, _leftShiftWithMask32, \
45 IntegerLeftShiftWithMask32, 1634465017) \ 45 IntegerLeftShiftWithMask32, 1634465017) \
46 V(_Double, truncateToDouble, DoubleTruncate, 791143891) \
47 V(_Double, roundToDouble, DoubleRound, 797558034) \
48 V(_Double, floorToDouble, DoubleFloor, 1789426271) \
49 V(_Double, ceilToDouble, DoubleCeil, 453271198) \
50 V(_Double, _modulo, DoubleMod, 1093862165) \
51 V(_Double, _add, DoubleAdd, 1190606283) \ 46 V(_Double, _add, DoubleAdd, 1190606283) \
52 V(_Double, _sub, DoubleSub, 1086286468) \ 47 V(_Double, _sub, DoubleSub, 1086286468) \
53 V(_Double, _mul, DoubleMul, 166332351) \ 48 V(_Double, _mul, DoubleMul, 166332351) \
54 V(_Double, _div, DoubleDiv, 821396195) \ 49 V(_Double, _div, DoubleDiv, 821396195) \
55 V(::, min, MathMin, 1115051548) \ 50 V(::, min, MathMin, 1115051548) \
56 V(::, max, MathMax, 1410473322) \ 51 V(::, max, MathMax, 1410473322) \
57 V(::, _doublePow, MathDoublePow, 562154128) \ 52 V(::, _doublePow, MathDoublePow, 562154128) \
58 V(Float32x4, Float32x4., Float32x4Constructor, 93751705) \ 53 V(Float32x4, Float32x4., Float32x4Constructor, 93751705) \
59 V(Float32x4, Float32x4.zero, Float32x4Zero, 1193954374) \ 54 V(Float32x4, Float32x4.zero, Float32x4Zero, 1193954374) \
60 V(Float32x4, Float32x4.splat, Float32x4Splat, 12296613) \ 55 V(Float32x4, Float32x4.splat, Float32x4Splat, 12296613) \
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 V(_List, [], ObjectArrayGetIndexed, 360400496) \ 279 V(_List, [], ObjectArrayGetIndexed, 360400496) \
285 V(_ImmutableList, get:length, ImmutableArrayLength, 630471378) \ 280 V(_ImmutableList, get:length, ImmutableArrayLength, 630471378) \
286 V(_ImmutableList, [], ImmutableArrayGetIndexed, 360400496) \ 281 V(_ImmutableList, [], ImmutableArrayGetIndexed, 360400496) \
287 V(_GrowableList, get:length, GrowableArrayLength, 417111542) \ 282 V(_GrowableList, get:length, GrowableArrayLength, 417111542) \
288 V(_GrowableList, get:_capacity, GrowableArrayCapacity, 193746510) \ 283 V(_GrowableList, get:_capacity, GrowableArrayCapacity, 193746510) \
289 V(_GrowableList, _setData, GrowableArraySetData, 1496536873) \ 284 V(_GrowableList, _setData, GrowableArraySetData, 1496536873) \
290 V(_GrowableList, _setLength, GrowableArraySetLength, 32203572) \ 285 V(_GrowableList, _setLength, GrowableArraySetLength, 32203572) \
291 V(_GrowableList, [], GrowableArrayGetIndexed, 1957529650) \ 286 V(_GrowableList, [], GrowableArrayGetIndexed, 1957529650) \
292 V(_GrowableList, []=, GrowableArraySetIndexed, 225246870) \ 287 V(_GrowableList, []=, GrowableArraySetIndexed, 225246870) \
293 V(_StringBase, get:length, StringBaseLength, 707533587) \ 288 V(_StringBase, get:length, StringBaseLength, 707533587) \
294 V(_Double, unary-, DoubleFlipSignBit, 1783281169) 289 V(_Double, unary-, DoubleFlipSignBit, 1783281169) \
290 V(_Double, truncateToDouble, DoubleTruncate, 791143891) \
291 V(_Double, roundToDouble, DoubleRound, 797558034) \
292 V(_Double, floorToDouble, DoubleFloor, 1789426271) \
293 V(_Double, ceilToDouble, DoubleCeil, 453271198) \
294 V(_Double, _modulo, DoubleMod, 1093862165)
295
295 296
296 #define GRAPH_INTRINSICS_LIST(V) \ 297 #define GRAPH_INTRINSICS_LIST(V) \
297 GRAPH_CORE_INTRINSICS_LIST(V) \ 298 GRAPH_CORE_INTRINSICS_LIST(V) \
298 GRAPH_TYPED_DATA_INTRINSICS_LIST(V) \ 299 GRAPH_TYPED_DATA_INTRINSICS_LIST(V) \
299 GRAPH_MATH_LIB_INTRINSIC_LIST(V) \ 300 GRAPH_MATH_LIB_INTRINSIC_LIST(V) \
300 301
301 #define DEVELOPER_LIB_INTRINSIC_LIST(V) \ 302 #define DEVELOPER_LIB_INTRINSIC_LIST(V) \
302 V(_UserTag, makeCurrent, UserTag_makeCurrent, 187721469) \ 303 V(_UserTag, makeCurrent, UserTag_makeCurrent, 187721469) \
303 V(::, _getDefaultTag, UserTag_defaultTag, 1872263331) \ 304 V(::, _getDefaultTag, UserTag_defaultTag, 1872263331) \
304 V(::, _getCurrentTag, Profiler_getCurrentTag, 692104531) \ 305 V(::, _getCurrentTag, Profiler_getCurrentTag, 692104531) \
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
533 // Class that recognizes factories and returns corresponding result cid. 534 // Class that recognizes factories and returns corresponding result cid.
534 class FactoryRecognizer : public AllStatic { 535 class FactoryRecognizer : public AllStatic {
535 public: 536 public:
536 // Return kDynamicCid if factory is not recognized. 537 // Return kDynamicCid if factory is not recognized.
537 static intptr_t ResultCid(const Function& factory); 538 static intptr_t ResultCid(const Function& factory);
538 }; 539 };
539 540
540 } // namespace dart 541 } // namespace dart
541 542
542 #endif // VM_METHOD_RECOGNIZER_H_ 543 #endif // VM_METHOD_RECOGNIZER_H_
OLDNEW
« runtime/vm/intrinsifier.cc ('K') | « runtime/vm/intrinsifier.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698