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

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

Issue 811763004: Modify Bigint _mulAdd, _sqrAdd, _estQuotientDigit, and Montgomery _mulMod (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 12 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 | Annotate | Revision Log
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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 // List of intrinsics: 153 // List of intrinsics:
154 // (class-name, function-name, intrinsification method, fingerprint). 154 // (class-name, function-name, intrinsification method, fingerprint).
155 #define CORE_LIB_INTRINSIC_LIST(V) \ 155 #define CORE_LIB_INTRINSIC_LIST(V) \
156 V(_Smi, ~, Smi_bitNegate, 134149043) \ 156 V(_Smi, ~, Smi_bitNegate, 134149043) \
157 V(_Smi, get:bitLength, Smi_bitLength, 869986288) \ 157 V(_Smi, get:bitLength, Smi_bitLength, 869986288) \
158 V(_Bigint, set:_neg, Bigint_setNeg, 1924982939) \ 158 V(_Bigint, set:_neg, Bigint_setNeg, 1924982939) \
159 V(_Bigint, set:_used, Bigint_setUsed, 1574448752) \ 159 V(_Bigint, set:_used, Bigint_setUsed, 1574448752) \
160 V(_Bigint, _set_digits, Bigint_setDigits, 1865626071) \ 160 V(_Bigint, _set_digits, Bigint_setDigits, 1865626071) \
161 V(_Bigint, _absAdd, Bigint_absAdd, 97148049) \ 161 V(_Bigint, _absAdd, Bigint_absAdd, 97148049) \
162 V(_Bigint, _absSub, Bigint_absSub, 159012285) \ 162 V(_Bigint, _absSub, Bigint_absSub, 159012285) \
163 V(_Bigint, _mulAdd, Bigint_mulAdd, 101252203) \ 163 V(_Bigint, _mulAdd, Bigint_mulAdd, 1625285265) \
164 V(_Bigint, _sqrAdd, Bigint_sqrAdd, 1684445648) \ 164 V(_Bigint, _sqrAdd, Bigint_sqrAdd, 56442243) \
165 V(_Bigint, _estQuotientDigit, Bigint_estQuotientDigit, 649845040) \ 165 V(_Bigint, _estQuotientDigit, Bigint_estQuotientDigit, 1844507489) \
166 V(_Montgomery, _mulMod, Montgomery_mulMod, 1551846228) \ 166 V(_Montgomery, _mulMod, Montgomery_mulMod, 1004817085) \
167 V(_Double, >, Double_greaterThan, 1538121903) \ 167 V(_Double, >, Double_greaterThan, 1538121903) \
168 V(_Double, >=, Double_greaterEqualThan, 1058495718) \ 168 V(_Double, >=, Double_greaterEqualThan, 1058495718) \
169 V(_Double, <, Double_lessThan, 62910596) \ 169 V(_Double, <, Double_lessThan, 62910596) \
170 V(_Double, <=, Double_lessEqualThan, 1902937798) \ 170 V(_Double, <=, Double_lessEqualThan, 1902937798) \
171 V(_Double, ==, Double_equal, 793601203) \ 171 V(_Double, ==, Double_equal, 793601203) \
172 V(_Double, +, Double_add, 655662995) \ 172 V(_Double, +, Double_add, 655662995) \
173 V(_Double, -, Double_sub, 486771820) \ 173 V(_Double, -, Double_sub, 486771820) \
174 V(_Double, *, Double_mul, 343893321) \ 174 V(_Double, *, Double_mul, 343893321) \
175 V(_Double, /, Double_div, 947349699) \ 175 V(_Double, /, Double_div, 947349699) \
176 V(_Double, get:isNaN, Double_getIsNaN, 843079824) \ 176 V(_Double, get:isNaN, Double_getIsNaN, 843079824) \
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 V(_Bigint, get:_used, Bigint_getUsed, 1308559334) \ 381 V(_Bigint, get:_used, Bigint_getUsed, 1308559334) \
382 V(_Bigint, set:_used, Bigint_setUsed, 1574448752) \ 382 V(_Bigint, set:_used, Bigint_setUsed, 1574448752) \
383 V(_Bigint, get:_digits, Bigint_getDigits, 1408092463) \ 383 V(_Bigint, get:_digits, Bigint_getDigits, 1408092463) \
384 V(_Bigint, set:_digits, Bigint_setDigits, 1625268649) \ 384 V(_Bigint, set:_digits, Bigint_setDigits, 1625268649) \
385 V(_Bigint, _set_digits, Bigint_setDigits, 1865626071) \ 385 V(_Bigint, _set_digits, Bigint_setDigits, 1865626071) \
386 386
387 // A list of core function that should never be inlined. 387 // A list of core function that should never be inlined.
388 #define INLINE_BLACK_LIST(V) \ 388 #define INLINE_BLACK_LIST(V) \
389 V(_Bigint, _absAdd, Bigint_absAdd, 97148049) \ 389 V(_Bigint, _absAdd, Bigint_absAdd, 97148049) \
390 V(_Bigint, _absSub, Bigint_absSub, 159012285) \ 390 V(_Bigint, _absSub, Bigint_absSub, 159012285) \
391 V(_Bigint, _mulAdd, Bigint_mulAdd, 101252203) \ 391 V(_Bigint, _mulAdd, Bigint_mulAdd, 1625285265) \
392 V(_Bigint, _sqrAdd, Bigint_sqrAdd, 1684445648) \ 392 V(_Bigint, _sqrAdd, Bigint_sqrAdd, 56442243) \
393 V(_Bigint, _estQuotientDigit, Bigint_estQuotientDigit, 649845040) \ 393 V(_Bigint, _estQuotientDigit, Bigint_estQuotientDigit, 1844507489) \
394 V(_Montgomery, _mulMod, Montgomery_mulMod, 1551846228) \ 394 V(_Montgomery, _mulMod, Montgomery_mulMod, 1004817085) \
395 395
396 // A list of core functions that internally dispatch based on received id. 396 // A list of core functions that internally dispatch based on received id.
397 #define POLYMORPHIC_TARGET_LIST(V) \ 397 #define POLYMORPHIC_TARGET_LIST(V) \
398 V(_StringBase, [], StringBaseCharAt, 1107537364) \ 398 V(_StringBase, [], StringBaseCharAt, 1107537364) \
399 V(_StringBase, codeUnitAt, StringBaseCodeUnitAt, 397735324) \ 399 V(_StringBase, codeUnitAt, StringBaseCodeUnitAt, 397735324) \
400 V(_TypedList, _getInt8, ByteArrayBaseGetInt8, 1541411498) \ 400 V(_TypedList, _getInt8, ByteArrayBaseGetInt8, 1541411498) \
401 V(_TypedList, _getUint8, ByteArrayBaseGetUint8, 1032404349) \ 401 V(_TypedList, _getUint8, ByteArrayBaseGetUint8, 1032404349) \
402 V(_TypedList, _getInt16, ByteArrayBaseGetInt16, 381073990) \ 402 V(_TypedList, _getInt16, ByteArrayBaseGetInt16, 381073990) \
403 V(_TypedList, _getUint16, ByteArrayBaseGetUint16, 1142676276) \ 403 V(_TypedList, _getUint16, ByteArrayBaseGetUint16, 1142676276) \
404 V(_TypedList, _getInt32, ByteArrayBaseGetInt32, 330269934) \ 404 V(_TypedList, _getInt32, ByteArrayBaseGetInt32, 330269934) \
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 static Kind RecognizeKind(const Function& function); 437 static Kind RecognizeKind(const Function& function);
438 static bool AlwaysInline(const Function& function); 438 static bool AlwaysInline(const Function& function);
439 static bool PolymorphicTarget(const Function& function); 439 static bool PolymorphicTarget(const Function& function);
440 static const char* KindToCString(Kind kind); 440 static const char* KindToCString(Kind kind);
441 static void InitializeState(); 441 static void InitializeState();
442 }; 442 };
443 443
444 } // namespace dart 444 } // namespace dart
445 445
446 #endif // VM_METHOD_RECOGNIZER_H_ 446 #endif // VM_METHOD_RECOGNIZER_H_
OLDNEW
« no previous file with comments | « runtime/vm/intrinsifier_x64.cc ('k') | runtime/vm/object.cc » ('j') | runtime/vm/object.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698