| OLD | NEW |
| 1 <!-- | 1 <!-- |
| 2 Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 2 Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
| 3 for details. All rights reserved. Use of this source code is governed by a | 3 for details. All rights reserved. Use of this source code is governed by a |
| 4 BSD-style license that can be found in the LICENSE file. | 4 BSD-style license that can be found in the LICENSE file. |
| 5 --> | 5 --> |
| 6 # Fasta -- Fully-resolved AST, Accelerated. | 6 # Fasta -- Fully-resolved AST, Accelerated. |
| 7 | 7 |
| 8 Fasta is a compiler framework for compiling Dart sources to Kernel IR. When Fast
a works well, you won't even know you're using it, as it will be transparently i
ntegrated in tools like *dart*, *dartanalyzer*, *dart2js*, etc. | 8 Fasta is a compiler framework for compiling Dart sources to Kernel IR. When Fast
a works well, you won't even know you're using it, as it will be transparently i
ntegrated in tools like *dart*, *dartanalyzer*, *dart2js*, etc. |
| 9 | 9 |
| 10 Hopefully, you'll notice that Fasta-based tools are fast, with good error messag
es. If not, please let us [know](https://github.com/dart-lang/sdk/issues/new). | 10 Hopefully, you'll notice that Fasta-based tools are fast, with good error messag
es. If not, please let us [know](https://github.com/dart-lang/sdk/issues/new). |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 This will generate `pkg/front_end/test/fasta/hello.dart.dill` which can be run t
his way: | 79 This will generate `pkg/front_end/test/fasta/hello.dart.dill` which can be run t
his way: |
| 80 | 80 |
| 81 ```bash | 81 ```bash |
| 82 $DART_AOT_VM pkg/front_end/test/fasta/hello.dart.dill | 82 $DART_AOT_VM pkg/front_end/test/fasta/hello.dart.dill |
| 83 ``` | 83 ``` |
| 84 | 84 |
| 85 Where `$DART_AOT_VM` is defined as described [above](#Building-The-Dart-SDK). | 85 Where `$DART_AOT_VM` is defined as described [above](#Building-The-Dart-SDK). |
| 86 | 86 |
| 87 ## Running Tests | 87 ## Running Tests |
| 88 | 88 |
| 89 Run: | 89 See [How to test Fasta](TESTING.md) |
| 90 | |
| 91 ```bash | |
| 92 dart -c pkg/testing/bin/testing.dart --config=pkg/front_end/test/fasta/testing.j
son | |
| 93 ``` | |
| 94 | 90 |
| 95 ## Running dart2js | 91 ## Running dart2js |
| 96 | 92 |
| 97 ```bash | 93 ```bash |
| 98 dart pkg/front_end/lib/src/fasta/bin/compile.dart pkg/compiler/lib/src/dart2js.d
art | 94 dart pkg/front_end/lib/src/fasta/bin/compile.dart pkg/compiler/lib/src/dart2js.d
art |
| 99 $DART_AOT_VM pkg/compiler/lib/src/dart2js.dart.dill pkg/front_end/test/fasta/hel
lo.dart | 95 $DART_AOT_VM pkg/compiler/lib/src/dart2js.dart.dill pkg/front_end/test/fasta/hel
lo.dart |
| 100 ``` | 96 ``` |
| 101 | 97 |
| 102 The output of dart2js will be `out.js`, and it can be run on any Javascript engi
ne, for example, d8 which is included with the Dart SDK sources: | 98 The output of dart2js will be `out.js`, and it can be run on any Javascript engi
ne, for example, d8 which is included with the Dart SDK sources: |
| 103 | 99 |
| 104 ``` | 100 ``` |
| 105 ./third_party/d8/<OS>/d8 out.js | 101 ./third_party/d8/<OS>/d8 out.js |
| 106 ``` | 102 ``` |
| 107 | 103 |
| 108 Where `<OS>` is one of `linux`, `macos`, or `windows`. | 104 Where `<OS>` is one of `linux`, `macos`, or `windows`. |
| OLD | NEW |