| OLD | NEW |
| 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 uc16 to, // Both inclusive. | 121 uc16 to, // Both inclusive. |
| 122 Label* on_in_range) = 0; | 122 Label* on_in_range) = 0; |
| 123 virtual void CheckCharacterNotInRange(uc16 from, | 123 virtual void CheckCharacterNotInRange(uc16 from, |
| 124 uc16 to, // Both inclusive. | 124 uc16 to, // Both inclusive. |
| 125 Label* on_not_in_range) = 0; | 125 Label* on_not_in_range) = 0; |
| 126 | 126 |
| 127 // The current character (modulus the kTableSize) is looked up in the byte | 127 // The current character (modulus the kTableSize) is looked up in the byte |
| 128 // array, and if the found byte is non-zero, we jump to the on_bit_set label. | 128 // array, and if the found byte is non-zero, we jump to the on_bit_set label. |
| 129 virtual void CheckBitInTable(Handle<ByteArray> table, Label* on_bit_set) = 0; | 129 virtual void CheckBitInTable(Handle<ByteArray> table, Label* on_bit_set) = 0; |
| 130 | 130 |
| 131 virtual void CheckNotRegistersEqual(int reg1, | |
| 132 int reg2, | |
| 133 Label* on_not_equal) = 0; | |
| 134 | |
| 135 // Checks whether the given offset from the current position is before | 131 // Checks whether the given offset from the current position is before |
| 136 // the end of the string. May overwrite the current character. | 132 // the end of the string. May overwrite the current character. |
| 137 virtual void CheckPosition(int cp_offset, Label* on_outside_input) { | 133 virtual void CheckPosition(int cp_offset, Label* on_outside_input) { |
| 138 LoadCurrentCharacter(cp_offset, on_outside_input, true); | 134 LoadCurrentCharacter(cp_offset, on_outside_input, true); |
| 139 } | 135 } |
| 140 // Check whether a standard/default character class matches the current | 136 // Check whether a standard/default character class matches the current |
| 141 // character. Returns false if the type of special character class does | 137 // character. Returns false if the type of special character class does |
| 142 // not have custom support. | 138 // not have custom support. |
| 143 // May clobber the current loaded character. | 139 // May clobber the current loaded character. |
| 144 virtual bool CheckSpecialCharacterClass(uc16 type, | 140 virtual bool CheckSpecialCharacterClass(uc16 type, |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 const byte* input_end, | 246 const byte* input_end, |
| 251 int* output, | 247 int* output, |
| 252 Isolate* isolate); | 248 Isolate* isolate); |
| 253 }; | 249 }; |
| 254 | 250 |
| 255 #endif // V8_INTERPRETED_REGEXP | 251 #endif // V8_INTERPRETED_REGEXP |
| 256 | 252 |
| 257 } } // namespace v8::internal | 253 } } // namespace v8::internal |
| 258 | 254 |
| 259 #endif // V8_REGEXP_MACRO_ASSEMBLER_H_ | 255 #endif // V8_REGEXP_MACRO_ASSEMBLER_H_ |
| OLD | NEW |