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

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

Issue 1644793002: Replace intptr_t with TokenDescriptor (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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/vm/raw_object_snapshot.cc ('k') | runtime/vm/regexp_assembler_ir.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_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
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 TokenPosition::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
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
OLDNEW
« no previous file with comments | « runtime/vm/raw_object_snapshot.cc ('k') | runtime/vm/regexp_assembler_ir.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698