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

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

Issue 1913663002: vm: Generate 'and' instruction for Smi values. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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
« runtime/lib/integers.cc ('K') | « runtime/vm/jit_optimizer.cc ('k') | no next file » | 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 V(_HashVMBase, set:_hashMask, LinkedHashMap_setHashMask, 340628211) \ 142 V(_HashVMBase, set:_hashMask, LinkedHashMap_setHashMask, 340628211) \
143 V(_HashVMBase, get:_deletedKeys, LinkedHashMap_getDeletedKeys, 1340385546) \ 143 V(_HashVMBase, get:_deletedKeys, LinkedHashMap_getDeletedKeys, 1340385546) \
144 V(_HashVMBase, set:_deletedKeys, LinkedHashMap_setDeletedKeys, 638315987) \ 144 V(_HashVMBase, set:_deletedKeys, LinkedHashMap_setDeletedKeys, 638315987) \
145 145
146 146
147 // List of intrinsics: 147 // List of intrinsics:
148 // (class-name, function-name, intrinsification method, fingerprint). 148 // (class-name, function-name, intrinsification method, fingerprint).
149 #define CORE_LIB_INTRINSIC_LIST(V) \ 149 #define CORE_LIB_INTRINSIC_LIST(V) \
150 V(_Smi, ~, Smi_bitNegate, 1673522705) \ 150 V(_Smi, ~, Smi_bitNegate, 1673522705) \
151 V(_Smi, get:bitLength, Smi_bitLength, 632480332) \ 151 V(_Smi, get:bitLength, Smi_bitLength, 632480332) \
152 V(_Smi, _bitAndFromSmi, Smi_bitAndFromSmi, 2105491904) \
152 V(_Bigint, _lsh, Bigint_lsh, 834311957) \ 153 V(_Bigint, _lsh, Bigint_lsh, 834311957) \
153 V(_Bigint, _rsh, Bigint_rsh, 333337658) \ 154 V(_Bigint, _rsh, Bigint_rsh, 333337658) \
154 V(_Bigint, _absAdd, Bigint_absAdd, 473436659) \ 155 V(_Bigint, _absAdd, Bigint_absAdd, 473436659) \
155 V(_Bigint, _absSub, Bigint_absSub, 1018678324) \ 156 V(_Bigint, _absSub, Bigint_absSub, 1018678324) \
156 V(_Bigint, _mulAdd, Bigint_mulAdd, 571005736) \ 157 V(_Bigint, _mulAdd, Bigint_mulAdd, 571005736) \
157 V(_Bigint, _sqrAdd, Bigint_sqrAdd, 372896038) \ 158 V(_Bigint, _sqrAdd, Bigint_sqrAdd, 372896038) \
158 V(_Bigint, _estQuotientDigit, Bigint_estQuotientDigit, 540033329) \ 159 V(_Bigint, _estQuotientDigit, Bigint_estQuotientDigit, 540033329) \
159 V(_Montgomery, _mulMod, Montgomery_mulMod, 118781828) \ 160 V(_Montgomery, _mulMod, Montgomery_mulMod, 118781828) \
160 V(_Double, >, Double_greaterThan, 1413076759) \ 161 V(_Double, >, Double_greaterThan, 1413076759) \
161 V(_Double, >=, Double_greaterEqualThan, 1815180096) \ 162 V(_Double, >=, Double_greaterEqualThan, 1815180096) \
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 // Class that recognizes factories and returns corresponding result cid. 532 // Class that recognizes factories and returns corresponding result cid.
532 class FactoryRecognizer : public AllStatic { 533 class FactoryRecognizer : public AllStatic {
533 public: 534 public:
534 // Return kDynamicCid if factory is not recognized. 535 // Return kDynamicCid if factory is not recognized.
535 static intptr_t ResultCid(const Function& factory); 536 static intptr_t ResultCid(const Function& factory);
536 }; 537 };
537 538
538 } // namespace dart 539 } // namespace dart
539 540
540 #endif // VM_METHOD_RECOGNIZER_H_ 541 #endif // VM_METHOD_RECOGNIZER_H_
OLDNEW
« runtime/lib/integers.cc ('K') | « runtime/vm/jit_optimizer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698