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

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

Issue 562333004: Recognize Bigint setters and getters. This code will be removed when/if we change the fields to be … (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 3 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') | 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 V(_Int32Array, [], Int32ArrayGetIndexed, 203101370) \ 135 V(_Int32Array, [], Int32ArrayGetIndexed, 203101370) \
136 V(_Int32Array, []=, Int32ArraySetIndexed, 338968571) \ 136 V(_Int32Array, []=, Int32ArraySetIndexed, 338968571) \
137 V(_Uint32Array, [], Uint32ArrayGetIndexed, 1640672852) \ 137 V(_Uint32Array, [], Uint32ArrayGetIndexed, 1640672852) \
138 V(_Uint32Array, []=, Uint32ArraySetIndexed, 1472976717) \ 138 V(_Uint32Array, []=, Uint32ArraySetIndexed, 1472976717) \
139 V(_Float32x4Array, [], Float32x4ArrayGetIndexed, 1466627059) \ 139 V(_Float32x4Array, [], Float32x4ArrayGetIndexed, 1466627059) \
140 V(_Float32x4Array, []=, Float32x4ArraySetIndexed, 2141660076) \ 140 V(_Float32x4Array, []=, Float32x4ArraySetIndexed, 2141660076) \
141 V(_Int32x4Array, [], Int32x4ArrayGetIndexed, 818792056) \ 141 V(_Int32x4Array, [], Int32x4ArrayGetIndexed, 818792056) \
142 V(_Int32x4Array, []=, Int32x4ArraySetIndexed, 1021474038) \ 142 V(_Int32x4Array, []=, Int32x4ArraySetIndexed, 1021474038) \
143 V(_Float64x2Array, [], Float64x2ArrayGetIndexed, 288114492) \ 143 V(_Float64x2Array, [], Float64x2ArrayGetIndexed, 288114492) \
144 V(_Float64x2Array, []=, Float64x2ArraySetIndexed, 941746736) \ 144 V(_Float64x2Array, []=, Float64x2ArraySetIndexed, 941746736) \
145 V(_Bigint, get:_neg, Bigint_getNeg, 1151514099) \
146 V(_Bigint, get:_used, Bigint_getUsed, 1308529543) \
147 V(_Bigint, get:_digits, Bigint_getDigits, 1408062672) \
145 148
146 // List of intrinsics: 149 // List of intrinsics:
147 // (class-name, function-name, intrinsification method, fingerprint). 150 // (class-name, function-name, intrinsification method, fingerprint).
148 #define CORE_LIB_INTRINSIC_LIST(V) \ 151 #define CORE_LIB_INTRINSIC_LIST(V) \
149 V(_Smi, ~, Smi_bitNegate, 105519892) \ 152 V(_Smi, ~, Smi_bitNegate, 105519892) \
150 V(_Smi, get:bitLength, Smi_bitLength, 869956497) \ 153 V(_Smi, get:bitLength, Smi_bitLength, 869956497) \
151 V(_Bigint, get:_neg, Bigint_getNeg, 1151514099) \
152 V(_Bigint, set:_neg, Bigint_setNeg, 920204960) \ 154 V(_Bigint, set:_neg, Bigint_setNeg, 920204960) \
153 V(_Bigint, get:_used, Bigint_getUsed, 1308529543) \
154 V(_Bigint, set:_used, Bigint_setUsed, 1857576743) \ 155 V(_Bigint, set:_used, Bigint_setUsed, 1857576743) \
155 V(_Bigint, get:_digits, Bigint_getDigits, 1408062672) \
156 V(_Bigint, set:_digits, Bigint_setDigits, 1633805112) \ 156 V(_Bigint, set:_digits, Bigint_setDigits, 1633805112) \
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) \
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 V(::, atan2, MathATan2, 1845649456) \ 353 V(::, atan2, MathATan2, 1845649456) \
354 V(::, cos, MathCos, 1951197905) \ 354 V(::, cos, MathCos, 1951197905) \
355 V(::, exp, MathExp, 1809210829) \ 355 V(::, exp, MathExp, 1809210829) \
356 V(::, log, MathLog, 1620336448) \ 356 V(::, log, MathLog, 1620336448) \
357 V(::, max, MathMax, 612058870) \ 357 V(::, max, MathMax, 612058870) \
358 V(::, min, MathMin, 1022567780) \ 358 V(::, min, MathMin, 1022567780) \
359 V(::, pow, MathPow, 930962530) \ 359 V(::, pow, MathPow, 930962530) \
360 V(::, sin, MathSin, 1741396147) \ 360 V(::, sin, MathSin, 1741396147) \
361 V(::, sqrt, MathSqrt, 101545548) \ 361 V(::, sqrt, MathSqrt, 101545548) \
362 V(::, tan, MathTan, 982072809) \ 362 V(::, tan, MathTan, 982072809) \
363 V(Lists, copy, ListsCopy, 902244797) 363 V(Lists, copy, ListsCopy, 902244797) \
364 V(_Bigint, get:_neg, Bigint_getNeg, 1151514099) \
365 V(_Bigint, get:_used, Bigint_getUsed, 1308529543) \
366 V(_Bigint, get:_digits, Bigint_getDigits, 1408062672) \
364 367
365 368
366 // A list of core functions that internally dispatch based on received id. 369 // A list of core functions that internally dispatch based on received id.
367 #define POLYMORPHIC_TARGET_LIST(V) \ 370 #define POLYMORPHIC_TARGET_LIST(V) \
368 V(_StringBase, [], StringBaseCharAt, 1512210677) \ 371 V(_StringBase, [], StringBaseCharAt, 1512210677) \
369 V(_StringBase, codeUnitAt, StringBaseCodeUnitAt, 397735324) \ 372 V(_StringBase, codeUnitAt, StringBaseCodeUnitAt, 397735324) \
370 V(_TypedList, _getInt8, ByteArrayBaseGetInt8, 1541411498) \ 373 V(_TypedList, _getInt8, ByteArrayBaseGetInt8, 1541411498) \
371 V(_TypedList, _getUint8, ByteArrayBaseGetUint8, 1032404349) \ 374 V(_TypedList, _getUint8, ByteArrayBaseGetUint8, 1032404349) \
372 V(_TypedList, _getInt16, ByteArrayBaseGetInt16, 381073990) \ 375 V(_TypedList, _getInt16, ByteArrayBaseGetInt16, 381073990) \
373 V(_TypedList, _getUint16, ByteArrayBaseGetUint16, 1142676276) \ 376 V(_TypedList, _getUint16, ByteArrayBaseGetUint16, 1142676276) \
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 static Kind RecognizeKind(const Function& function); 410 static Kind RecognizeKind(const Function& function);
408 static bool AlwaysInline(const Function& function); 411 static bool AlwaysInline(const Function& function);
409 static bool PolymorphicTarget(const Function& function); 412 static bool PolymorphicTarget(const Function& function);
410 static const char* KindToCString(Kind kind); 413 static const char* KindToCString(Kind kind);
411 static void InitializeState(); 414 static void InitializeState();
412 }; 415 };
413 416
414 } // namespace dart 417 } // namespace dart
415 418
416 #endif // VM_METHOD_RECOGNIZER_H_ 419 #endif // VM_METHOD_RECOGNIZER_H_
OLDNEW
« no previous file with comments | « runtime/vm/intrinsifier_x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698