| OLD | NEW |
| 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_assembler_bytecode.h" | 9 #include "vm/regexp_assembler_bytecode.h" |
| 10 #include "vm/regexp_assembler_ir.h" | 10 #include "vm/regexp_assembler_ir.h" |
| (...skipping 5249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5260 Symbols::Irregexp(), | 5260 Symbols::Irregexp(), |
| 5261 Symbols::ColonSpace(), Heap::kOld)), | 5261 Symbols::ColonSpace(), Heap::kOld)), |
| 5262 String::Handle(regexp.pattern()), Heap::kOld)))), | 5262 String::Handle(regexp.pattern()), Heap::kOld)))), |
| 5263 RawFunction::kIrregexpFunction, | 5263 RawFunction::kIrregexpFunction, |
| 5264 true, // Static. | 5264 true, // Static. |
| 5265 false, // Not const. | 5265 false, // Not const. |
| 5266 false, // Not abstract. | 5266 false, // Not abstract. |
| 5267 false, // Not external. | 5267 false, // Not external. |
| 5268 false, // Not native. | 5268 false, // Not native. |
| 5269 owner, | 5269 owner, |
| 5270 0)); // No token position. | 5270 TokenDescriptor::kMinSource)); |
| 5271 | 5271 |
| 5272 // TODO(zerny): Share these arrays between all irregexp functions. | 5272 // TODO(zerny): Share these arrays between all irregexp functions. |
| 5273 fn.set_num_fixed_parameters(kParamCount); | 5273 fn.set_num_fixed_parameters(kParamCount); |
| 5274 fn.set_parameter_types(Array::Handle(zone, Array::New(kParamCount, | 5274 fn.set_parameter_types(Array::Handle(zone, Array::New(kParamCount, |
| 5275 Heap::kOld))); | 5275 Heap::kOld))); |
| 5276 fn.set_parameter_names(Array::Handle(zone, Array::New(kParamCount, | 5276 fn.set_parameter_names(Array::Handle(zone, Array::New(kParamCount, |
| 5277 Heap::kOld))); | 5277 Heap::kOld))); |
| 5278 fn.SetParameterTypeAt(RegExpMacroAssembler::kParamRegExpIndex, | 5278 fn.SetParameterTypeAt(RegExpMacroAssembler::kParamRegExpIndex, |
| 5279 Object::dynamic_type()); | 5279 Object::dynamic_type()); |
| 5280 fn.SetParameterNameAt(RegExpMacroAssembler::kParamRegExpIndex, | 5280 fn.SetParameterNameAt(RegExpMacroAssembler::kParamRegExpIndex, |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5326 CreateSpecializedFunction(zone, regexp, kOneByteStringCid, owner); | 5326 CreateSpecializedFunction(zone, regexp, kOneByteStringCid, owner); |
| 5327 CreateSpecializedFunction(zone, regexp, kTwoByteStringCid, owner); | 5327 CreateSpecializedFunction(zone, regexp, kTwoByteStringCid, owner); |
| 5328 CreateSpecializedFunction(zone, regexp, kExternalOneByteStringCid, owner); | 5328 CreateSpecializedFunction(zone, regexp, kExternalOneByteStringCid, owner); |
| 5329 CreateSpecializedFunction(zone, regexp, kExternalTwoByteStringCid, owner); | 5329 CreateSpecializedFunction(zone, regexp, kExternalTwoByteStringCid, owner); |
| 5330 | 5330 |
| 5331 return regexp.raw(); | 5331 return regexp.raw(); |
| 5332 } | 5332 } |
| 5333 | 5333 |
| 5334 | 5334 |
| 5335 } // namespace dart | 5335 } // namespace dart |
| OLD | NEW |