| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 void CheckNotCharacter(uc16 c, Label* on_mismatch); | 64 void CheckNotCharacter(uc16 c, Label* on_mismatch); |
| 65 | 65 |
| 66 // Used to check current char register against a range. | 66 // Used to check current char register against a range. |
| 67 void CheckCharacterLT(uc16 limit, Label* on_less); | 67 void CheckCharacterLT(uc16 limit, Label* on_less); |
| 68 void CheckCharacterGT(uc16 limit, Label* on_greater); | 68 void CheckCharacterGT(uc16 limit, Label* on_greater); |
| 69 | 69 |
| 70 // Checks current position for a match against a | 70 // Checks current position for a match against a |
| 71 // previous capture. Advances current position by the length of the capture | 71 // 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 | 72 // 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 | 73 // the register after. If a register contains -1 then the other register |
| 74 // mush always contain -1 and the on_mismatch label will never be called. | 74 // must always contain -1 and the on_mismatch label will never be called. |
| 75 void CheckBackref(int capture_index, Label* on_mismatch); | 75 void CheckNotBackReference(int capture_index, Label* on_mismatch); |
| 76 | 76 |
| 77 // Checks a register for strictly-less-than or greater-than-or-equal. | 77 // Checks a register for strictly-less-than or greater-than-or-equal. |
| 78 void CheckRegisterLT(int reg_index, uint16_t vs, Label* on_less_than); | 78 void CheckRegisterLT(int reg_index, uint16_t vs, Label* on_less_than); |
| 79 void CheckRegisterGE(int reg_index, uint16_t vs, Label* on_greater_equal); | 79 void CheckRegisterGE(int reg_index, uint16_t vs, Label* on_greater_equal); |
| 80 | 80 |
| 81 // Subtracts a 16 bit value from the current character, uses the result to | 81 // Subtracts a 16 bit value from the current character, uses the result to |
| 82 // look up in a bit array, uses the result of that decide whether to fall | 82 // look up in a bit array, uses the result of that decide whether to fall |
| 83 // though (on 1) or jump to the on_zero label (on 0). | 83 // though (on 1) or jump to the on_zero label (on 0). |
| 84 void LookupMap1(uc16 start, Label* bit_map, Label* on_zero); | 84 void LookupMap1(uc16 start, Label* bit_map, Label* on_zero); |
| 85 | 85 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 // True if the assembler owns the buffer, false if buffer is external. | 126 // True if the assembler owns the buffer, false if buffer is external. |
| 127 bool own_buffer_; | 127 bool own_buffer_; |
| 128 | 128 |
| 129 void Expand(); | 129 void Expand(); |
| 130 }; | 130 }; |
| 131 | 131 |
| 132 | 132 |
| 133 } } // namespace v8::internal | 133 } } // namespace v8::internal |
| 134 | 134 |
| 135 #endif // V8_ASSEMBLER_RE2K_H_ | 135 #endif // V8_ASSEMBLER_RE2K_H_ |
| OLD | NEW |