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

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

Issue 502953002: Implement native _List. constructor in the flow-graph builder. (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 {
11 11
12 // (class-name, function-name, recognized enum, fingerprint). 12 // (class-name, function-name, recognized enum, fingerprint).
13 // When adding a new function add a 0 as fingerprint, build and run to get the 13 // When adding a new function add a 0 as fingerprint, build and run to get the
14 // correct fingerprint from the mismatch error. 14 // correct fingerprint from the mismatch error.
15 #define OTHER_RECOGNIZED_LIST(V) \ 15 #define OTHER_RECOGNIZED_LIST(V) \
16 V(::, identical, ObjectIdentical, 496869842) \ 16 V(::, identical, ObjectIdentical, 496869842) \
17 V(ClassID, getID, ClassIDgetID, 1322490980) \ 17 V(ClassID, getID, ClassIDgetID, 1322490980) \
18 V(Object, Object., ObjectConstructor, 1066669787) \ 18 V(Object, Object., ObjectConstructor, 1066669787) \
19 V(_List, ., ObjectArrayAllocate, 1595327584) \
19 V(_TypedList, _getInt8, ByteArrayBaseGetInt8, 1541411498) \ 20 V(_TypedList, _getInt8, ByteArrayBaseGetInt8, 1541411498) \
20 V(_TypedList, _getUint8, ByteArrayBaseGetUint8, 1032404349) \ 21 V(_TypedList, _getUint8, ByteArrayBaseGetUint8, 1032404349) \
21 V(_TypedList, _getInt16, ByteArrayBaseGetInt16, 381073990) \ 22 V(_TypedList, _getInt16, ByteArrayBaseGetInt16, 381073990) \
22 V(_TypedList, _getUint16, ByteArrayBaseGetUint16, 1142676276) \ 23 V(_TypedList, _getUint16, ByteArrayBaseGetUint16, 1142676276) \
23 V(_TypedList, _getInt32, ByteArrayBaseGetInt32, 330269934) \ 24 V(_TypedList, _getInt32, ByteArrayBaseGetInt32, 330269934) \
24 V(_TypedList, _getUint32, ByteArrayBaseGetUint32, 59490554) \ 25 V(_TypedList, _getUint32, ByteArrayBaseGetUint32, 59490554) \
25 V(_TypedList, _getFloat32, ByteArrayBaseGetFloat32, 393003933) \ 26 V(_TypedList, _getFloat32, ByteArrayBaseGetFloat32, 393003933) \
26 V(_TypedList, _getFloat64, ByteArrayBaseGetFloat64, 1792407200) \ 27 V(_TypedList, _getFloat64, ByteArrayBaseGetFloat64, 1792407200) \
27 V(_TypedList, _getFloat32x4, ByteArrayBaseGetFloat32x4, 1338379857) \ 28 V(_TypedList, _getFloat32x4, ByteArrayBaseGetFloat32x4, 1338379857) \
28 V(_TypedList, _getInt32x4, ByteArrayBaseGetInt32x4, 1469917805) \ 29 V(_TypedList, _getInt32x4, ByteArrayBaseGetInt32x4, 1469917805) \
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 V(_Double, <=, Double_lessEqualThan, 106225572) \ 156 V(_Double, <=, Double_lessEqualThan, 106225572) \
156 V(_Double, ==, Double_equal, 2093918133) \ 157 V(_Double, ==, Double_equal, 2093918133) \
157 V(_Double, +, Double_add, 1646350451) \ 158 V(_Double, +, Double_add, 1646350451) \
158 V(_Double, -, Double_sub, 1477459276) \ 159 V(_Double, -, Double_sub, 1477459276) \
159 V(_Double, *, Double_mul, 1334580777) \ 160 V(_Double, *, Double_mul, 1334580777) \
160 V(_Double, /, Double_div, 1938037155) \ 161 V(_Double, /, Double_div, 1938037155) \
161 V(_Double, get:isNaN, Double_getIsNaN, 843050033) \ 162 V(_Double, get:isNaN, Double_getIsNaN, 843050033) \
162 V(_Double, get:isNegative, Double_getIsNegative, 1637875580) \ 163 V(_Double, get:isNegative, Double_getIsNegative, 1637875580) \
163 V(_Double, _mulFromInteger, Double_mulFromInteger, 1594796483) \ 164 V(_Double, _mulFromInteger, Double_mulFromInteger, 1594796483) \
164 V(_Double, .fromInteger, DoubleFromInteger, 999771940) \ 165 V(_Double, .fromInteger, DoubleFromInteger, 999771940) \
165 V(_List, ., ObjectArrayAllocate, 1595327584) \
166 V(_List, get:length, ObjectArrayLength, 1181352729) \ 166 V(_List, get:length, ObjectArrayLength, 1181352729) \
167 V(_List, [], ObjectArrayGetIndexed, 795612476) \ 167 V(_List, [], ObjectArrayGetIndexed, 795612476) \
168 V(_List, []=, ObjectArraySetIndexed, 1288827575) \ 168 V(_List, []=, ObjectArraySetIndexed, 1288827575) \
169 V(_GrowableList, .withData, GrowableArray_Allocate, 732923072) \ 169 V(_GrowableList, .withData, GrowableArray_Allocate, 732923072) \
170 V(_GrowableList, get:length, GrowableArrayLength, 778505107) \ 170 V(_GrowableList, get:length, GrowableArrayLength, 778505107) \
171 V(_GrowableList, get:_capacity, GrowableArrayCapacity, 555140075) \ 171 V(_GrowableList, get:_capacity, GrowableArrayCapacity, 555140075) \
172 V(_GrowableList, [], GrowableArrayGetIndexed, 919108233) \ 172 V(_GrowableList, [], GrowableArrayGetIndexed, 919108233) \
173 V(_GrowableList, []=, GrowableArraySetIndexed, 1218649853) \ 173 V(_GrowableList, []=, GrowableArraySetIndexed, 1218649853) \
174 V(_GrowableList, _setLength, GrowableArraySetLength, 89389299) \ 174 V(_GrowableList, _setLength, GrowableArraySetLength, 89389299) \
175 V(_GrowableList, _setData, GrowableArraySetData, 2126927509) \ 175 V(_GrowableList, _setData, GrowableArraySetData, 2126927509) \
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
290 #define INLINE_WHITE_LIST(V) \ 290 #define INLINE_WHITE_LIST(V) \
291 V(Object, ==, ObjectEquals, 1068471689) \ 291 V(Object, ==, ObjectEquals, 1068471689) \
292 V(_List, get:length, ObjectArrayLength, 1181352729) \ 292 V(_List, get:length, ObjectArrayLength, 1181352729) \
293 V(_ImmutableList, get:length, ImmutableArrayLength, 274917727) \ 293 V(_ImmutableList, get:length, ImmutableArrayLength, 274917727) \
294 V(_TypedList, get:length, TypedDataLength, 522565357) \ 294 V(_TypedList, get:length, TypedDataLength, 522565357) \
295 V(_GrowableList, get:length, GrowableArrayLength, 778505107) \ 295 V(_GrowableList, get:length, GrowableArrayLength, 778505107) \
296 V(_StringBase, get:length, StringBaseLength, 784399628) \ 296 V(_StringBase, get:length, StringBaseLength, 784399628) \
297 V(ListIterator, moveNext, ListIteratorMoveNext, 210829138) \ 297 V(ListIterator, moveNext, ListIteratorMoveNext, 210829138) \
298 V(_GrowableList, get:iterator, GrowableArrayIterator, 1812933946) \ 298 V(_GrowableList, get:iterator, GrowableArrayIterator, 1812933946) \
299 V(_GrowableList, forEach, GrowableArrayForEach, 2085943947) \ 299 V(_GrowableList, forEach, GrowableArrayForEach, 2085943947) \
300 V(_List, ., ObjectArrayAllocate, 1595327584) \
300 V(_List, [], ObjectArrayGetIndexed, 795612476) \ 301 V(_List, [], ObjectArrayGetIndexed, 795612476) \
301 V(_List, []=, ObjectArraySetIndexed, 1288827575) \ 302 V(_List, []=, ObjectArraySetIndexed, 1288827575) \
302 V(_List, get:isEmpty, ObjectArrayIsEmpty, 2130247737) \ 303 V(_List, get:isEmpty, ObjectArrayIsEmpty, 2130247737) \
303 V(_ImmutableList, [], ImmutableArrayGetIndexed, 1990177341) \ 304 V(_ImmutableList, [], ImmutableArrayGetIndexed, 1990177341) \
304 V(_GrowableList, [], GrowableArrayGetIndexed, 919108233) \ 305 V(_GrowableList, [], GrowableArrayGetIndexed, 919108233) \
305 V(_GrowableList, []=, GrowableArraySetIndexed, 1218649853) \ 306 V(_GrowableList, []=, GrowableArraySetIndexed, 1218649853) \
306 V(_Float32Array, [], Float32ArrayGetIndexed, 856653338) \ 307 V(_Float32Array, [], Float32ArrayGetIndexed, 856653338) \
307 V(_Float32Array, []=, Float32ArraySetIndexed, 2086166464) \ 308 V(_Float32Array, []=, Float32ArraySetIndexed, 2086166464) \
308 V(_Float64Array, [], Float64ArrayGetIndexed, 1779054297) \ 309 V(_Float64Array, [], Float64ArrayGetIndexed, 1779054297) \
309 V(_Float64Array, []=, Float64ArraySetIndexed, 243929230) \ 310 V(_Float64Array, []=, Float64ArraySetIndexed, 243929230) \
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 static Kind RecognizeKind(const Function& function); 383 static Kind RecognizeKind(const Function& function);
383 static bool AlwaysInline(const Function& function); 384 static bool AlwaysInline(const Function& function);
384 static bool PolymorphicTarget(const Function& function); 385 static bool PolymorphicTarget(const Function& function);
385 static const char* KindToCString(Kind kind); 386 static const char* KindToCString(Kind kind);
386 static void InitializeState(); 387 static void InitializeState();
387 }; 388 };
388 389
389 } // namespace dart 390 } // namespace dart
390 391
391 #endif // VM_METHOD_RECOGNIZER_H_ 392 #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