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

Side by Side Diff: src/jsregexp.cc

Issue 149001: * Fix compile errors on Android. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 5 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 | « no previous file | src/platform.h » ('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 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 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
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 } 414 }
415 #endif 415 #endif
416 416
417 if (!subject->IsFlat()) { 417 if (!subject->IsFlat()) {
418 FlattenString(subject); 418 FlattenString(subject);
419 } 419 }
420 420
421 last_match_info->EnsureSize(number_of_capture_registers + kLastMatchOverhead); 421 last_match_info->EnsureSize(number_of_capture_registers + kLastMatchOverhead);
422 422
423 bool rc; 423 bool rc;
424 FixedArray* array; 424 // We have to initialize this with something to make gcc happy but we can't
425 // initialize it with its real value until after the GC-causing things are
426 // over.
427 FixedArray* array = NULL;
425 428
426 // Dispatch to the correct RegExp implementation. 429 // Dispatch to the correct RegExp implementation.
427 Handle<String> original_subject = subject; 430 Handle<String> original_subject = subject;
428 Handle<FixedArray> regexp(FixedArray::cast(jsregexp->data())); 431 Handle<FixedArray> regexp(FixedArray::cast(jsregexp->data()));
429 if (UseNativeRegexp()) { 432 if (UseNativeRegexp()) {
430 #if V8_TARGET_ARCH_IA32 433 #if V8_TARGET_ARCH_IA32
431 OffsetsVector captures(number_of_capture_registers); 434 OffsetsVector captures(number_of_capture_registers);
432 int* captures_vector = captures.vector(); 435 int* captures_vector = captures.vector();
433 RegExpMacroAssemblerIA32::Result res; 436 RegExpMacroAssemblerIA32::Result res;
434 do { 437 do {
(...skipping 4059 matching lines...) Expand 10 before | Expand all | Expand 10 after
4494 EmbeddedVector<byte, 1024> codes; 4497 EmbeddedVector<byte, 1024> codes;
4495 RegExpMacroAssemblerIrregexp macro_assembler(codes); 4498 RegExpMacroAssemblerIrregexp macro_assembler(codes);
4496 return compiler.Assemble(&macro_assembler, 4499 return compiler.Assemble(&macro_assembler,
4497 node, 4500 node,
4498 data->capture_count, 4501 data->capture_count,
4499 pattern); 4502 pattern);
4500 } 4503 }
4501 4504
4502 4505
4503 }} // namespace v8::internal 4506 }} // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/platform.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698