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

Side by Side Diff: src/ia32/regexp-macro-assembler-ia32.h

Issue 9854020: RegExp: Add support for table-based character class (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years, 8 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
OLDNEW
1 // Copyright 2008-2009 the V8 project authors. All rights reserved. 1 // Copyright 2008-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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 Label* on_no_match); 71 Label* on_no_match);
72 virtual void CheckNotRegistersEqual(int reg1, int reg2, Label* on_not_equal); 72 virtual void CheckNotRegistersEqual(int reg1, int reg2, Label* on_not_equal);
73 virtual void CheckNotCharacter(uint32_t c, Label* on_not_equal); 73 virtual void CheckNotCharacter(uint32_t c, Label* on_not_equal);
74 virtual void CheckNotCharacterAfterAnd(uint32_t c, 74 virtual void CheckNotCharacterAfterAnd(uint32_t c,
75 uint32_t mask, 75 uint32_t mask,
76 Label* on_not_equal); 76 Label* on_not_equal);
77 virtual void CheckNotCharacterAfterMinusAnd(uc16 c, 77 virtual void CheckNotCharacterAfterMinusAnd(uc16 c,
78 uc16 minus, 78 uc16 minus,
79 uc16 mask, 79 uc16 mask,
80 Label* on_not_equal); 80 Label* on_not_equal);
81 virtual void CheckCharacterInRange(uc16 from,
82 uc16 to,
83 Label* on_in_range);
84 virtual void CheckCharacterNotInRange(uc16 from,
85 uc16 to,
86 Label* on_not_in_range);
87 virtual void CheckBitInTable(Handle<ByteArray> table, Label* on_bit_set);
88
81 // Checks whether the given offset from the current position is before 89 // Checks whether the given offset from the current position is before
82 // the end of the string. 90 // the end of the string.
83 virtual void CheckPosition(int cp_offset, Label* on_outside_input); 91 virtual void CheckPosition(int cp_offset, Label* on_outside_input);
84 virtual bool CheckSpecialCharacterClass(uc16 type, Label* on_no_match); 92 virtual bool CheckSpecialCharacterClass(uc16 type, Label* on_no_match);
85 virtual void Fail(); 93 virtual void Fail();
86 virtual Handle<HeapObject> GetCode(Handle<String> source); 94 virtual Handle<HeapObject> GetCode(Handle<String> source);
87 virtual void GoTo(Label* label); 95 virtual void GoTo(Label* label);
88 virtual void IfRegisterGE(int reg, int comparand, Label* if_ge); 96 virtual void IfRegisterGE(int reg, int comparand, Label* if_ge);
89 virtual void IfRegisterLT(int reg, int comparand, Label* if_lt); 97 virtual void IfRegisterLT(int reg, int comparand, Label* if_lt);
90 virtual void IfRegisterEqPos(int reg, Label* if_eq); 98 virtual void IfRegisterEqPos(int reg, Label* if_eq);
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 Label backtrack_label_; 218 Label backtrack_label_;
211 Label exit_label_; 219 Label exit_label_;
212 Label check_preempt_label_; 220 Label check_preempt_label_;
213 Label stack_overflow_label_; 221 Label stack_overflow_label_;
214 }; 222 };
215 #endif // V8_INTERPRETED_REGEXP 223 #endif // V8_INTERPRETED_REGEXP
216 224
217 }} // namespace v8::internal 225 }} // namespace v8::internal
218 226
219 #endif // V8_IA32_REGEXP_MACRO_ASSEMBLER_IA32_H_ 227 #endif // V8_IA32_REGEXP_MACRO_ASSEMBLER_IA32_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698