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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 // Variables are allocated after compilation. | 161 // Variables are allocated after compilation. |
162 } | 162 } |
163 | 163 |
164 | 164 |
165 FlowGraph* IrregexpCompilationPipeline::BuildFlowGraph( | 165 FlowGraph* IrregexpCompilationPipeline::BuildFlowGraph( |
166 Zone* zone, | 166 Zone* zone, |
167 ParsedFunction* parsed_function, | 167 ParsedFunction* parsed_function, |
168 const ZoneGrowableArray<const ICData*>& ic_data_array, | 168 const ZoneGrowableArray<const ICData*>& ic_data_array, |
169 intptr_t osr_id) { | 169 intptr_t osr_id) { |
170 // Compile to the dart IR. | 170 // Compile to the dart IR. |
171 RegExpEngine::CompilationResult result = RegExpEngine::CompileIR( | 171 RegExpEngine::CompilationResult result = |
172 parsed_function->regexp_compile_data(), parsed_function, ic_data_array); | 172 RegExpEngine::CompileIR(parsed_function->regexp_compile_data(), |
| 173 parsed_function, ic_data_array, osr_id); |
173 backtrack_goto_ = result.backtrack_goto; | 174 backtrack_goto_ = result.backtrack_goto; |
174 | 175 |
175 // Allocate variables now that we know the number of locals. | 176 // Allocate variables now that we know the number of locals. |
176 parsed_function->AllocateIrregexpVariables(result.num_stack_locals); | 177 parsed_function->AllocateIrregexpVariables(result.num_stack_locals); |
177 | 178 |
178 // Build the flow graph. | 179 // Build the flow graph. |
179 FlowGraphBuilder builder(*parsed_function, ic_data_array, | 180 FlowGraphBuilder builder(*parsed_function, ic_data_array, |
180 /* not building var desc */ NULL, | 181 /* not building var desc */ NULL, |
181 /* not inlining */ NULL, osr_id); | 182 /* not inlining */ NULL, osr_id); |
182 | 183 |
(...skipping 2149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2332 | 2333 |
2333 | 2334 |
2334 bool BackgroundCompiler::IsDisabled() { | 2335 bool BackgroundCompiler::IsDisabled() { |
2335 UNREACHABLE(); | 2336 UNREACHABLE(); |
2336 return true; | 2337 return true; |
2337 } | 2338 } |
2338 | 2339 |
2339 #endif // DART_PRECOMPILED_RUNTIME | 2340 #endif // DART_PRECOMPILED_RUNTIME |
2340 | 2341 |
2341 } // namespace dart | 2342 } // namespace dart |
OLD | NEW |