OLD | NEW |
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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 V(_Bigint, get:_used, Bigint_getUsed, 1308529543) \ | 146 V(_Bigint, get:_used, Bigint_getUsed, 1308529543) \ |
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, 1633805112) \ | 156 V(_Bigint, _set_digits, Bigint_setDigits, 582835804) \ |
157 V(_Double, >, Double_greaterThan, 381325711) \ | 157 V(_Double, >, Double_greaterThan, 381325711) \ |
158 V(_Double, >=, Double_greaterEqualThan, 1409267140) \ | 158 V(_Double, >=, Double_greaterEqualThan, 1409267140) \ |
159 V(_Double, <, Double_lessThan, 2080387973) \ | 159 V(_Double, <, Double_lessThan, 2080387973) \ |
160 V(_Double, <=, Double_lessEqualThan, 106225572) \ | 160 V(_Double, <=, Double_lessEqualThan, 106225572) \ |
161 V(_Double, ==, Double_equal, 2093918133) \ | 161 V(_Double, ==, Double_equal, 2093918133) \ |
162 V(_Double, +, Double_add, 1646350451) \ | 162 V(_Double, +, Double_add, 1646350451) \ |
163 V(_Double, -, Double_sub, 1477459276) \ | 163 V(_Double, -, Double_sub, 1477459276) \ |
164 V(_Double, *, Double_mul, 1334580777) \ | 164 V(_Double, *, Double_mul, 1334580777) \ |
165 V(_Double, /, Double_div, 1938037155) \ | 165 V(_Double, /, Double_div, 1938037155) \ |
166 V(_Double, get:isNaN, Double_getIsNaN, 843050033) \ | 166 V(_Double, get:isNaN, Double_getIsNaN, 843050033) \ |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
410 static Kind RecognizeKind(const Function& function); | 410 static Kind RecognizeKind(const Function& function); |
411 static bool AlwaysInline(const Function& function); | 411 static bool AlwaysInline(const Function& function); |
412 static bool PolymorphicTarget(const Function& function); | 412 static bool PolymorphicTarget(const Function& function); |
413 static const char* KindToCString(Kind kind); | 413 static const char* KindToCString(Kind kind); |
414 static void InitializeState(); | 414 static void InitializeState(); |
415 }; | 415 }; |
416 | 416 |
417 } // namespace dart | 417 } // namespace dart |
418 | 418 |
419 #endif // VM_METHOD_RECOGNIZER_H_ | 419 #endif // VM_METHOD_RECOGNIZER_H_ |
OLD | NEW |