| 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 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 V(Int32List, ., TypedData_Int32Array_factory, 1540657744) \ | 249 V(Int32List, ., TypedData_Int32Array_factory, 1540657744) \ |
| 250 V(Uint32List, ., TypedData_Uint32Array_factory, 1012511652) \ | 250 V(Uint32List, ., TypedData_Uint32Array_factory, 1012511652) \ |
| 251 V(Int64List, ., TypedData_Int64Array_factory, 1473796807) \ | 251 V(Int64List, ., TypedData_Int64Array_factory, 1473796807) \ |
| 252 V(Uint64List, ., TypedData_Uint64Array_factory, 738799620) \ | 252 V(Uint64List, ., TypedData_Uint64Array_factory, 738799620) \ |
| 253 V(Float32List, ., TypedData_Float32Array_factory, 1938690635) \ | 253 V(Float32List, ., TypedData_Float32Array_factory, 1938690635) \ |
| 254 V(Float64List, ., TypedData_Float64Array_factory, 1344005361) \ | 254 V(Float64List, ., TypedData_Float64Array_factory, 1344005361) \ |
| 255 V(Float32x4List, ., TypedData_Float32x4Array_factory, 2055067416) \ | 255 V(Float32x4List, ., TypedData_Float32x4Array_factory, 2055067416) \ |
| 256 V(Int32x4List, ., TypedData_Int32x4Array_factory, 504220232) \ | 256 V(Int32x4List, ., TypedData_Int32x4Array_factory, 504220232) \ |
| 257 V(Float64x2List, ., TypedData_Float64x2Array_factory, 416019673) \ | 257 V(Float64x2List, ., TypedData_Float64x2Array_factory, 416019673) \ |
| 258 | 258 |
| 259 #define GRAPH_TYPED_DATA_INTRINSICS_LIST(V) \ | 259 #define GRAPH_TYPED_DATA_INTRINSICS_LIST(V) \ |
| 260 V(Uint8List, [], Uint8ArrayGetIndexed, 513704632) \ | 260 V(Uint8List, [], Uint8ArrayGetIndexed, 513704632) \ |
| 261 V(Uint8List, []=, Uint8ArraySetIndexed, 2123520783) \ | 261 V(Uint8List, []=, Uint8ArraySetIndexed, 2123520783) \ |
| 262 V(_ExternalUint8Array, [], ExternalUint8ArrayGetIndexed, 513704632) \ | 262 V(_ExternalUint8Array, [], ExternalUint8ArrayGetIndexed, 513704632) \ |
| 263 V(_ExternalUint8Array, []=, ExternalUint8ArraySetIndexed, 2123520783) \ | 263 V(_ExternalUint8Array, []=, ExternalUint8ArraySetIndexed, 2123520783) \ |
| 264 V(Uint32List, [], Uint32ArrayGetIndexed, 1179675338) \ | 264 V(Uint32List, [], Uint32ArrayGetIndexed, 1179675338) \ |
| 265 V(Uint32List, []=, Uint32ArraySetIndexed, 1455695417) \ | 265 V(Uint32List, []=, Uint32ArraySetIndexed, 1455695417) \ |
| 266 V(Float64List, []=, Float64ArraySetIndexed, 1929239576) \ | 266 V(Float64List, []=, Float64ArraySetIndexed, 1929239576) \ |
| 267 V(Float64List, [], Float64ArrayGetIndexed, 816943529) \ | 267 V(Float64List, [], Float64ArrayGetIndexed, 816943529) \ |
| 268 V(_TypedList, get:length, TypedDataLength, 546364442) \ | 268 V(_TypedList, get:length, TypedDataLength, 546364442) \ |
| 269 V(Float32x4, get:x, Float32x4ShuffleX, 1674625343) \ | 269 V(Float32x4, get:x, Float32x4ShuffleX, 1674625343) \ |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 V(_UserTag, makeCurrent, UserTag_makeCurrent, 187721469) \ | 303 V(_UserTag, makeCurrent, UserTag_makeCurrent, 187721469) \ |
| 304 V(::, _getDefaultTag, UserTag_defaultTag, 1872263331) \ | 304 V(::, _getDefaultTag, UserTag_defaultTag, 1872263331) \ |
| 305 V(::, _getCurrentTag, Profiler_getCurrentTag, 692104531) \ | 305 V(::, _getCurrentTag, Profiler_getCurrentTag, 692104531) \ |
| 306 | 306 |
| 307 #define ALL_INTRINSICS_NO_INTEGER_LIB_LIST(V) \ | 307 #define ALL_INTRINSICS_NO_INTEGER_LIB_LIST(V) \ |
| 308 CORE_LIB_INTRINSIC_LIST(V) \ | 308 CORE_LIB_INTRINSIC_LIST(V) \ |
| 309 DEVELOPER_LIB_INTRINSIC_LIST(V) \ | 309 DEVELOPER_LIB_INTRINSIC_LIST(V) \ |
| 310 MATH_LIB_INTRINSIC_LIST(V) \ | 310 MATH_LIB_INTRINSIC_LIST(V) \ |
| 311 TYPED_DATA_LIB_INTRINSIC_LIST(V) \ | 311 TYPED_DATA_LIB_INTRINSIC_LIST(V) \ |
| 312 | 312 |
| 313 | |
| 314 #define ALL_INTRINSICS_LIST(V) \ | 313 #define ALL_INTRINSICS_LIST(V) \ |
| 315 ALL_INTRINSICS_NO_INTEGER_LIB_LIST(V) \ | 314 ALL_INTRINSICS_NO_INTEGER_LIB_LIST(V) \ |
| 316 CORE_INTEGER_LIB_INTRINSIC_LIST(V) | 315 CORE_INTEGER_LIB_INTRINSIC_LIST(V) |
| 317 | 316 |
| 318 #define RECOGNIZED_LIST(V) \ | 317 #define RECOGNIZED_LIST(V) \ |
| 319 OTHER_RECOGNIZED_LIST(V) \ | 318 OTHER_RECOGNIZED_LIST(V) \ |
| 320 ALL_INTRINSICS_LIST(V) \ | 319 ALL_INTRINSICS_LIST(V) \ |
| 321 GRAPH_INTRINSICS_LIST(V) | 320 GRAPH_INTRINSICS_LIST(V) |
| 322 | 321 |
| 323 // A list of core function that should always be inlined. | 322 // A list of core function that should always be inlined. |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 534 // Class that recognizes factories and returns corresponding result cid. | 533 // Class that recognizes factories and returns corresponding result cid. |
| 535 class FactoryRecognizer : public AllStatic { | 534 class FactoryRecognizer : public AllStatic { |
| 536 public: | 535 public: |
| 537 // Return kDynamicCid if factory is not recognized. | 536 // Return kDynamicCid if factory is not recognized. |
| 538 static intptr_t ResultCid(const Function& factory); | 537 static intptr_t ResultCid(const Function& factory); |
| 539 }; | 538 }; |
| 540 | 539 |
| 541 } // namespace dart | 540 } // namespace dart |
| 542 | 541 |
| 543 #endif // VM_METHOD_RECOGNIZER_H_ | 542 #endif // VM_METHOD_RECOGNIZER_H_ |
| OLD | NEW |