| 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/compiler.h" | 5 #include "vm/compiler.h" |
| 6 | 6 |
| 7 #include "vm/assembler.h" | 7 #include "vm/assembler.h" |
| 8 | 8 |
| 9 #include "vm/ast_printer.h" | 9 #include "vm/ast_printer.h" |
| 10 #include "vm/block_scheduler.h" | 10 #include "vm/block_scheduler.h" |
| (...skipping 1127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1138 // heap to grow. | 1138 // heap to grow. |
| 1139 NoHeapGrowthControlScope no_growth_control; | 1139 NoHeapGrowthControlScope no_growth_control; |
| 1140 if (!isolate()->background_compiler()->is_running()) { | 1140 if (!isolate()->background_compiler()->is_running()) { |
| 1141 // The background compiler is being stopped. | 1141 // The background compiler is being stopped. |
| 1142 Compiler::AbortBackgroundCompilation(Thread::kNoDeoptId, | 1142 Compiler::AbortBackgroundCompilation(Thread::kNoDeoptId, |
| 1143 "Background compilation is being stopped"); | 1143 "Background compilation is being stopped"); |
| 1144 } | 1144 } |
| 1145 FinalizeCompilation(&assembler, &graph_compiler, flow_graph); | 1145 FinalizeCompilation(&assembler, &graph_compiler, flow_graph); |
| 1146 } | 1146 } |
| 1147 // TODO(srdjan): Enable this and remove the one from | 1147 // TODO(srdjan): Enable this and remove the one from |
| 1148 // 'BackgroundCompiler::CompileOptimize' | 1148 // 'BackgroundCompiler::CompileOptimized' |
| 1149 // if (isolate()->heap()->NeedsGarbageCollection()) { | 1149 // if (isolate()->heap()->NeedsGarbageCollection()) { |
| 1150 // isolate()->heap()->CollectAllGarbage(); | 1150 // isolate()->heap()->CollectAllGarbage(); |
| 1151 // } | 1151 // } |
| 1152 } | 1152 } |
| 1153 } | 1153 } |
| 1154 // Mark that this isolate now has compiled code. | 1154 // Mark that this isolate now has compiled code. |
| 1155 isolate()->set_has_compiled_code(true); | 1155 isolate()->set_has_compiled_code(true); |
| 1156 // Exit the loop and the function with the correct result value. | 1156 // Exit the loop and the function with the correct result value. |
| 1157 is_compiled = true; | 1157 is_compiled = true; |
| 1158 done = true; | 1158 done = true; |
| (...skipping 935 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2094 } | 2094 } |
| 2095 | 2095 |
| 2096 | 2096 |
| 2097 void BackgroundCompiler::EnsureInit(Thread* thread) { | 2097 void BackgroundCompiler::EnsureInit(Thread* thread) { |
| 2098 UNREACHABLE(); | 2098 UNREACHABLE(); |
| 2099 } | 2099 } |
| 2100 | 2100 |
| 2101 #endif // DART_PRECOMPILED_RUNTIME | 2101 #endif // DART_PRECOMPILED_RUNTIME |
| 2102 | 2102 |
| 2103 } // namespace dart | 2103 } // namespace dart |
| OLD | NEW |