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

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

Issue 11319: * Add support for positive lookahead assertions and negative... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/regexp2000/
Patch Set: Created 12 years, 1 month 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 the V8 project authors. All rights reserved. 1 // Copyright 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 virtual void Backtrack() = 0; 49 virtual void Backtrack() = 0;
50 virtual void GoTo(Label* label) = 0; 50 virtual void GoTo(Label* label) = 0;
51 virtual void PushBacktrack(Label* label) = 0; 51 virtual void PushBacktrack(Label* label) = 0;
52 virtual void Succeed() = 0; 52 virtual void Succeed() = 0;
53 virtual void Fail() = 0; 53 virtual void Fail() = 0;
54 virtual void PopRegister(int register_index) = 0; 54 virtual void PopRegister(int register_index) = 0;
55 virtual void PushRegister(int register_index) = 0; 55 virtual void PushRegister(int register_index) = 0;
56 virtual void AdvanceRegister(int reg, int by) = 0; // r[reg] += by. 56 virtual void AdvanceRegister(int reg, int by) = 0; // r[reg] += by.
57 virtual void SetRegister(int register_index, int to) = 0; 57 virtual void SetRegister(int register_index, int to) = 0;
58 virtual void WriteCurrentPositionToRegister(int reg) = 0; 58 virtual void WriteCurrentPositionToRegister(int reg) = 0;
59 virtual void SetCurrentPositionFromRegister(int reg) = 0;
60 virtual void WriteStackPointerToRegister(int reg) = 0;
61 virtual void SetStackPointerFromRegister(int reg) = 0;
59 virtual void LoadCurrentCharacter(int cp_offset, Label* on_end_of_input) = 0; 62 virtual void LoadCurrentCharacter(int cp_offset, Label* on_end_of_input) = 0;
60 virtual void CheckCharacterLT(uc16 limit, Label* on_less) = 0; 63 virtual void CheckCharacterLT(uc16 limit, Label* on_less) = 0;
61 virtual void CheckCharacterGT(uc16 limit, Label* on_greater) = 0; 64 virtual void CheckCharacterGT(uc16 limit, Label* on_greater) = 0;
65 virtual void CheckCharacter(uc16 c, Label* on_equal) = 0;
66 virtual void CheckNotCharacter(uc16 c, Label* on_not_equal) = 0;
62 // Check the current character for a match with a literal string. If we 67 // Check the current character for a match with a literal string. If we
63 // fail to match then goto the on_failure label. End of input always 68 // fail to match then goto the on_failure label. End of input always
64 // matches. If the label is NULL then we should pop a backtrack address off 69 // matches. If the label is NULL then we should pop a backtrack address off
65 // the stack abnd go to that. 70 // the stack abnd go to that.
66 virtual void CheckCharacters( 71 virtual void CheckCharacters(
67 Vector<const uc16> str, 72 Vector<const uc16> str,
68 int cp_offset, 73 int cp_offset,
69 Label* on_failure) = 0; 74 Label* on_failure) = 0;
70 // Check the current input position against a register. If the register is 75 // Check the current input position against a register. If the register is
71 // equal to the current position then go to the label. If the label is NULL 76 // equal to the current position then go to the label. If the label is NULL
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 ArraySlice<T> GetBuffer(int size, int align); 155 ArraySlice<T> GetBuffer(int size, int align);
151 private: 156 private:
152 const int byte_array_size_; 157 const int byte_array_size_;
153 Handle<ByteArray> current_byte_array_; 158 Handle<ByteArray> current_byte_array_;
154 int current_byte_array_free_offset_; 159 int current_byte_array_free_offset_;
155 }; 160 };
156 161
157 } } // namespace v8::internal 162 } } // namespace v8::internal
158 163
159 #endif // V8_REGEXP_MACRO_ASSEMBLER_H_ 164 #endif // V8_REGEXP_MACRO_ASSEMBLER_H_
OLDNEW
« src/jsregexp.cc ('K') | « src/jsregexp.cc ('k') | src/regexp-macro-assembler-re2k.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698