dart-sdk/runtime/docs/compiler
Aske Simon Christensen 1ab705f60c [vm] Require all recognized methods to be marked with pragma.
Adds a @pragma("vm:recognized", <kind>) to all recognized methods, where
<kind> is one of "intrinsic", "graph" or "other", corresponding to the
kind of recognized method.

When running in debug mode, it is checked that all recognized methods
are marked with the correct kind of pragma, and that all methods marked
with the pragma are in fact recognized.

This enables kernel-level analyses and optimizations to query whether
a method is recognized by the VM.

TEST=Asserts that check the correspondence both ways, covered by test
suite, in particular the various CompileAll tests that compile all code.
Change-Id: I12f3305c72a93ecb1aefae2d66e3d9a7dae23b44
Cq-Do-Not-Cancel-Tryjobs: true
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/168951
Reviewed-by: Alexander Markov <alexmarkov@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
2020-11-16 13:49:50 +00:00
..
aot [vm] Support closurization of methods through @pragma entry-points. 2019-02-14 17:47:28 +00:00
frontend
images
data_dep_for_control_dep.md [vm/compiler] Express control dependence as data dependence. 2018-12-03 18:07:39 +00:00
exceptions.md [vm] DBC is obsolete. Remove dead code. 2019-10-27 18:18:29 +00:00
optimization_levels.md [vm/compiler] Add optimization flag 2019-02-06 22:16:12 +00:00
pragmas_recognized_by_compiler.md [vm] Require all recognized methods to be marked with pragma. 2020-11-16 13:49:50 +00:00
type_testing_stubs.md [vm/compiler] Tests, cleanups and fixes to Type Testing Stubs. 2020-03-17 14:11:02 +00:00