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 * int num_capture_registers, | 88 * bool at_start, |
89 * byte* stack_area_base, | 89 * byte* stack_area_base, |
90 * bool direct_call = false, | 90 * bool direct_call) |
91 * Isolate* isolate); | |
92 */ | 91 */ |
93 | 92 |
94 #define __ ACCESS_MASM((&masm_)) | 93 #define __ ACCESS_MASM((&masm_)) |
95 | 94 |
96 RegExpMacroAssemblerX64::RegExpMacroAssemblerX64(Isolate* isolate, Zone* zone, | 95 RegExpMacroAssemblerX64::RegExpMacroAssemblerX64(Isolate* isolate, Zone* zone, |
97 Mode mode, | 96 Mode mode, |
98 int registers_to_save) | 97 int registers_to_save) |
99 : NativeRegExpMacroAssembler(isolate, zone), | 98 : NativeRegExpMacroAssembler(isolate, zone), |
100 masm_(isolate, NULL, kRegExpCodeSize, CodeObjectRequired::kYes), | 99 masm_(isolate, NULL, kRegExpCodeSize, CodeObjectRequired::kYes), |
101 no_root_array_scope_(&masm_), | 100 no_root_array_scope_(&masm_), |
(...skipping 1294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1396 } | 1395 } |
1397 | 1396 |
1398 #undef __ | 1397 #undef __ |
1399 | 1398 |
1400 #endif // V8_INTERPRETED_REGEXP | 1399 #endif // V8_INTERPRETED_REGEXP |
1401 | 1400 |
1402 } // namespace internal | 1401 } // namespace internal |
1403 } // namespace v8 | 1402 } // namespace v8 |
1404 | 1403 |
1405 #endif // V8_TARGET_ARCH_X64 | 1404 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |