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 #include "v8.h" | 5 #include "src/v8.h" |
6 #include "ast.h" | 6 #include "src/ast.h" |
7 #include "bytecodes-irregexp.h" | 7 #include "src/bytecodes-irregexp.h" |
8 #include "regexp-macro-assembler.h" | 8 #include "src/regexp-macro-assembler.h" |
9 #include "regexp-macro-assembler-irregexp.h" | 9 #include "src/regexp-macro-assembler-irregexp.h" |
10 #include "regexp-macro-assembler-irregexp-inl.h" | 10 #include "src/regexp-macro-assembler-irregexp-inl.h" |
11 | 11 |
12 | 12 |
13 namespace v8 { | 13 namespace v8 { |
14 namespace internal { | 14 namespace internal { |
15 | 15 |
16 #ifdef V8_INTERPRETED_REGEXP | 16 #ifdef V8_INTERPRETED_REGEXP |
17 | 17 |
18 RegExpMacroAssemblerIrregexp::RegExpMacroAssemblerIrregexp(Vector<byte> buffer, | 18 RegExpMacroAssemblerIrregexp::RegExpMacroAssemblerIrregexp(Vector<byte> buffer, |
19 Zone* zone) | 19 Zone* zone) |
20 : RegExpMacroAssembler(zone), | 20 : RegExpMacroAssembler(zone), |
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
445 own_buffer_ = true; | 445 own_buffer_ = true; |
446 MemCopy(buffer_.start(), old_buffer.start(), old_buffer.length()); | 446 MemCopy(buffer_.start(), old_buffer.start(), old_buffer.length()); |
447 if (old_buffer_was_our_own) { | 447 if (old_buffer_was_our_own) { |
448 old_buffer.Dispose(); | 448 old_buffer.Dispose(); |
449 } | 449 } |
450 } | 450 } |
451 | 451 |
452 #endif // V8_INTERPRETED_REGEXP | 452 #endif // V8_INTERPRETED_REGEXP |
453 | 453 |
454 } } // namespace v8::internal | 454 } } // namespace v8::internal |
OLD | NEW |