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

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

Issue 868883002: Remove the dependency of Zone on Isolate (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix compilation issues Created 5 years, 11 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.h ('k') | src/regexp-macro-assembler-tracer.h » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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/assembler.h" 7 #include "src/assembler.h"
8 #include "src/ast.h" 8 #include "src/ast.h"
9 #include "src/regexp-macro-assembler.h" 9 #include "src/regexp-macro-assembler.h"
10 #include "src/regexp-stack.h" 10 #include "src/regexp-stack.h"
11 #include "src/simulator.h" 11 #include "src/simulator.h"
12 12
13 namespace v8 { 13 namespace v8 {
14 namespace internal { 14 namespace internal {
15 15
16 RegExpMacroAssembler::RegExpMacroAssembler(Zone* zone) 16 RegExpMacroAssembler::RegExpMacroAssembler(Isolate* isolate, Zone* zone)
17 : slow_safe_compiler_(false), 17 : slow_safe_compiler_(false),
18 global_mode_(NOT_GLOBAL), 18 global_mode_(NOT_GLOBAL),
19 zone_(zone) { 19 isolate_(isolate),
20 } 20 zone_(zone) {}
21 21
22 22
23 RegExpMacroAssembler::~RegExpMacroAssembler() { 23 RegExpMacroAssembler::~RegExpMacroAssembler() {
24 } 24 }
25 25
26 26
27 #ifndef V8_INTERPRETED_REGEXP // Avoid unused code, e.g., on ARM. 27 #ifndef V8_INTERPRETED_REGEXP // Avoid unused code, e.g., on ARM.
28 28
29 NativeRegExpMacroAssembler::NativeRegExpMacroAssembler(Zone* zone) 29 NativeRegExpMacroAssembler::NativeRegExpMacroAssembler(Isolate* isolate,
30 : RegExpMacroAssembler(zone) { 30 Zone* zone)
31 } 31 : RegExpMacroAssembler(isolate, zone) {}
32 32
33 33
34 NativeRegExpMacroAssembler::~NativeRegExpMacroAssembler() { 34 NativeRegExpMacroAssembler::~NativeRegExpMacroAssembler() {
35 } 35 }
36 36
37 37
38 bool NativeRegExpMacroAssembler::CanReadUnaligned() { 38 bool NativeRegExpMacroAssembler::CanReadUnaligned() {
39 return FLAG_enable_unaligned_accesses && !slow_safe(); 39 return FLAG_enable_unaligned_accesses && !slow_safe();
40 } 40 }
41 41
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 return NULL; 249 return NULL;
250 } 250 }
251 *stack_base = new_stack_base; 251 *stack_base = new_stack_base;
252 intptr_t stack_content_size = old_stack_base - stack_pointer; 252 intptr_t stack_content_size = old_stack_base - stack_pointer;
253 return new_stack_base - stack_content_size; 253 return new_stack_base - stack_content_size;
254 } 254 }
255 255
256 #endif // V8_INTERPRETED_REGEXP 256 #endif // V8_INTERPRETED_REGEXP
257 257
258 } } // namespace v8::internal 258 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/regexp-macro-assembler.h ('k') | src/regexp-macro-assembler-tracer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698