OLD | NEW |
1 // Copyright 2008-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2008-2009 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifdef V8_INTERPRETED_REGEXP | 5 #ifdef V8_INTERPRETED_REGEXP |
6 | 6 |
7 #include "src/regexp/regexp-macro-assembler-irregexp.h" | 7 #include "src/regexp/regexp-macro-assembler-irregexp.h" |
8 | 8 |
9 #include "src/ast/ast.h" | 9 #include "src/ast/ast.h" |
| 10 #include "src/objects-inl.h" |
10 #include "src/regexp/bytecodes-irregexp.h" | 11 #include "src/regexp/bytecodes-irregexp.h" |
| 12 #include "src/regexp/regexp-macro-assembler-irregexp-inl.h" |
11 #include "src/regexp/regexp-macro-assembler.h" | 13 #include "src/regexp/regexp-macro-assembler.h" |
12 #include "src/regexp/regexp-macro-assembler-irregexp-inl.h" | |
13 | 14 |
14 namespace v8 { | 15 namespace v8 { |
15 namespace internal { | 16 namespace internal { |
16 | 17 |
17 RegExpMacroAssemblerIrregexp::RegExpMacroAssemblerIrregexp(Isolate* isolate, | 18 RegExpMacroAssemblerIrregexp::RegExpMacroAssemblerIrregexp(Isolate* isolate, |
18 Vector<byte> buffer, | 19 Vector<byte> buffer, |
19 Zone* zone) | 20 Zone* zone) |
20 : RegExpMacroAssembler(isolate, zone), | 21 : RegExpMacroAssembler(isolate, zone), |
21 buffer_(buffer), | 22 buffer_(buffer), |
22 pc_(0), | 23 pc_(0), |
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
452 MemCopy(buffer_.start(), old_buffer.start(), old_buffer.length()); | 453 MemCopy(buffer_.start(), old_buffer.start(), old_buffer.length()); |
453 if (old_buffer_was_our_own) { | 454 if (old_buffer_was_our_own) { |
454 old_buffer.Dispose(); | 455 old_buffer.Dispose(); |
455 } | 456 } |
456 } | 457 } |
457 | 458 |
458 } // namespace internal | 459 } // namespace internal |
459 } // namespace v8 | 460 } // namespace v8 |
460 | 461 |
461 #endif // V8_INTERPRETED_REGEXP | 462 #endif // V8_INTERPRETED_REGEXP |
OLD | NEW |