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

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

Issue 620553002: Provide ia32 intrinsics for bigint add, sub, quotient digit estimation, and (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 2 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
« no previous file with comments | « runtime/vm/intrinsifier_x64.cc ('k') | runtime/vm/object.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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 V(_Bigint, get:_digits, Bigint_getDigits, 1408062672) \ 147 V(_Bigint, get:_digits, Bigint_getDigits, 1408062672) \
148 148
149 // List of intrinsics: 149 // List of intrinsics:
150 // (class-name, function-name, intrinsification method, fingerprint). 150 // (class-name, function-name, intrinsification method, fingerprint).
151 #define CORE_LIB_INTRINSIC_LIST(V) \ 151 #define CORE_LIB_INTRINSIC_LIST(V) \
152 V(_Smi, ~, Smi_bitNegate, 105519892) \ 152 V(_Smi, ~, Smi_bitNegate, 105519892) \
153 V(_Smi, get:bitLength, Smi_bitLength, 869956497) \ 153 V(_Smi, get:bitLength, Smi_bitLength, 869956497) \
154 V(_Bigint, set:_neg, Bigint_setNeg, 920204960) \ 154 V(_Bigint, set:_neg, Bigint_setNeg, 920204960) \
155 V(_Bigint, set:_used, Bigint_setUsed, 1857576743) \ 155 V(_Bigint, set:_used, Bigint_setUsed, 1857576743) \
156 V(_Bigint, _set_digits, Bigint_setDigits, 582835804) \ 156 V(_Bigint, _set_digits, Bigint_setDigits, 582835804) \
157 V(_Bigint, _add, Bigint_add, 381787634) \
158 V(_Bigint, _sub, Bigint_sub, 1839548871) \
157 V(_Bigint, _mulAdd, Bigint_mulAdd, 1283124653) \ 159 V(_Bigint, _mulAdd, Bigint_mulAdd, 1283124653) \
158 V(_Bigint, _sqrAdd, Bigint_sqrAdd, 1665155090) \ 160 V(_Bigint, _sqrAdd, Bigint_sqrAdd, 1665155090) \
161 V(_Bigint, _estQuotientDigit, Bigint_estQuotientDigit, 643982609) \
162 V(_Montgomery, _mulMod, Montgomery_mulMod, 149127024) \
159 V(_Double, >, Double_greaterThan, 381325711) \ 163 V(_Double, >, Double_greaterThan, 381325711) \
160 V(_Double, >=, Double_greaterEqualThan, 1409267140) \ 164 V(_Double, >=, Double_greaterEqualThan, 1409267140) \
161 V(_Double, <, Double_lessThan, 2080387973) \ 165 V(_Double, <, Double_lessThan, 2080387973) \
162 V(_Double, <=, Double_lessEqualThan, 106225572) \ 166 V(_Double, <=, Double_lessEqualThan, 106225572) \
163 V(_Double, ==, Double_equal, 2093918133) \ 167 V(_Double, ==, Double_equal, 2093918133) \
164 V(_Double, +, Double_add, 1646350451) \ 168 V(_Double, +, Double_add, 1646350451) \
165 V(_Double, -, Double_sub, 1477459276) \ 169 V(_Double, -, Double_sub, 1477459276) \
166 V(_Double, *, Double_mul, 1334580777) \ 170 V(_Double, *, Double_mul, 1334580777) \
167 V(_Double, /, Double_div, 1938037155) \ 171 V(_Double, /, Double_div, 1938037155) \
168 V(_Double, get:isNaN, Double_getIsNaN, 843050033) \ 172 V(_Double, get:isNaN, Double_getIsNaN, 843050033) \
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 static Kind RecognizeKind(const Function& function); 416 static Kind RecognizeKind(const Function& function);
413 static bool AlwaysInline(const Function& function); 417 static bool AlwaysInline(const Function& function);
414 static bool PolymorphicTarget(const Function& function); 418 static bool PolymorphicTarget(const Function& function);
415 static const char* KindToCString(Kind kind); 419 static const char* KindToCString(Kind kind);
416 static void InitializeState(); 420 static void InitializeState();
417 }; 421 };
418 422
419 } // namespace dart 423 } // namespace dart
420 424
421 #endif // VM_METHOD_RECOGNIZER_H_ 425 #endif // VM_METHOD_RECOGNIZER_H_
OLDNEW
« no previous file with comments | « runtime/vm/intrinsifier_x64.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698