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 RUNTIME_VM_METHOD_RECOGNIZER_H_ | 5 #ifndef RUNTIME_VM_METHOD_RECOGNIZER_H_ |
6 #define RUNTIME_VM_METHOD_RECOGNIZER_H_ | 6 #define RUNTIME_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 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 GRAPH_TYPED_DATA_INTRINSICS_LIST(V) \ | 339 GRAPH_TYPED_DATA_INTRINSICS_LIST(V) \ |
340 GRAPH_MATH_LIB_INTRINSIC_LIST(V) \ | 340 GRAPH_MATH_LIB_INTRINSIC_LIST(V) \ |
341 | 341 |
342 #define DEVELOPER_LIB_INTRINSIC_LIST(V) \ | 342 #define DEVELOPER_LIB_INTRINSIC_LIST(V) \ |
343 V(_UserTag, makeCurrent, UserTag_makeCurrent, Dynamic, 0x0b3066fd) \ | 343 V(_UserTag, makeCurrent, UserTag_makeCurrent, Dynamic, 0x0b3066fd) \ |
344 V(::, _getDefaultTag, UserTag_defaultTag, Dynamic, 0x69f3f1ad) \ | 344 V(::, _getDefaultTag, UserTag_defaultTag, Dynamic, 0x69f3f1ad) \ |
345 V(::, _getCurrentTag, Profiler_getCurrentTag, Dynamic, 0x05fa99d2) \ | 345 V(::, _getCurrentTag, Profiler_getCurrentTag, Dynamic, 0x05fa99d2) \ |
346 V(::, _isDartStreamEnabled, Timeline_isDartStreamEnabled, Dynamic, \ | 346 V(::, _isDartStreamEnabled, Timeline_isDartStreamEnabled, Dynamic, \ |
347 0x72f13f7a) \ | 347 0x72f13f7a) \ |
348 | 348 |
| 349 #define ASYNC_LIB_INTRINSIC_LIST(V) \ |
| 350 V(::, _clearAsyncThreadStackTrace, ClearAsyncThreadStackTrace, \ |
| 351 Dynamic, 0x2d287286) \ |
| 352 V(::, _setAsyncThreadStackTrace, SetAsyncThreadStackTrace, \ |
| 353 Dynamic, 0x1d12fcc8) |
| 354 |
349 #define ALL_INTRINSICS_NO_INTEGER_LIB_LIST(V) \ | 355 #define ALL_INTRINSICS_NO_INTEGER_LIB_LIST(V) \ |
| 356 ASYNC_LIB_INTRINSIC_LIST(V) \ |
350 CORE_LIB_INTRINSIC_LIST(V) \ | 357 CORE_LIB_INTRINSIC_LIST(V) \ |
351 DEVELOPER_LIB_INTRINSIC_LIST(V) \ | 358 DEVELOPER_LIB_INTRINSIC_LIST(V) \ |
352 MATH_LIB_INTRINSIC_LIST(V) \ | 359 MATH_LIB_INTRINSIC_LIST(V) \ |
353 TYPED_DATA_LIB_INTRINSIC_LIST(V) \ | 360 TYPED_DATA_LIB_INTRINSIC_LIST(V) \ |
354 | 361 |
355 #define ALL_INTRINSICS_LIST(V) \ | 362 #define ALL_INTRINSICS_LIST(V) \ |
356 ALL_INTRINSICS_NO_INTEGER_LIB_LIST(V) \ | 363 ALL_INTRINSICS_NO_INTEGER_LIB_LIST(V) \ |
357 CORE_INTEGER_LIB_INTRINSIC_LIST(V) | 364 CORE_INTEGER_LIB_INTRINSIC_LIST(V) |
358 | 365 |
359 #define RECOGNIZED_LIST(V) \ | 366 #define RECOGNIZED_LIST(V) \ |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
570 // Class that recognizes factories and returns corresponding result cid. | 577 // Class that recognizes factories and returns corresponding result cid. |
571 class FactoryRecognizer : public AllStatic { | 578 class FactoryRecognizer : public AllStatic { |
572 public: | 579 public: |
573 // Return kDynamicCid if factory is not recognized. | 580 // Return kDynamicCid if factory is not recognized. |
574 static intptr_t ResultCid(const Function& factory); | 581 static intptr_t ResultCid(const Function& factory); |
575 }; | 582 }; |
576 | 583 |
577 } // namespace dart | 584 } // namespace dart |
578 | 585 |
579 #endif // RUNTIME_VM_METHOD_RECOGNIZER_H_ | 586 #endif // RUNTIME_VM_METHOD_RECOGNIZER_H_ |
OLD | NEW |