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/regexp-macro-assembler.h

Issue 11228: * No failures on our own tests.... (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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 virtual void PopCurrentPosition() = 0; 47 virtual void PopCurrentPosition() = 0;
48 virtual void PushCurrentPosition() = 0; 48 virtual void PushCurrentPosition() = 0;
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 WriteCurrentPositionToRegister(int reg) = 0; 58 virtual void WriteCurrentPositionToRegister(int reg) = 0;
58 virtual void SetRegister(int register_index, int to) = 0; 59 virtual void LoadCurrentCharacter(int cp_offset, Label* on_end_of_input) = 0;
59 // Looks at the next character from the subject and if it doesn't match 60 virtual void CheckCharacterLT(uc16 limit, Label* on_less) = 0;
60 // then goto the on_failure label. End of input never matches. If the 61 virtual void CheckCharacterGT(uc16 limit, Label* on_greater) = 0;
61 // label is NULL then we should pop a backtrack address off the stack and
62 // go to that.
63 virtual void CheckCharacterClass(
64 RegExpCharacterClass* cclass,
65 int cp_offset,
66 Label* on_failure) = 0;
67 // Check the current character for a match with a literal string. If we 62 // 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 63 // 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 64 // matches. If the label is NULL then we should pop a backtrack address off
70 // the stack abnd go to that. 65 // the stack abnd go to that.
71 virtual void CheckCharacters( 66 virtual void CheckCharacters(
72 Vector<const uc16> str, 67 Vector<const uc16> str,
73 int cp_offset, 68 int cp_offset,
74 Label* on_failure) = 0; 69 Label* on_failure) = 0;
75 // Check the current input position against a register. If the register is 70 // 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 71 // 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); 150 ArraySlice<T> GetBuffer(int size, int align);
156 private: 151 private:
157 const int byte_array_size_; 152 const int byte_array_size_;
158 Handle<ByteArray> current_byte_array_; 153 Handle<ByteArray> current_byte_array_;
159 int current_byte_array_free_offset_; 154 int current_byte_array_free_offset_;
160 }; 155 };
161 156
162 } } // namespace v8::internal 157 } } // namespace v8::internal
163 158
164 #endif // V8_REGEXP_MACRO_ASSEMBLER_H_ 159 #endif // V8_REGEXP_MACRO_ASSEMBLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698