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

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

Issue 789643006: Introduce is_debuggable state bit on function objects (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/parser.cc ('k') | runtime/vm/resolver.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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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/regexp.h" 5 #include "vm/regexp.h"
6 6
7 #include "vm/dart_entry.h" 7 #include "vm/dart_entry.h"
8 #include "vm/regexp_assembler.h" 8 #include "vm/regexp_assembler.h"
9 #include "vm/regexp_ast.h" 9 #include "vm/regexp_ast.h"
10 #include "vm/unibrow-inl.h" 10 #include "vm/unibrow-inl.h"
(...skipping 5110 matching lines...) Expand 10 before | Expand all | Expand 10 after
5121 fn.SetParameterNameAt(0, Symbols::string_param()); 5121 fn.SetParameterNameAt(0, Symbols::string_param());
5122 fn.SetParameterTypeAt(1, Type::Handle(isolate, Type::DynamicType())); 5122 fn.SetParameterTypeAt(1, Type::Handle(isolate, Type::DynamicType()));
5123 fn.SetParameterNameAt(1, Symbols::start_index_param()); 5123 fn.SetParameterNameAt(1, Symbols::start_index_param());
5124 fn.set_result_type(Type::Handle(isolate, Type::ArrayType())); 5124 fn.set_result_type(Type::Handle(isolate, Type::ArrayType()));
5125 5125
5126 // Cache the result. 5126 // Cache the result.
5127 regexp.set_function(specialization_cid, fn); 5127 regexp.set_function(specialization_cid, fn);
5128 5128
5129 fn.set_regexp(regexp); 5129 fn.set_regexp(regexp);
5130 fn.set_regexp_cid(specialization_cid); 5130 fn.set_regexp_cid(specialization_cid);
5131 fn.set_is_debuggable(false);
5131 5132
5132 // The function is compiled lazily during the first call. 5133 // The function is compiled lazily during the first call.
5133 } 5134 }
5134 5135
5135 5136
5136 RawJSRegExp* RegExpEngine::CreateJSRegExp(Isolate* isolate, 5137 RawJSRegExp* RegExpEngine::CreateJSRegExp(Isolate* isolate,
5137 const String& pattern, 5138 const String& pattern,
5138 bool multi_line, 5139 bool multi_line,
5139 bool ignore_case) { 5140 bool ignore_case) {
5140 const JSRegExp& regexp = JSRegExp::Handle(JSRegExp::New(0)); 5141 const JSRegExp& regexp = JSRegExp::Handle(JSRegExp::New(0));
(...skipping 19 matching lines...) Expand all
5160 CreateSpecializedFunction(isolate, regexp, kOneByteStringCid, owner); 5161 CreateSpecializedFunction(isolate, regexp, kOneByteStringCid, owner);
5161 CreateSpecializedFunction(isolate, regexp, kTwoByteStringCid, owner); 5162 CreateSpecializedFunction(isolate, regexp, kTwoByteStringCid, owner);
5162 CreateSpecializedFunction(isolate, regexp, kExternalOneByteStringCid, owner); 5163 CreateSpecializedFunction(isolate, regexp, kExternalOneByteStringCid, owner);
5163 CreateSpecializedFunction(isolate, regexp, kExternalTwoByteStringCid, owner); 5164 CreateSpecializedFunction(isolate, regexp, kExternalTwoByteStringCid, owner);
5164 5165
5165 return regexp.raw(); 5166 return regexp.raw();
5166 } 5167 }
5167 5168
5168 5169
5169 } // namespace dart 5170 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/parser.cc ('k') | runtime/vm/resolver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698