| 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 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 } | 249 } |
| 250 | 250 |
| 251 | 251 |
| 252 void RegExpMacroAssemblerIrregexp::CheckCharacter(uint32_t c, Label* on_equal) { | 252 void RegExpMacroAssemblerIrregexp::CheckCharacter(uint32_t c, Label* on_equal) { |
| 253 Emit(BC_CHECK_CHAR); | 253 Emit(BC_CHECK_CHAR); |
| 254 Emit32(c); | 254 Emit32(c); |
| 255 EmitOrLink(on_equal); | 255 EmitOrLink(on_equal); |
| 256 } | 256 } |
| 257 | 257 |
| 258 | 258 |
| 259 void RegExpMacroAssemblerIrregexp::CheckAtStart(Label* on_at_start) { |
| 260 Emit(BC_CHECK_AT_START); |
| 261 EmitOrLink(on_at_start); |
| 262 } |
| 263 |
| 264 |
| 259 void RegExpMacroAssemblerIrregexp::CheckNotAtStart(Label* on_not_at_start) { | 265 void RegExpMacroAssemblerIrregexp::CheckNotAtStart(Label* on_not_at_start) { |
| 260 Emit(BC_CHECK_NOT_AT_START); | 266 Emit(BC_CHECK_NOT_AT_START); |
| 261 EmitOrLink(on_not_at_start); | 267 EmitOrLink(on_not_at_start); |
| 262 } | 268 } |
| 263 | 269 |
| 264 | 270 |
| 265 void RegExpMacroAssemblerIrregexp::CheckNotCharacter(uint32_t c, | 271 void RegExpMacroAssemblerIrregexp::CheckNotCharacter(uint32_t c, |
| 266 Label* on_not_equal) { | 272 Label* on_not_equal) { |
| 267 Emit(BC_CHECK_NOT_CHAR); | 273 Emit(BC_CHECK_NOT_CHAR); |
| 268 Emit32(c); | 274 Emit32(c); |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 441 buffer_ = Vector<byte>::New(old_buffer.length() * 2); | 447 buffer_ = Vector<byte>::New(old_buffer.length() * 2); |
| 442 own_buffer_ = true; | 448 own_buffer_ = true; |
| 443 memcpy(buffer_.start(), old_buffer.start(), old_buffer.length()); | 449 memcpy(buffer_.start(), old_buffer.start(), old_buffer.length()); |
| 444 if (old_buffer_was_our_own) { | 450 if (old_buffer_was_our_own) { |
| 445 old_buffer.Dispose(); | 451 old_buffer.Dispose(); |
| 446 } | 452 } |
| 447 } | 453 } |
| 448 | 454 |
| 449 | 455 |
| 450 } } // namespace v8::internal | 456 } } // namespace v8::internal |
| OLD | NEW |