| 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/flow_graph_compiler.h" | 8 #include "vm/flow_graph_compiler.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/code_descriptors.h" | 12 #include "vm/code_descriptors.h" |
| 13 #include "vm/code_generator.h" | 13 #include "vm/code_generator.h" |
| 14 #include "vm/debugger.h" | 14 #include "vm/debugger.h" |
| 15 #include "vm/disassembler.h" | 15 #include "vm/disassembler.h" |
| 16 #include "vm/il_printer.h" | 16 #include "vm/il_printer.h" |
| 17 #include "vm/intrinsifier.h" | 17 #include "vm/intrinsifier.h" |
| 18 #include "vm/locations.h" | 18 #include "vm/locations.h" |
| 19 #include "vm/longjump.h" | 19 #include "vm/longjump.h" |
| 20 #include "vm/object_store.h" | 20 #include "vm/object_store.h" |
| 21 #include "vm/parser.h" | 21 #include "vm/parser.h" |
| 22 #include "vm/stub_code.h" | 22 #include "vm/stub_code.h" |
| 23 | 23 |
| 24 namespace dart { | 24 namespace dart { |
| 25 | 25 |
| 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, intrinsify); | 29 DECLARE_FLAG(bool, intrinsify); |
| 30 DECLARE_FLAG(bool, optimization_counter_threshold); | 30 DECLARE_FLAG(int, optimization_counter_threshold); |
| 31 DECLARE_FLAG(bool, print_ast); | 31 DECLARE_FLAG(bool, print_ast); |
| 32 DECLARE_FLAG(bool, report_usage_count); | 32 DECLARE_FLAG(bool, report_usage_count); |
| 33 DECLARE_FLAG(bool, code_comments); | 33 DECLARE_FLAG(bool, code_comments); |
| 34 | 34 |
| 35 class DeoptimizationStub : public ZoneAllocated { | 35 class DeoptimizationStub : public ZoneAllocated { |
| 36 public: | 36 public: |
| 37 DeoptimizationStub(intptr_t deopt_id, | 37 DeoptimizationStub(intptr_t deopt_id, |
| 38 intptr_t deopt_token_index, | 38 intptr_t deopt_token_index, |
| 39 intptr_t try_index, | 39 intptr_t try_index, |
| 40 DeoptReasonId reason) | 40 DeoptReasonId reason) |
| (...skipping 1505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1546 | 1546 |
| 1547 void FlowGraphCompiler::FinalizeComments(const Code& code) { | 1547 void FlowGraphCompiler::FinalizeComments(const Code& code) { |
| 1548 code.set_comments(assembler_->GetCodeComments()); | 1548 code.set_comments(assembler_->GetCodeComments()); |
| 1549 } | 1549 } |
| 1550 | 1550 |
| 1551 #undef __ | 1551 #undef __ |
| 1552 | 1552 |
| 1553 } // namespace dart | 1553 } // namespace dart |
| 1554 | 1554 |
| 1555 #endif // defined TARGET_ARCH_X64 | 1555 #endif // defined TARGET_ARCH_X64 |
| OLD | NEW |