| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 5884 } | 5884 } |
| 5885 | 5885 |
| 5886 return compiler.Assemble(¯o_assembler, | 5886 return compiler.Assemble(¯o_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 |
| OLD | NEW |