Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(257)

Side by Side Diff: runtime/vm/compiler.cc

Issue 2947143002: Revert "VM(RegExp): Allow OSR optimization of RegExp :matcher functions." (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | runtime/vm/intermediate_language.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 = 171 RegExpEngine::CompilationResult result = RegExpEngine::CompileIR(
172 RegExpEngine::CompileIR(parsed_function->regexp_compile_data(), 172 parsed_function->regexp_compile_data(), parsed_function, ic_data_array);
173 parsed_function, ic_data_array, osr_id);
174 backtrack_goto_ = result.backtrack_goto; 173 backtrack_goto_ = result.backtrack_goto;
175 174
176 // Allocate variables now that we know the number of locals. 175 // Allocate variables now that we know the number of locals.
177 parsed_function->AllocateIrregexpVariables(result.num_stack_locals); 176 parsed_function->AllocateIrregexpVariables(result.num_stack_locals);
178 177
179 // Build the flow graph. 178 // Build the flow graph.
180 FlowGraphBuilder builder(*parsed_function, ic_data_array, 179 FlowGraphBuilder builder(*parsed_function, ic_data_array,
181 /* not building var desc */ NULL, 180 /* not building var desc */ NULL,
182 /* not inlining */ NULL, osr_id); 181 /* not inlining */ NULL, osr_id);
183 182
(...skipping 2149 matching lines...) Expand 10 before | Expand all | Expand 10 after
2333 2332
2334 2333
2335 bool BackgroundCompiler::IsDisabled() { 2334 bool BackgroundCompiler::IsDisabled() {
2336 UNREACHABLE(); 2335 UNREACHABLE();
2337 return true; 2336 return true;
2338 } 2337 }
2339 2338
2340 #endif // DART_PRECOMPILED_RUNTIME 2339 #endif // DART_PRECOMPILED_RUNTIME
2341 2340
2342 } // namespace dart 2341 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/intermediate_language.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698