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

Side by Side Diff: src/assembler-re2k.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
« no previous file with comments | « no previous file | src/assembler-re2k.cc » ('j') | src/bytecodes-re2k.h » ('J')
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 2
3 // A light-weight assembler for the Regexp2000 byte code. 3 // A light-weight assembler for the Regexp2000 byte code.
4 4
5 #ifndef V8_ASSEMBLER_RE2K_H_ 5 #ifndef V8_ASSEMBLER_RE2K_H_
6 #define V8_ASSEMBLER_RE2K_H_ 6 #define V8_ASSEMBLER_RE2K_H_
7 7
8 namespace v8 { namespace internal { 8 namespace v8 { namespace internal {
9 9
10 10
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 void GoTo(Label* l); 53 void GoTo(Label* l);
54 54
55 // Loads current char into a machine register. Jumps to the label if we 55 // Loads current char into a machine register. Jumps to the label if we
56 // reached the end of the subject string. Fall through otherwise. 56 // reached the end of the subject string. Fall through otherwise.
57 void LoadCurrentChar(int cp_offset, Label* on_end); 57 void LoadCurrentChar(int cp_offset, Label* on_end);
58 58
59 // Checks current char register against a singleton. 59 // Checks current char register against a singleton.
60 void CheckChar(uc16 c, Label* on_mismatch); 60 void CheckChar(uc16 c, Label* on_mismatch);
61 void CheckNotChar(uc16 c, Label* on_match); 61 void CheckNotChar(uc16 c, Label* on_match);
62 62
63 // Checks current char register against a range. 63 // Used to check current char register against a range.
64 void CheckRange(uc16 start, uc16 end, Label* on_mismatch); 64 void CheckCharacterLT(uc16 limit, Label* on_less);
65 void CheckNotRange(uc16 start, uc16 end, Label* on_match); 65 void CheckCharacterGT(uc16 limit, Label* on_greater);
66 66
67 // Checks current position (plus optional offset) for a match against a 67 // Checks current position for a match against a
68 // previous capture. Advances current position by the length of the capture 68 // previous capture. Advances current position by the length of the capture
69 // iff it matches. The capture is stored in a given register and the 69 // iff it matches. The capture is stored in a given register and the
70 // the register after. If a register contains -1 then the other register 70 // the register after. If a register contains -1 then the other register
71 // mush always contain -1 and the on_mismatch label will never be called. 71 // mush always contain -1 and the on_mismatch label will never be called.
72 void CheckBackref(int capture_index, Label* on_mismatch); 72 void CheckBackref(int capture_index, Label* on_mismatch);
73 73
74 // Checks a register for strictly-less-than or greater-than-or-equal. 74 // Checks a register for strictly-less-than or greater-than-or-equal.
75 void CheckRegisterLT(int reg_index, uint16_t vs, Label* on_less_than); 75 void CheckRegisterLT(int reg_index, uint16_t vs, Label* on_less_than);
76 void CheckRegisterGE(int reg_index, uint16_t vs, Label* on_greater_equal); 76 void CheckRegisterGE(int reg_index, uint16_t vs, Label* on_greater_equal);
77 77
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 115
116 inline void CheckRegister(int byte_code, 116 inline void CheckRegister(int byte_code,
117 int reg_index, 117 int reg_index,
118 uint16_t vs, 118 uint16_t vs,
119 Label* on_true); 119 Label* on_true);
120 // Code generation. 120 // Code generation.
121 int pc_; // The program counter; moves forward. 121 int pc_; // The program counter; moves forward.
122 122
123 // True if the assembler owns the buffer, false if buffer is external. 123 // True if the assembler owns the buffer, false if buffer is external.
124 bool own_buffer_; 124 bool own_buffer_;
125
126 void Expand();
125 }; 127 };
126 128
127 129
128 } } // namespace v8::internal 130 } } // namespace v8::internal
129 131
130 #endif // V8_ASSEMBLER_RE2K_H_ 132 #endif // V8_ASSEMBLER_RE2K_H_
OLDNEW
« no previous file with comments | « no previous file | src/assembler-re2k.cc » ('j') | src/bytecodes-re2k.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698