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

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

Issue 1670113004: VM: Optimized calls to asin, acos, tan. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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 unified diff | Download patch
« no previous file with comments | « runtime/vm/intermediate_language.cc ('k') | runtime/vm/runtime_entry_list.h » ('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) 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 V(_Double, roundToDouble, DoubleRound, 2124216110) \ 47 V(_Double, roundToDouble, DoubleRound, 2124216110) \
48 V(_Double, floorToDouble, DoubleFloor, 968600699) \ 48 V(_Double, floorToDouble, DoubleFloor, 968600699) \
49 V(_Double, ceilToDouble, DoubleCeil, 1779929274) \ 49 V(_Double, ceilToDouble, DoubleCeil, 1779929274) \
50 V(_Double, _modulo, DoubleMod, 1473971007) \ 50 V(_Double, _modulo, DoubleMod, 1473971007) \
51 V(_Double, _add, DoubleAdd, 1570715125) \ 51 V(_Double, _add, DoubleAdd, 1570715125) \
52 V(_Double, _sub, DoubleSub, 1466395310) \ 52 V(_Double, _sub, DoubleSub, 1466395310) \
53 V(_Double, _mul, DoubleMul, 546441193) \ 53 V(_Double, _mul, DoubleMul, 546441193) \
54 V(_Double, _div, DoubleDiv, 1201505037) \ 54 V(_Double, _div, DoubleDiv, 1201505037) \
55 V(::, sin, MathSin, 1741396147) \ 55 V(::, sin, MathSin, 1741396147) \
56 V(::, cos, MathCos, 1951197905) \ 56 V(::, cos, MathCos, 1951197905) \
57 V(::, tan, MathTan, 982072809) \
58 V(::, asin, MathAsin, 1651042633) \
59 V(::, acos, MathAcos, 1139647090) \
57 V(::, atan, MathAtan, 1668754384) \ 60 V(::, atan, MathAtan, 1668754384) \
58 V(::, atan2, MathAtan2, 1931713076) \ 61 V(::, atan2, MathAtan2, 1931713076) \
59 V(::, min, MathMin, 478627534) \ 62 V(::, min, MathMin, 478627534) \
60 V(::, max, MathMax, 212291192) \ 63 V(::, max, MathMax, 212291192) \
61 V(::, _doublePow, MathDoublePow, 1286501289) \ 64 V(::, _doublePow, MathDoublePow, 1286501289) \
62 V(Float32x4, Float32x4., Float32x4Constructor, 1413513587) \ 65 V(Float32x4, Float32x4., Float32x4Constructor, 1413513587) \
63 V(Float32x4, Float32x4.zero, Float32x4Zero, 865663495) \ 66 V(Float32x4, Float32x4.zero, Float32x4Zero, 865663495) \
64 V(Float32x4, Float32x4.splat, Float32x4Splat, 964312836) \ 67 V(Float32x4, Float32x4.splat, Float32x4Splat, 964312836) \
65 V(Float32x4, Float32x4.fromInt32x4Bits, Float32x4FromInt32x4Bits, 688177588) \ 68 V(Float32x4, Float32x4.fromInt32x4Bits, Float32x4FromInt32x4Bits, 688177588) \
66 V(Float32x4, Float32x4.fromFloat64x2, Float32x4FromFloat64x2, 1327692716) \ 69 V(Float32x4, Float32x4.fromFloat64x2, Float32x4FromFloat64x2, 1327692716) \
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 // Class that recognizes factories and returns corresponding result cid. 538 // Class that recognizes factories and returns corresponding result cid.
536 class FactoryRecognizer : public AllStatic { 539 class FactoryRecognizer : public AllStatic {
537 public: 540 public:
538 // Return kDynamicCid if factory is not recognized. 541 // Return kDynamicCid if factory is not recognized.
539 static intptr_t ResultCid(const Function& factory); 542 static intptr_t ResultCid(const Function& factory);
540 }; 543 };
541 544
542 } // namespace dart 545 } // namespace dart
543 546
544 #endif // VM_METHOD_RECOGNIZER_H_ 547 #endif // VM_METHOD_RECOGNIZER_H_
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language.cc ('k') | runtime/vm/runtime_entry_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698