| 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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 } | 219 } |
| 220 | 220 |
| 221 | 221 |
| 222 void RegExpMacroAssemblerIrregexp::CheckCharacter(uc16 c, Label* on_equal) { | 222 void RegExpMacroAssemblerIrregexp::CheckCharacter(uc16 c, Label* on_equal) { |
| 223 Emit(BC_CHECK_CHAR); | 223 Emit(BC_CHECK_CHAR); |
| 224 Emit16(c); | 224 Emit16(c); |
| 225 EmitOrLink(on_equal); | 225 EmitOrLink(on_equal); |
| 226 } | 226 } |
| 227 | 227 |
| 228 | 228 |
| 229 void RegExpMacroAssemblerIrregexp::CheckNotAtStart(Label* on_not_at_start) { |
| 230 Emit(BC_CHECK_NOT_AT_START); |
| 231 EmitOrLink(on_not_at_start); |
| 232 } |
| 233 |
| 234 |
| 229 void RegExpMacroAssemblerIrregexp::CheckNotCharacter(uc16 c, | 235 void RegExpMacroAssemblerIrregexp::CheckNotCharacter(uc16 c, |
| 230 Label* on_not_equal) { | 236 Label* on_not_equal) { |
| 231 Emit(BC_CHECK_NOT_CHAR); | 237 Emit(BC_CHECK_NOT_CHAR); |
| 232 Emit16(c); | 238 Emit16(c); |
| 233 EmitOrLink(on_not_equal); | 239 EmitOrLink(on_not_equal); |
| 234 } | 240 } |
| 235 | 241 |
| 236 | 242 |
| 237 void RegExpMacroAssemblerIrregexp::CheckNotCharacterAfterOr( | 243 void RegExpMacroAssemblerIrregexp::CheckNotCharacterAfterOr( |
| 238 uc16 c, | 244 uc16 c, |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 374 buffer_ = Vector<byte>::New(old_buffer.length() * 2); | 380 buffer_ = Vector<byte>::New(old_buffer.length() * 2); |
| 375 own_buffer_ = true; | 381 own_buffer_ = true; |
| 376 memcpy(buffer_.start(), old_buffer.start(), old_buffer.length()); | 382 memcpy(buffer_.start(), old_buffer.start(), old_buffer.length()); |
| 377 if (old_buffer_was_our_own) { | 383 if (old_buffer_was_our_own) { |
| 378 old_buffer.Dispose(); | 384 old_buffer.Dispose(); |
| 379 } | 385 } |
| 380 } | 386 } |
| 381 | 387 |
| 382 | 388 |
| 383 } } // namespace v8::internal | 389 } } // namespace v8::internal |
| OLD | NEW |