OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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" | 5 #include "vm/globals.h" |
6 #if defined(TARGET_ARCH_DBC) | 6 #if defined(TARGET_ARCH_DBC) |
7 | 7 |
8 #include "vm/assembler.h" | 8 #include "vm/assembler.h" |
9 #include "vm/code_generator.h" | 9 #include "vm/code_generator.h" |
10 #include "vm/cpu.h" | 10 #include "vm/cpu.h" |
11 #include "vm/compiler.h" | 11 #include "vm/compiler.h" |
12 #include "vm/dart_entry.h" | 12 #include "vm/dart_entry.h" |
13 #include "vm/flow_graph_compiler.h" | 13 #include "vm/flow_graph_compiler.h" |
14 #include "vm/heap.h" | 14 #include "vm/heap.h" |
15 #include "vm/instructions.h" | 15 #include "vm/instructions.h" |
16 #include "vm/object_store.h" | 16 #include "vm/object_store.h" |
17 #include "vm/stack_frame.h" | 17 #include "vm/stack_frame.h" |
18 #include "vm/stub_code.h" | 18 #include "vm/stub_code.h" |
19 #include "vm/tags.h" | 19 #include "vm/tags.h" |
20 | 20 |
21 #define __ assembler-> | 21 #define __ assembler-> |
22 | 22 |
23 namespace dart { | 23 namespace dart { |
24 | 24 |
25 DEFINE_FLAG(bool, inline_alloc, true, "Inline allocation of objects."); | 25 DEFINE_FLAG(bool, inline_alloc, true, "Inline allocation of objects."); |
26 DEFINE_FLAG(bool, use_slow_path, false, | 26 DEFINE_FLAG(bool, |
27 "Set to true for debugging & verifying the slow paths."); | 27 use_slow_path, |
| 28 false, |
| 29 "Set to true for debugging & verifying the slow paths."); |
28 DECLARE_FLAG(bool, trace_optimized_ic_calls); | 30 DECLARE_FLAG(bool, trace_optimized_ic_calls); |
29 | 31 |
30 void StubCode::GenerateLazyCompileStub(Assembler* assembler) { | 32 void StubCode::GenerateLazyCompileStub(Assembler* assembler) { |
31 __ Compile(); | 33 __ Compile(); |
32 } | 34 } |
33 | 35 |
34 | 36 |
35 // Not executed, but used as a stack marker when calling | 37 // Not executed, but used as a stack marker when calling |
36 // DRT_OptimizeInvokedFunction. | 38 // DRT_OptimizeInvokedFunction. |
37 void StubCode::GenerateOptimizeFunctionStub(Assembler* assembler) { | 39 void StubCode::GenerateOptimizeFunctionStub(Assembler* assembler) { |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 | 85 |
84 // Print the stop message. | 86 // Print the stop message. |
85 DEFINE_LEAF_RUNTIME_ENTRY(void, PrintStopMessage, 1, const char* message) { | 87 DEFINE_LEAF_RUNTIME_ENTRY(void, PrintStopMessage, 1, const char* message) { |
86 OS::Print("Stop message: %s\n", message); | 88 OS::Print("Stop message: %s\n", message); |
87 } | 89 } |
88 END_LEAF_RUNTIME_ENTRY | 90 END_LEAF_RUNTIME_ENTRY |
89 | 91 |
90 } // namespace dart | 92 } // namespace dart |
91 | 93 |
92 #endif // defined TARGET_ARCH_DBC | 94 #endif // defined TARGET_ARCH_DBC |
OLD | NEW |