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_IA32 | 5 #if V8_TARGET_ARCH_IA32 |
6 | 6 |
7 #include "src/regexp/ia32/regexp-macro-assembler-ia32.h" | 7 #include "src/regexp/ia32/regexp-macro-assembler-ia32.h" |
8 | 8 |
9 #include "src/log.h" | 9 #include "src/log.h" |
10 #include "src/macro-assembler.h" | 10 #include "src/macro-assembler.h" |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 * "character -1" in the string (i.e., char_size() bytes before the first | 62 * "character -1" in the string (i.e., char_size() bytes before the first |
63 * character of the string). The remaining registers starts out as garbage. | 63 * character of the string). The remaining registers starts out as garbage. |
64 * | 64 * |
65 * The data up to the return address must be placed there by the calling | 65 * The data up to the return address must be placed there by the calling |
66 * code, by calling the code entry as cast to a function with the signature: | 66 * code, by calling the code entry as cast to a function with the signature: |
67 * int (*match)(String* input_string, | 67 * int (*match)(String* input_string, |
68 * int start_index, | 68 * int start_index, |
69 * Address start, | 69 * Address start, |
70 * Address end, | 70 * Address end, |
71 * int* capture_output_array, | 71 * int* capture_output_array, |
72 * bool at_start, | 72 * int num_capture_registers, |
73 * byte* stack_area_base, | 73 * byte* stack_area_base, |
74 * bool direct_call) | 74 * bool direct_call = false, |
| 75 * Isolate* isolate); |
75 */ | 76 */ |
76 | 77 |
77 #define __ ACCESS_MASM(masm_) | 78 #define __ ACCESS_MASM(masm_) |
78 | 79 |
79 RegExpMacroAssemblerIA32::RegExpMacroAssemblerIA32(Isolate* isolate, Zone* zone, | 80 RegExpMacroAssemblerIA32::RegExpMacroAssemblerIA32(Isolate* isolate, Zone* zone, |
80 Mode mode, | 81 Mode mode, |
81 int registers_to_save) | 82 int registers_to_save) |
82 : NativeRegExpMacroAssembler(isolate, zone), | 83 : NativeRegExpMacroAssembler(isolate, zone), |
83 masm_(new MacroAssembler(isolate, NULL, kRegExpCodeSize, | 84 masm_(new MacroAssembler(isolate, NULL, kRegExpCodeSize, |
84 CodeObjectRequired::kYes)), | 85 CodeObjectRequired::kYes)), |
(...skipping 1179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1264 | 1265 |
1265 | 1266 |
1266 #undef __ | 1267 #undef __ |
1267 | 1268 |
1268 #endif // V8_INTERPRETED_REGEXP | 1269 #endif // V8_INTERPRETED_REGEXP |
1269 | 1270 |
1270 } // namespace internal | 1271 } // namespace internal |
1271 } // namespace v8 | 1272 } // namespace v8 |
1272 | 1273 |
1273 #endif // V8_TARGET_ARCH_IA32 | 1274 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |