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

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

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

Powered by Google App Engine
This is Rietveld 408576698