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

Side by Side Diff: runtime/lib/regexp.cc

Issue 1739593002: Revert "Move precompilation-related flags to flags list." (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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 | « runtime/bin/main.cc ('k') | runtime/vm/aot_optimizer.cc » ('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 "platform/assert.h" 5 #include "platform/assert.h"
6 #include "vm/bootstrap_natives.h" 6 #include "vm/bootstrap_natives.h"
7 #include "vm/exceptions.h" 7 #include "vm/exceptions.h"
8 #include "vm/native_entry.h" 8 #include "vm/native_entry.h"
9 #include "vm/object.h" 9 #include "vm/object.h"
10 #include "vm/regexp_parser.h" 10 #include "vm/regexp_parser.h"
11 #include "vm/regexp_assembler_ir.h" 11 #include "vm/regexp_assembler_ir.h"
12 #include "vm/regexp_assembler_bytecode.h" 12 #include "vm/regexp_assembler_bytecode.h"
13 #include "vm/thread.h" 13 #include "vm/thread.h"
14 14
15 namespace dart { 15 namespace dart {
16 16
17 DECLARE_FLAG(bool, trace_irregexp); 17 DECLARE_FLAG(bool, trace_irregexp);
18 DECLARE_FLAG(bool, interpret_irregexp);
18 19
19 20
20 DEFINE_NATIVE_ENTRY(JSSyntaxRegExp_factory, 4) { 21 DEFINE_NATIVE_ENTRY(JSSyntaxRegExp_factory, 4) {
21 ASSERT(TypeArguments::CheckedHandle(arguments->NativeArgAt(0)).IsNull()); 22 ASSERT(TypeArguments::CheckedHandle(arguments->NativeArgAt(0)).IsNull());
22 GET_NON_NULL_NATIVE_ARGUMENT(String, pattern, arguments->NativeArgAt(1)); 23 GET_NON_NULL_NATIVE_ARGUMENT(String, pattern, arguments->NativeArgAt(1));
23 GET_NON_NULL_NATIVE_ARGUMENT( 24 GET_NON_NULL_NATIVE_ARGUMENT(
24 Instance, handle_multi_line, arguments->NativeArgAt(2)); 25 Instance, handle_multi_line, arguments->NativeArgAt(2));
25 GET_NON_NULL_NATIVE_ARGUMENT( 26 GET_NON_NULL_NATIVE_ARGUMENT(
26 Instance, handle_case_sensitive, arguments->NativeArgAt(3)); 27 Instance, handle_case_sensitive, arguments->NativeArgAt(3));
27 bool ignore_case = handle_case_sensitive.raw() != Bool::True().raw(); 28 bool ignore_case = handle_case_sensitive.raw() != Bool::True().raw();
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 91
91 if (FLAG_interpret_irregexp) { 92 if (FLAG_interpret_irregexp) {
92 return BytecodeRegExpMacroAssembler::Interpret(regexp, subject, start_index, 93 return BytecodeRegExpMacroAssembler::Interpret(regexp, subject, start_index,
93 zone); 94 zone);
94 } 95 }
95 96
96 return IRRegExpMacroAssembler::Execute(regexp, subject, start_index, zone); 97 return IRRegExpMacroAssembler::Execute(regexp, subject, start_index, zone);
97 } 98 }
98 99
99 } // namespace dart 100 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/bin/main.cc ('k') | runtime/vm/aot_optimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698