| 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_XXX. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_XXX. |
| 6 | 6 |
| 7 #include "vm/flow_graph_compiler.h" | 7 #include "vm/flow_graph_compiler.h" |
| 8 | 8 |
| 9 #include "vm/debugger.h" | 9 #include "vm/debugger.h" |
| 10 #include "vm/il_printer.h" | 10 #include "vm/il_printer.h" |
| 11 #include "vm/intrinsifier.h" | 11 #include "vm/intrinsifier.h" |
| 12 #include "vm/locations.h" | 12 #include "vm/locations.h" |
| 13 #include "vm/longjump.h" | 13 #include "vm/longjump.h" |
| 14 #include "vm/object_store.h" | 14 #include "vm/object_store.h" |
| 15 #include "vm/parser.h" | 15 #include "vm/parser.h" |
| 16 #include "vm/stub_code.h" | 16 #include "vm/stub_code.h" |
| 17 | 17 |
| 18 namespace dart { | 18 namespace dart { |
| 19 | 19 |
| 20 DEFINE_FLAG(bool, print_scopes, false, "Print scopes of local variables."); |
| 21 DEFINE_FLAG(bool, trace_functions, false, "Trace entry of each function."); |
| 20 DECLARE_FLAG(bool, code_comments); | 22 DECLARE_FLAG(bool, code_comments); |
| 21 DECLARE_FLAG(bool, enable_type_checks); | 23 DECLARE_FLAG(bool, enable_type_checks); |
| 22 DECLARE_FLAG(bool, intrinsify); | 24 DECLARE_FLAG(bool, intrinsify); |
| 23 DECLARE_FLAG(bool, report_usage_count); | 25 DECLARE_FLAG(bool, report_usage_count); |
| 24 DECLARE_FLAG(bool, trace_functions); | 26 DECLARE_FLAG(bool, trace_functions); |
| 25 DECLARE_FLAG(int, optimization_counter_threshold); | 27 DECLARE_FLAG(int, optimization_counter_threshold); |
| 26 | 28 |
| 27 | 29 |
| 28 FlowGraphCompiler::FlowGraphCompiler( | 30 FlowGraphCompiler::FlowGraphCompiler( |
| 29 Assembler* assembler, | 31 Assembler* assembler, |
| (...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 609 | 611 |
| 610 | 612 |
| 611 void FrameRegisterAllocator::SpillInDeoptStub(DeoptimizationStub* stub) { | 613 void FrameRegisterAllocator::SpillInDeoptStub(DeoptimizationStub* stub) { |
| 612 for (int i = 0; i < stack_.length(); i++) { | 614 for (int i = 0; i < stack_.length(); i++) { |
| 613 stub->Push(stack_[i]); | 615 stub->Push(stack_[i]); |
| 614 } | 616 } |
| 615 } | 617 } |
| 616 | 618 |
| 617 | 619 |
| 618 } // namespace dart | 620 } // namespace dart |
| OLD | NEW |