| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 Label* on_not_equal) = 0; | 92 Label* on_not_equal) = 0; |
| 93 // Subtract a constant from the current character, then or with the given | 93 // Subtract a constant from the current character, then or with the given |
| 94 // constant and then check for a match with c. | 94 // constant and then check for a match with c. |
| 95 virtual void CheckNotCharacterAfterMinusAnd(uc16 c, | 95 virtual void CheckNotCharacterAfterMinusAnd(uc16 c, |
| 96 uc16 minus, | 96 uc16 minus, |
| 97 uc16 and_with, | 97 uc16 and_with, |
| 98 Label* on_not_equal) = 0; | 98 Label* on_not_equal) = 0; |
| 99 virtual void CheckNotRegistersEqual(int reg1, | 99 virtual void CheckNotRegistersEqual(int reg1, |
| 100 int reg2, | 100 int reg2, |
| 101 Label* on_not_equal) = 0; | 101 Label* on_not_equal) = 0; |
| 102 // Check whether a standard/default character class matches the current |
| 103 // character. Returns false if the type of special character class does |
| 104 // not have custom support. |
| 105 // May clobber the current loaded character. |
| 106 virtual bool CheckSpecialCharacterClass(uc16 type, |
| 107 int cp_offset, |
| 108 bool check_offset, |
| 109 Label* on_no_match) { |
| 110 return false; |
| 111 } |
| 102 // Dispatch after looking the current character up in a byte map. The | 112 // Dispatch after looking the current character up in a byte map. The |
| 103 // destinations vector has up to 256 labels. | 113 // destinations vector has up to 256 labels. |
| 104 virtual void DispatchByteMap( | 114 virtual void DispatchByteMap( |
| 105 uc16 start, | 115 uc16 start, |
| 106 Label* byte_map, | 116 Label* byte_map, |
| 107 const Vector<Label*>& destinations) = 0; | 117 const Vector<Label*>& destinations) = 0; |
| 108 virtual void DispatchHalfNibbleMap( | 118 virtual void DispatchHalfNibbleMap( |
| 109 uc16 start, | 119 uc16 start, |
| 110 Label* half_nibble_map, | 120 Label* half_nibble_map, |
| 111 const Vector<Label*>& destinations) = 0; | 121 const Vector<Label*>& destinations) = 0; |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 ArraySlice GetBuffer(Vector<T> values); | 192 ArraySlice GetBuffer(Vector<T> values); |
| 183 private: | 193 private: |
| 184 size_t byte_array_size_; | 194 size_t byte_array_size_; |
| 185 Handle<ByteArray> current_byte_array_; | 195 Handle<ByteArray> current_byte_array_; |
| 186 int current_byte_array_free_offset_; | 196 int current_byte_array_free_offset_; |
| 187 }; | 197 }; |
| 188 | 198 |
| 189 } } // namespace v8::internal | 199 } } // namespace v8::internal |
| 190 | 200 |
| 191 #endif // V8_REGEXP_MACRO_ASSEMBLER_H_ | 201 #endif // V8_REGEXP_MACRO_ASSEMBLER_H_ |
| OLD | NEW |