OLD | NEW |
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_X64 | 7 #if V8_TARGET_ARCH_X64 |
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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 * Address start, | 86 * Address start, |
87 * Address end, | 87 * Address end, |
88 * int* capture_output_array, | 88 * int* capture_output_array, |
89 * bool at_start, | 89 * bool at_start, |
90 * byte* stack_area_base, | 90 * byte* stack_area_base, |
91 * bool direct_call) | 91 * bool direct_call) |
92 */ | 92 */ |
93 | 93 |
94 #define __ ACCESS_MASM((&masm_)) | 94 #define __ ACCESS_MASM((&masm_)) |
95 | 95 |
96 RegExpMacroAssemblerX64::RegExpMacroAssemblerX64( | 96 RegExpMacroAssemblerX64::RegExpMacroAssemblerX64(Isolate* isolate, Zone* zone, |
97 Mode mode, | 97 Mode mode, |
98 int registers_to_save, | 98 int registers_to_save) |
99 Zone* zone) | 99 : NativeRegExpMacroAssembler(isolate, zone), |
100 : NativeRegExpMacroAssembler(zone), | 100 masm_(isolate, NULL, kRegExpCodeSize), |
101 masm_(zone->isolate(), NULL, kRegExpCodeSize), | |
102 no_root_array_scope_(&masm_), | 101 no_root_array_scope_(&masm_), |
103 code_relative_fixup_positions_(4, zone), | 102 code_relative_fixup_positions_(4, zone), |
104 mode_(mode), | 103 mode_(mode), |
105 num_registers_(registers_to_save), | 104 num_registers_(registers_to_save), |
106 num_saved_registers_(registers_to_save), | 105 num_saved_registers_(registers_to_save), |
107 entry_label_(), | 106 entry_label_(), |
108 start_label_(), | 107 start_label_(), |
109 success_label_(), | 108 success_label_(), |
110 backtrack_label_(), | 109 backtrack_label_(), |
111 exit_label_() { | 110 exit_label_() { |
(...skipping 1323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1435 } | 1434 } |
1436 } | 1435 } |
1437 | 1436 |
1438 #undef __ | 1437 #undef __ |
1439 | 1438 |
1440 #endif // V8_INTERPRETED_REGEXP | 1439 #endif // V8_INTERPRETED_REGEXP |
1441 | 1440 |
1442 }} // namespace v8::internal | 1441 }} // namespace v8::internal |
1443 | 1442 |
1444 #endif // V8_TARGET_ARCH_X64 | 1443 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |