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

Side by Side Diff: src/jsregexp.cc

Issue 13656: Fix build (someone tell gcc you can't take the address of a static... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 years 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/objects.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 1697 matching lines...) Expand 10 before | Expand all | Expand 10 after
1708 } 1708 }
1709 1709
1710 1710
1711 static void EmitCharClass(RegExpMacroAssembler* macro_assembler, 1711 static void EmitCharClass(RegExpMacroAssembler* macro_assembler,
1712 RegExpCharacterClass* cc, 1712 RegExpCharacterClass* cc,
1713 int cp_offset, 1713 int cp_offset,
1714 Label* on_failure, 1714 Label* on_failure,
1715 bool check_offset, 1715 bool check_offset,
1716 bool ascii) { 1716 bool ascii) {
1717 ZoneList<CharacterRange>* ranges = cc->ranges(); 1717 ZoneList<CharacterRange>* ranges = cc->ranges();
1718 const int max_char = ascii ? 1718 int max_char;
1719 String::kMaxAsciiCharCode : 1719 if (ascii) {
1720 String::kMaxUC16CharCode; 1720 max_char = String::kMaxAsciiCharCode;
1721 } else {
1722 max_char = String::kMaxUC16CharCode;
1723 }
1721 1724
1722 Label success; 1725 Label success;
1723 1726
1724 Label* char_is_in_class = 1727 Label* char_is_in_class =
1725 cc->is_negated() ? on_failure : &success; 1728 cc->is_negated() ? on_failure : &success;
1726 1729
1727 int range_count = ranges->length(); 1730 int range_count = ranges->length();
1728 1731
1729 int last_valid_range = range_count - 1; 1732 int last_valid_range = range_count - 1;
1730 while (last_valid_range >= 0) { 1733 while (last_valid_range >= 0) {
(...skipping 1971 matching lines...) Expand 10 before | Expand all | Expand 10 after
3702 EmbeddedVector<byte, 1024> codes; 3705 EmbeddedVector<byte, 1024> codes;
3703 RegExpMacroAssemblerIrregexp macro_assembler(codes); 3706 RegExpMacroAssemblerIrregexp macro_assembler(codes);
3704 return compiler.Assemble(&macro_assembler, 3707 return compiler.Assemble(&macro_assembler,
3705 node, 3708 node,
3706 input->capture_count, 3709 input->capture_count,
3707 pattern); 3710 pattern);
3708 } 3711 }
3709 3712
3710 3713
3711 }} // namespace v8::internal 3714 }} // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698