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

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

Issue 1985813002: Add an intrinsified early out path for Dart timeline calls (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 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
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 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 300
301 #define GRAPH_INTRINSICS_LIST(V) \ 301 #define GRAPH_INTRINSICS_LIST(V) \
302 GRAPH_CORE_INTRINSICS_LIST(V) \ 302 GRAPH_CORE_INTRINSICS_LIST(V) \
303 GRAPH_TYPED_DATA_INTRINSICS_LIST(V) \ 303 GRAPH_TYPED_DATA_INTRINSICS_LIST(V) \
304 GRAPH_MATH_LIB_INTRINSIC_LIST(V) \ 304 GRAPH_MATH_LIB_INTRINSIC_LIST(V) \
305 305
306 #define DEVELOPER_LIB_INTRINSIC_LIST(V) \ 306 #define DEVELOPER_LIB_INTRINSIC_LIST(V) \
307 V(_UserTag, makeCurrent, UserTag_makeCurrent, 187721469) \ 307 V(_UserTag, makeCurrent, UserTag_makeCurrent, 187721469) \
308 V(::, _getDefaultTag, UserTag_defaultTag, 350077879) \ 308 V(::, _getDefaultTag, UserTag_defaultTag, 350077879) \
309 V(::, _getCurrentTag, Profiler_getCurrentTag, 1215225901) \ 309 V(::, _getCurrentTag, Profiler_getCurrentTag, 1215225901) \
310 V(::, _isDartStreamEnabled, Timeline_isDartStreamEnabled, 1021330202) \
310 311
311 #define ALL_INTRINSICS_NO_INTEGER_LIB_LIST(V) \ 312 #define ALL_INTRINSICS_NO_INTEGER_LIB_LIST(V) \
312 CORE_LIB_INTRINSIC_LIST(V) \ 313 CORE_LIB_INTRINSIC_LIST(V) \
313 DEVELOPER_LIB_INTRINSIC_LIST(V) \ 314 DEVELOPER_LIB_INTRINSIC_LIST(V) \
314 MATH_LIB_INTRINSIC_LIST(V) \ 315 MATH_LIB_INTRINSIC_LIST(V) \
315 TYPED_DATA_LIB_INTRINSIC_LIST(V) \ 316 TYPED_DATA_LIB_INTRINSIC_LIST(V) \
316 317
317 #define ALL_INTRINSICS_LIST(V) \ 318 #define ALL_INTRINSICS_LIST(V) \
318 ALL_INTRINSICS_NO_INTEGER_LIB_LIST(V) \ 319 ALL_INTRINSICS_NO_INTEGER_LIB_LIST(V) \
319 CORE_INTEGER_LIB_INTRINSIC_LIST(V) 320 CORE_INTEGER_LIB_INTRINSIC_LIST(V)
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
536 // Class that recognizes factories and returns corresponding result cid. 537 // Class that recognizes factories and returns corresponding result cid.
537 class FactoryRecognizer : public AllStatic { 538 class FactoryRecognizer : public AllStatic {
538 public: 539 public:
539 // Return kDynamicCid if factory is not recognized. 540 // Return kDynamicCid if factory is not recognized.
540 static intptr_t ResultCid(const Function& factory); 541 static intptr_t ResultCid(const Function& factory);
541 }; 542 };
542 543
543 } // namespace dart 544 } // namespace dart
544 545
545 #endif // VM_METHOD_RECOGNIZER_H_ 546 #endif // VM_METHOD_RECOGNIZER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698