OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64. |
6 #if defined(TARGET_ARCH_X64) | 6 #if defined(TARGET_ARCH_X64) |
7 | 7 |
8 #include "vm/code_generator.h" | 8 #include "vm/code_generator.h" |
9 | 9 |
10 #include "lib/error.h" | 10 #include "lib/error.h" |
11 #include "vm/ast_printer.h" | 11 #include "vm/ast_printer.h" |
12 #include "vm/class_finalizer.h" | 12 #include "vm/class_finalizer.h" |
13 #include "vm/code_descriptors.h" | 13 #include "vm/code_descriptors.h" |
14 #include "vm/dart_entry.h" | 14 #include "vm/dart_entry.h" |
15 #include "vm/debugger.h" | 15 #include "vm/debugger.h" |
16 #include "vm/longjump.h" | 16 #include "vm/longjump.h" |
17 #include "vm/object.h" | 17 #include "vm/object.h" |
18 #include "vm/object_store.h" | 18 #include "vm/object_store.h" |
19 #include "vm/parser.h" | 19 #include "vm/parser.h" |
20 #include "vm/resolver.h" | 20 #include "vm/resolver.h" |
21 #include "vm/stub_code.h" | 21 #include "vm/stub_code.h" |
22 | 22 |
23 namespace dart { | 23 namespace dart { |
24 | 24 |
25 DEFINE_FLAG(bool, print_ast, false, "Print abstract syntax tree."); | 25 DECLARE_FLAG(bool, print_ast); |
26 DEFINE_FLAG(bool, print_scopes, false, "Print scopes of local variables."); | 26 DEFINE_FLAG(bool, print_scopes, false, "Print scopes of local variables."); |
27 DEFINE_FLAG(bool, trace_functions, false, "Trace entry of each function."); | 27 DEFINE_FLAG(bool, trace_functions, false, "Trace entry of each function."); |
28 DECLARE_FLAG(bool, enable_type_checks); | 28 DECLARE_FLAG(bool, enable_type_checks); |
29 DECLARE_FLAG(bool, trace_compiler); | 29 DECLARE_FLAG(bool, trace_compiler); |
30 | 30 |
31 #define __ assembler_-> | 31 #define __ assembler_-> |
32 | 32 |
33 CodeGeneratorState::CodeGeneratorState(CodeGenerator* codegen) | 33 CodeGeneratorState::CodeGeneratorState(CodeGenerator* codegen) |
34 : StackResource(Isolate::Current()), | 34 : StackResource(Isolate::Current()), |
35 codegen_(codegen), | 35 codegen_(codegen), |
(...skipping 2688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2724 const Error& error = Error::Handle( | 2724 const Error& error = Error::Handle( |
2725 Parser::FormatError(script, token_index, "Error", format, args)); | 2725 Parser::FormatError(script, token_index, "Error", format, args)); |
2726 va_end(args); | 2726 va_end(args); |
2727 Isolate::Current()->long_jump_base()->Jump(1, error); | 2727 Isolate::Current()->long_jump_base()->Jump(1, error); |
2728 UNREACHABLE(); | 2728 UNREACHABLE(); |
2729 } | 2729 } |
2730 | 2730 |
2731 } // namespace dart | 2731 } // namespace dart |
2732 | 2732 |
2733 #endif // defined TARGET_ARCH_X64 | 2733 #endif // defined TARGET_ARCH_X64 |
OLD | NEW |