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

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

Issue 701233003: Implement bigint intrinsics on arm64. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « runtime/vm/intrinsifier_arm64.cc ('k') | runtime/vm/simulator_arm64.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) 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 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 V(_Bigint, get:_digits, Bigint_getDigits, 1408062672) \ 378 V(_Bigint, get:_digits, Bigint_getDigits, 1408062672) \
379 V(_Bigint, set:_digits, Bigint_setDigits, 1135754410) \ 379 V(_Bigint, set:_digits, Bigint_setDigits, 1135754410) \
380 380
381 // A list of core function that should never be inlined. 381 // A list of core function that should never be inlined.
382 #define INLINE_BLACK_LIST(V) \ 382 #define INLINE_BLACK_LIST(V) \
383 V(_Bigint, _absAdd, Bigint_absAdd, 233965936) \ 383 V(_Bigint, _absAdd, Bigint_absAdd, 233965936) \
384 V(_Bigint, _absSub, Bigint_absSub, 1401148862) \ 384 V(_Bigint, _absSub, Bigint_absSub, 1401148862) \
385 V(_Bigint, _mulAdd, Bigint_mulAdd, 1283124653) \ 385 V(_Bigint, _mulAdd, Bigint_mulAdd, 1283124653) \
386 V(_Bigint, _sqrAdd, Bigint_sqrAdd, 1665155090) \ 386 V(_Bigint, _sqrAdd, Bigint_sqrAdd, 1665155090) \
387 V(_Bigint, _estQuotientDigit, Bigint_estQuotientDigit, 643982609) \ 387 V(_Bigint, _estQuotientDigit, Bigint_estQuotientDigit, 643982609) \
388 V(_Montgomery, _mulMod, Montgomery_mulMod, 149127024) \
388 389
389 // A list of core functions that internally dispatch based on received id. 390 // A list of core functions that internally dispatch based on received id.
390 #define POLYMORPHIC_TARGET_LIST(V) \ 391 #define POLYMORPHIC_TARGET_LIST(V) \
391 V(_StringBase, [], StringBaseCharAt, 1512210677) \ 392 V(_StringBase, [], StringBaseCharAt, 1512210677) \
392 V(_StringBase, codeUnitAt, StringBaseCodeUnitAt, 397735324) \ 393 V(_StringBase, codeUnitAt, StringBaseCodeUnitAt, 397735324) \
393 V(_TypedList, _getInt8, ByteArrayBaseGetInt8, 1541411498) \ 394 V(_TypedList, _getInt8, ByteArrayBaseGetInt8, 1541411498) \
394 V(_TypedList, _getUint8, ByteArrayBaseGetUint8, 1032404349) \ 395 V(_TypedList, _getUint8, ByteArrayBaseGetUint8, 1032404349) \
395 V(_TypedList, _getInt16, ByteArrayBaseGetInt16, 381073990) \ 396 V(_TypedList, _getInt16, ByteArrayBaseGetInt16, 381073990) \
396 V(_TypedList, _getUint16, ByteArrayBaseGetUint16, 1142676276) \ 397 V(_TypedList, _getUint16, ByteArrayBaseGetUint16, 1142676276) \
397 V(_TypedList, _getInt32, ByteArrayBaseGetInt32, 330269934) \ 398 V(_TypedList, _getInt32, ByteArrayBaseGetInt32, 330269934) \
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 static Kind RecognizeKind(const Function& function); 431 static Kind RecognizeKind(const Function& function);
431 static bool AlwaysInline(const Function& function); 432 static bool AlwaysInline(const Function& function);
432 static bool PolymorphicTarget(const Function& function); 433 static bool PolymorphicTarget(const Function& function);
433 static const char* KindToCString(Kind kind); 434 static const char* KindToCString(Kind kind);
434 static void InitializeState(); 435 static void InitializeState();
435 }; 436 };
436 437
437 } // namespace dart 438 } // namespace dart
438 439
439 #endif // VM_METHOD_RECOGNIZER_H_ 440 #endif // VM_METHOD_RECOGNIZER_H_
OLDNEW
« no previous file with comments | « runtime/vm/intrinsifier_arm64.cc ('k') | runtime/vm/simulator_arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698