| OLD | NEW |
| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 | 55 |
| 56 void GoTo(Label* l); | 56 void GoTo(Label* l); |
| 57 | 57 |
| 58 // Loads current char into a machine register. Jumps to the label if we | 58 // Loads current char into a machine register. Jumps to the label if we |
| 59 // reached the end of the subject string. Fall through otherwise. | 59 // reached the end of the subject string. Fall through otherwise. |
| 60 void LoadCurrentChar(int cp_offset, Label* on_end); | 60 void LoadCurrentChar(int cp_offset, Label* on_end); |
| 61 | 61 |
| 62 // Checks current char register against a singleton. | 62 // Checks current char register against a singleton. |
| 63 void CheckCharacter(uc16 c, Label* on_match); | 63 void CheckCharacter(uc16 c, Label* on_match); |
| 64 void CheckNotCharacter(uc16 c, Label* on_mismatch); | 64 void CheckNotCharacter(uc16 c, Label* on_mismatch); |
| 65 void OrThenCheckNotCharacter(uc16 c, uc16 mask, Label* on_mismatch); |
| 66 void MinusOrThenCheckNotCharacter(uc16 c, uc16 mask, Label* on_mismatch); |
| 65 | 67 |
| 66 // Used to check current char register against a range. | 68 // Used to check current char register against a range. |
| 67 void CheckCharacterLT(uc16 limit, Label* on_less); | 69 void CheckCharacterLT(uc16 limit, Label* on_less); |
| 68 void CheckCharacterGT(uc16 limit, Label* on_greater); | 70 void CheckCharacterGT(uc16 limit, Label* on_greater); |
| 69 | 71 |
| 70 // Checks current position for a match against a | 72 // Checks current position for a match against a |
| 71 // previous capture. Advances current position by the length of the capture | 73 // previous capture. Advances current position by the length of the capture |
| 72 // iff it matches. The capture is stored in a given register and the | 74 // iff it matches. The capture is stored in a given register and the |
| 73 // the register after. If a register contains -1 then the other register | 75 // the register after. If a register contains -1 then the other register |
| 74 // must always contain -1 and the on_mismatch label will never be called. | 76 // must always contain -1 and the on_mismatch label will never be called. |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 // True if the assembler owns the buffer, false if buffer is external. | 128 // True if the assembler owns the buffer, false if buffer is external. |
| 127 bool own_buffer_; | 129 bool own_buffer_; |
| 128 | 130 |
| 129 void Expand(); | 131 void Expand(); |
| 130 }; | 132 }; |
| 131 | 133 |
| 132 | 134 |
| 133 } } // namespace v8::internal | 135 } } // namespace v8::internal |
| 134 | 136 |
| 135 #endif // V8_ASSEMBLER_RE2K_H_ | 137 #endif // V8_ASSEMBLER_RE2K_H_ |
| OLD | NEW |