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 #if V8_TARGET_ARCH_X64 | 5 #if V8_TARGET_ARCH_X64 |
6 | 6 |
7 #include "src/regexp/x64/regexp-macro-assembler-x64.h" | 7 #include "src/regexp/x64/regexp-macro-assembler-x64.h" |
8 | 8 |
9 #include "src/factory.h" | 9 #include "src/factory.h" |
10 #include "src/log.h" | 10 #include "src/log.h" |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 * character of the string). The remaining registers starts out uninitialized. | 78 * character of the string). The remaining registers starts out uninitialized. |
79 * | 79 * |
80 * The first seven values must be provided by the calling code by | 80 * The first seven values must be provided by the calling code by |
81 * calling the code's entry address cast to a function pointer with the | 81 * calling the code's entry address cast to a function pointer with the |
82 * following signature: | 82 * following signature: |
83 * int (*match)(String* input_string, | 83 * int (*match)(String* input_string, |
84 * int start_index, | 84 * int start_index, |
85 * Address start, | 85 * Address start, |
86 * Address end, | 86 * Address end, |
87 * int* capture_output_array, | 87 * int* capture_output_array, |
88 * bool at_start, | 88 * int num_capture_registers, |
89 * byte* stack_area_base, | 89 * byte* stack_area_base, |
90 * bool direct_call) | 90 * bool direct_call = false, |
| 91 * Isolate* isolate); |
91 */ | 92 */ |
92 | 93 |
93 #define __ ACCESS_MASM((&masm_)) | 94 #define __ ACCESS_MASM((&masm_)) |
94 | 95 |
95 RegExpMacroAssemblerX64::RegExpMacroAssemblerX64(Isolate* isolate, Zone* zone, | 96 RegExpMacroAssemblerX64::RegExpMacroAssemblerX64(Isolate* isolate, Zone* zone, |
96 Mode mode, | 97 Mode mode, |
97 int registers_to_save) | 98 int registers_to_save) |
98 : NativeRegExpMacroAssembler(isolate, zone), | 99 : NativeRegExpMacroAssembler(isolate, zone), |
99 masm_(isolate, NULL, kRegExpCodeSize, CodeObjectRequired::kYes), | 100 masm_(isolate, NULL, kRegExpCodeSize, CodeObjectRequired::kYes), |
100 no_root_array_scope_(&masm_), | 101 no_root_array_scope_(&masm_), |
(...skipping 1294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1395 } | 1396 } |
1396 | 1397 |
1397 #undef __ | 1398 #undef __ |
1398 | 1399 |
1399 #endif // V8_INTERPRETED_REGEXP | 1400 #endif // V8_INTERPRETED_REGEXP |
1400 | 1401 |
1401 } // namespace internal | 1402 } // namespace internal |
1402 } // namespace v8 | 1403 } // namespace v8 |
1403 | 1404 |
1404 #endif // V8_TARGET_ARCH_X64 | 1405 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |