| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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_IA32. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32. |
| 6 #if defined(TARGET_ARCH_IA32) | 6 #if defined(TARGET_ARCH_IA32) |
| 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" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 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(bool, print_ic_in_optimized, false, | 28 DEFINE_FLAG(bool, print_ic_in_optimized, false, |
| 29 "Debugging helper to identify potential performance pitfalls."); | 29 "Debugging helper to identify potential performance pitfalls."); |
| 30 DEFINE_FLAG(int, optimization_invocation_threshold, 1000, | 30 DEFINE_FLAG(int, optimization_invocation_threshold, 1000, |
| 31 "number of invocations before a function is optimized, -1 means never."); | 31 "Number of invocations before a function is optimized, -1 means never."); |
| 32 DECLARE_FLAG(bool, enable_type_checks); | 32 DECLARE_FLAG(bool, enable_type_checks); |
| 33 DECLARE_FLAG(bool, report_invocation_count); | 33 DECLARE_FLAG(bool, report_invocation_count); |
| 34 DECLARE_FLAG(bool, trace_compiler); | 34 DECLARE_FLAG(bool, trace_compiler); |
| 35 | 35 |
| 36 #define __ assembler_-> | 36 #define __ assembler_-> |
| 37 | 37 |
| 38 | 38 |
| 39 CodeGeneratorState::CodeGeneratorState(CodeGenerator* codegen) | 39 CodeGeneratorState::CodeGeneratorState(CodeGenerator* codegen) |
| 40 : StackResource(Isolate::Current()), | 40 : StackResource(Isolate::Current()), |
| 41 codegen_(codegen), | 41 codegen_(codegen), |
| (...skipping 2755 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2797 message_buffer, kMessageBufferSize, | 2797 message_buffer, kMessageBufferSize, |
| 2798 format, args); | 2798 format, args); |
| 2799 va_end(args); | 2799 va_end(args); |
| 2800 Isolate::Current()->long_jump_base()->Jump(1, message_buffer); | 2800 Isolate::Current()->long_jump_base()->Jump(1, message_buffer); |
| 2801 UNREACHABLE(); | 2801 UNREACHABLE(); |
| 2802 } | 2802 } |
| 2803 | 2803 |
| 2804 } // namespace dart | 2804 } // namespace dart |
| 2805 | 2805 |
| 2806 #endif // defined TARGET_ARCH_IA32 | 2806 #endif // defined TARGET_ARCH_IA32 |
| OLD | NEW |