63e170a242
This change removes duplicate management of inputs in variadic IL instructions by introducing VariadicDefinition and VariadicDefinitionWithEmbeddedInputs base classes. TemplateInstruction and TemplateDefinition are used in more places where appropriate. Number of inputs no longer depends on the values of the inputs (DropTempsInstr and AllocateObjectInstr). This change also prepares IL for the future implementation of binary serialization/deserialization in the following ways: * Environment now holds Function and not ParsedFunction (which are not going to be serialized). * Instructions no longer keep Zone* pointer (it's redundant). * NativeCallInstr keeps references to handles instead of pointers. TEST=ci (pure refactoring) Change-Id: I932b62c1c207bbf60cddbded8a39b41beabd3e83 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/253480 Reviewed-by: Slava Egorov <vegorov@google.com> Reviewed-by: Martin Kustermann <kustermann@google.com> Commit-Queue: Alexander Markov <alexmarkov@google.com>
Dart VM Compilation Pipeline
This folder contains Dart VM compilation pipeline.
Compilation pipeline is mainly responsible for converting AST or Kernel AST into IL flow graphs and then generating native code from IL.
It has the following structure:
| Directory | What goes there |
|---|---|
assembler/ |
Assemblers and disassemblers |
backend/ |
IL based compilation backend: optimization passes and architecture specific code generation rules |
frontend/ |
Frontends responsible for converting AST into IL |
jit/ |
JIT specific passes and compilation pipeline entry points |
aot/ |
AOT specific passes and compilation pipeline entry points |
. |
Shared code or code without clear designation. |
Currently there are no layering restrictions and components from different subfolders can reference each other.