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

Side by Side Diff: src/ia32/regexp-macro-assembler-ia32.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/ia32/regexp-macro-assembler-ia32.h ('k') | src/isolate.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 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 #if V8_TARGET_ARCH_IA32 7 #if V8_TARGET_ARCH_IA32
8 8
9 #include "src/cpu-profiler.h" 9 #include "src/cpu-profiler.h"
10 #include "src/log.h" 10 #include "src/log.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 * Address start, 71 * Address start,
72 * Address end, 72 * Address end,
73 * int* capture_output_array, 73 * int* capture_output_array,
74 * bool at_start, 74 * bool at_start,
75 * byte* stack_area_base, 75 * byte* stack_area_base,
76 * bool direct_call) 76 * bool direct_call)
77 */ 77 */
78 78
79 #define __ ACCESS_MASM(masm_) 79 #define __ ACCESS_MASM(masm_)
80 80
81 RegExpMacroAssemblerIA32::RegExpMacroAssemblerIA32( 81 RegExpMacroAssemblerIA32::RegExpMacroAssemblerIA32(Isolate* isolate, Zone* zone,
82 Mode mode, 82 Mode mode,
83 int registers_to_save, 83 int registers_to_save)
84 Zone* zone) 84 : NativeRegExpMacroAssembler(isolate, zone),
85 : NativeRegExpMacroAssembler(zone), 85 masm_(new MacroAssembler(isolate, NULL, kRegExpCodeSize)),
86 masm_(new MacroAssembler(zone->isolate(), NULL, kRegExpCodeSize)),
87 mode_(mode), 86 mode_(mode),
88 num_registers_(registers_to_save), 87 num_registers_(registers_to_save),
89 num_saved_registers_(registers_to_save), 88 num_saved_registers_(registers_to_save),
90 entry_label_(), 89 entry_label_(),
91 start_label_(), 90 start_label_(),
92 success_label_(), 91 success_label_(),
93 backtrack_label_(), 92 backtrack_label_(),
94 exit_label_() { 93 exit_label_() {
95 DCHECK_EQ(0, registers_to_save % 2); 94 DCHECK_EQ(0, registers_to_save % 2);
96 __ jmp(&entry_label_); // We'll write the entry code later. 95 __ jmp(&entry_label_); // We'll write the entry code later.
(...skipping 1204 matching lines...) Expand 10 before | Expand all | Expand 10 after
1301 } 1300 }
1302 1301
1303 1302
1304 #undef __ 1303 #undef __
1305 1304
1306 #endif // V8_INTERPRETED_REGEXP 1305 #endif // V8_INTERPRETED_REGEXP
1307 1306
1308 }} // namespace v8::internal 1307 }} // namespace v8::internal
1309 1308
1310 #endif // V8_TARGET_ARCH_IA32 1309 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/regexp-macro-assembler-ia32.h ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698