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

Side by Side Diff: pkg/front_end/tool/fasta

Issue 2770623003: Add kernel-service subcommand to fasta script. (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 # Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 2 # Copyright (c) 2017, 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 set -e 6 set -e
7 7
8 REPO_DIR="$(git rev-parse --show-toplevel)" 8 REPO_DIR="$(git rev-parse --show-toplevel)"
9 9
10 # TODO(ahe): We currently rely on the Dart VM wrapper script to define 10 # TODO(ahe): We currently rely on the Dart VM wrapper script to define
(...skipping 29 matching lines...) Expand all
40 dump-ir) 40 dump-ir)
41 SCRIPT="${KERNEL_BIN}/dump.dart" 41 SCRIPT="${KERNEL_BIN}/dump.dart"
42 if [ "$#" = "2" ]; then 42 if [ "$#" = "2" ]; then
43 # Write to stdout if no target is given. 43 # Write to stdout if no target is given.
44 set -- "$@" /dev/fd/1 44 set -- "$@" /dev/fd/1
45 fi 45 fi
46 if [ "$#" != "3" ]; then 46 if [ "$#" != "3" ]; then
47 stop "Usage: $1 dillfile [output]" 47 stop "Usage: $1 dillfile [output]"
48 fi 48 fi
49 ;; 49 ;;
50 kernel-service)
51 shift
52 exec "${DART_VM}" -c -DDFE_VERBOSE=true \
53 --dfe="${REPO_DIR}/utils/kernel-service/kernel-service.dart" "$@"
54 ;;
50 testing) 55 testing)
51 SCRIPT="${REPO_DIR}/pkg/testing/bin/testing.dart" 56 SCRIPT="${REPO_DIR}/pkg/testing/bin/testing.dart"
52 set -- "$@" "--config=${REPO_DIR}/pkg/front_end/test/fasta/testing.json" 57 set -- "$@" "--config=${REPO_DIR}/pkg/front_end/test/fasta/testing.json"
53 ;; 58 ;;
54 generate-messages) SCRIPT="${TOOL_DIR}/generate_messages.dart";; 59 generate-messages) SCRIPT="${TOOL_DIR}/generate_messages.dart";;
55 *) 60 *)
56 stop "'$1' isn't a valid subcommand." 61 stop "'$1' isn't a valid subcommand."
57 ;; 62 ;;
58 esac 63 esac
59 64
60 shift 65 shift
61 66
62 DART_CONFIGURATION=${DART_CONFIGURATION:-ReleaseX64} exec "${DART_VM}" -c "${SCR IPT}" "$@" 67 DART_CONFIGURATION=${DART_CONFIGURATION:-ReleaseX64} exec "${DART_VM}" -c "${SCR IPT}" "$@"
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698