OLD | NEW |
1 // Copyright (c) 2011, 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/dart_entry.h" | 13 #include "vm/dart_entry.h" |
14 #include "vm/debugger.h" | 14 #include "vm/debugger.h" |
15 #include "vm/ic_data.h" | 15 #include "vm/ic_data.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 DEFINE_FLAG(bool, print_ast, false, "Print abstract syntax tree."); |
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 DEFINE_FLAG(int, optimization_invocation_threshold, 1000, | 28 DEFINE_FLAG(int, optimization_invocation_threshold, -1, |
29 "number of invocations before a function is optimized, -1 means never."); | 29 "number of invocations before a function is optimized, -1 means never."); |
30 DECLARE_FLAG(bool, enable_type_checks); | 30 DECLARE_FLAG(bool, enable_type_checks); |
31 DECLARE_FLAG(bool, report_invocation_count); | 31 DECLARE_FLAG(bool, report_invocation_count); |
32 DECLARE_FLAG(bool, trace_compiler); | 32 DECLARE_FLAG(bool, trace_compiler); |
33 | 33 |
34 #define __ assembler_-> | 34 #define __ assembler_-> |
35 | 35 |
36 | 36 |
37 // TODO(regis): CodeGeneratorState, CodeGenerator::DescriptorList, and | 37 // TODO(regis): CodeGeneratorState, CodeGenerator::DescriptorList, and |
38 // CodeGenerator::HandlerList can probably be moved to code_generator.cc, since | 38 // CodeGenerator::HandlerList can probably be moved to code_generator.cc, since |
(...skipping 2762 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2801 message_buffer, kMessageBufferSize, | 2801 message_buffer, kMessageBufferSize, |
2802 format, args); | 2802 format, args); |
2803 va_end(args); | 2803 va_end(args); |
2804 Isolate::Current()->long_jump_base()->Jump(1, message_buffer); | 2804 Isolate::Current()->long_jump_base()->Jump(1, message_buffer); |
2805 UNREACHABLE(); | 2805 UNREACHABLE(); |
2806 } | 2806 } |
2807 | 2807 |
2808 } // namespace dart | 2808 } // namespace dart |
2809 | 2809 |
2810 #endif // defined TARGET_ARCH_X64 | 2810 #endif // defined TARGET_ARCH_X64 |
OLD | NEW |