Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(119)

Side by Side Diff: src/regexp-macro-assembler-irregexp.cc

Issue 875833002: Fix regexp=interpreted build wrt zone related changes. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/regexp-macro-assembler-irregexp.h ('k') | test/cctest/test-regexp.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/ast.h" 7 #include "src/ast.h"
8 #include "src/bytecodes-irregexp.h" 8 #include "src/bytecodes-irregexp.h"
9 #include "src/regexp-macro-assembler.h" 9 #include "src/regexp-macro-assembler.h"
10 #include "src/regexp-macro-assembler-irregexp.h" 10 #include "src/regexp-macro-assembler-irregexp.h"
11 #include "src/regexp-macro-assembler-irregexp-inl.h" 11 #include "src/regexp-macro-assembler-irregexp-inl.h"
12 12
13 13
14 namespace v8 { 14 namespace v8 {
15 namespace internal { 15 namespace internal {
16 16
17 #ifdef V8_INTERPRETED_REGEXP 17 #ifdef V8_INTERPRETED_REGEXP
18 18
19 RegExpMacroAssemblerIrregexp::RegExpMacroAssemblerIrregexp(Vector<byte> buffer, 19 RegExpMacroAssemblerIrregexp::RegExpMacroAssemblerIrregexp(Isolate* isolate,
20 Vector<byte> buffer,
20 Zone* zone) 21 Zone* zone)
21 : RegExpMacroAssembler(zone), 22 : RegExpMacroAssembler(isolate, zone),
22 buffer_(buffer), 23 buffer_(buffer),
23 pc_(0), 24 pc_(0),
24 own_buffer_(false), 25 own_buffer_(false),
25 advance_current_end_(kInvalidPC), 26 advance_current_end_(kInvalidPC),
26 isolate_(zone->isolate()) { } 27 isolate_(isolate) {}
27 28
28 29
29 RegExpMacroAssemblerIrregexp::~RegExpMacroAssemblerIrregexp() { 30 RegExpMacroAssemblerIrregexp::~RegExpMacroAssemblerIrregexp() {
30 if (backtrack_.is_linked()) backtrack_.Unuse(); 31 if (backtrack_.is_linked()) backtrack_.Unuse();
31 if (own_buffer_) buffer_.Dispose(); 32 if (own_buffer_) buffer_.Dispose();
32 } 33 }
33 34
34 35
35 RegExpMacroAssemblerIrregexp::IrregexpImplementation 36 RegExpMacroAssemblerIrregexp::IrregexpImplementation
36 RegExpMacroAssemblerIrregexp::Implementation() { 37 RegExpMacroAssemblerIrregexp::Implementation() {
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 own_buffer_ = true; 447 own_buffer_ = true;
447 MemCopy(buffer_.start(), old_buffer.start(), old_buffer.length()); 448 MemCopy(buffer_.start(), old_buffer.start(), old_buffer.length());
448 if (old_buffer_was_our_own) { 449 if (old_buffer_was_our_own) {
449 old_buffer.Dispose(); 450 old_buffer.Dispose();
450 } 451 }
451 } 452 }
452 453
453 #endif // V8_INTERPRETED_REGEXP 454 #endif // V8_INTERPRETED_REGEXP
454 455
455 } } // namespace v8::internal 456 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/regexp-macro-assembler-irregexp.h ('k') | test/cctest/test-regexp.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698