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

Side by Side Diff: src/jsregexp.cc

Issue 10170030: Implement tracking and optimizations of packed arrays (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Review feedback Created 8 years, 7 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 | « src/ic.cc ('k') | src/lithium.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
11 // with the distribution. 11 // with the distribution.
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 ? SearchString(isolate, 317 ? SearchString(isolate,
318 subject_content.ToAsciiVector(), 318 subject_content.ToAsciiVector(),
319 needle_content.ToUC16Vector(), 319 needle_content.ToUC16Vector(),
320 index) 320 index)
321 : SearchString(isolate, 321 : SearchString(isolate,
322 subject_content.ToUC16Vector(), 322 subject_content.ToUC16Vector(),
323 needle_content.ToUC16Vector(), 323 needle_content.ToUC16Vector(),
324 index))); 324 index)));
325 if (index == -1) return isolate->factory()->null_value(); 325 if (index == -1) return isolate->factory()->null_value();
326 } 326 }
327 ASSERT(last_match_info->HasFastElements()); 327 ASSERT(last_match_info->HasFastObjectElements());
328 328
329 { 329 {
330 NoHandleAllocation no_handles; 330 NoHandleAllocation no_handles;
331 FixedArray* array = FixedArray::cast(last_match_info->elements()); 331 FixedArray* array = FixedArray::cast(last_match_info->elements());
332 SetAtomLastCapture(array, *subject, index, index + needle_len); 332 SetAtomLastCapture(array, *subject, index, index + needle_len);
333 } 333 }
334 return last_match_info; 334 return last_match_info;
335 } 335 }
336 336
337 337
(...skipping 5546 matching lines...) Expand 10 before | Expand all | Expand 10 after
5884 } 5884 }
5885 5885
5886 return compiler.Assemble(&macro_assembler, 5886 return compiler.Assemble(&macro_assembler,
5887 node, 5887 node,
5888 data->capture_count, 5888 data->capture_count,
5889 pattern); 5889 pattern);
5890 } 5890 }
5891 5891
5892 5892
5893 }} // namespace v8::internal 5893 }} // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ic.cc ('k') | src/lithium.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698