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

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

Issue 11350: Add back references. Since "back references" is two words... (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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 ReadCurrentPositionFromRegister(int reg) = 0; 59 virtual void ReadCurrentPositionFromRegister(int reg) = 0;
60 virtual void WriteStackPointerToRegister(int reg) = 0; 60 virtual void WriteStackPointerToRegister(int reg) = 0;
61 virtual void ReadStackPointerFromRegister(int reg) = 0; 61 virtual void ReadStackPointerFromRegister(int reg) = 0;
62 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;
63 virtual void CheckCharacterLT(uc16 limit, Label* on_less) = 0; 63 virtual void CheckCharacterLT(uc16 limit, Label* on_less) = 0;
64 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; 65 virtual void CheckCharacter(uc16 c, Label* on_equal) = 0;
66 virtual void CheckNotCharacter(uc16 c, Label* on_not_equal) = 0; 66 virtual void CheckNotCharacter(uc16 c, Label* on_not_equal) = 0;
67 virtual void CheckNotBackReference(int start_reg, Label* on_no_match) = 0;
67 // Check the current character for a match with a literal string. If we 68 // Check the current character for a match with a literal string. If we
68 // fail to match then goto the on_failure label. End of input always 69 // fail to match then goto the on_failure label. End of input always
69 // matches. If the label is NULL then we should pop a backtrack address off 70 // matches. If the label is NULL then we should pop a backtrack address off
70 // the stack abnd go to that. 71 // the stack abnd go to that.
71 virtual void CheckCharacters( 72 virtual void CheckCharacters(
72 Vector<const uc16> str, 73 Vector<const uc16> str,
73 int cp_offset, 74 int cp_offset,
74 Label* on_failure) = 0; 75 Label* on_failure) = 0;
75 // Check the current input position against a register. If the register is 76 // Check the current input position against a register. If the register is
76 // equal to the current position then go to the label. If the label is NULL 77 // 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
155 ArraySlice<T> GetBuffer(int size, int align); 156 ArraySlice<T> GetBuffer(int size, int align);
156 private: 157 private:
157 const int byte_array_size_; 158 const int byte_array_size_;
158 Handle<ByteArray> current_byte_array_; 159 Handle<ByteArray> current_byte_array_;
159 int current_byte_array_free_offset_; 160 int current_byte_array_free_offset_;
160 }; 161 };
161 162
162 } } // namespace v8::internal 163 } } // namespace v8::internal
163 164
164 #endif // V8_REGEXP_MACRO_ASSEMBLER_H_ 165 #endif // V8_REGEXP_MACRO_ASSEMBLER_H_
OLDNEW
« src/parser.cc ('K') | « src/parser.cc ('k') | src/regexp-macro-assembler-re2k.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698