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 * int num_capture_registers, | 72 * bool at_start, |
73 * byte* stack_area_base, | 73 * byte* stack_area_base, |
74 * bool direct_call = false, | 74 * bool direct_call) |
75 * Isolate* isolate); | |
76 */ | 75 */ |
77 | 76 |
78 #define __ ACCESS_MASM(masm_) | 77 #define __ ACCESS_MASM(masm_) |
79 | 78 |
80 RegExpMacroAssemblerIA32::RegExpMacroAssemblerIA32(Isolate* isolate, Zone* zone, | 79 RegExpMacroAssemblerIA32::RegExpMacroAssemblerIA32(Isolate* isolate, Zone* zone, |
81 Mode mode, | 80 Mode mode, |
82 int registers_to_save) | 81 int registers_to_save) |
83 : NativeRegExpMacroAssembler(isolate, zone), | 82 : NativeRegExpMacroAssembler(isolate, zone), |
84 masm_(new MacroAssembler(isolate, NULL, kRegExpCodeSize, | 83 masm_(new MacroAssembler(isolate, NULL, kRegExpCodeSize, |
85 CodeObjectRequired::kYes)), | 84 CodeObjectRequired::kYes)), |
(...skipping 1179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1265 | 1264 |
1266 | 1265 |
1267 #undef __ | 1266 #undef __ |
1268 | 1267 |
1269 #endif // V8_INTERPRETED_REGEXP | 1268 #endif // V8_INTERPRETED_REGEXP |
1270 | 1269 |
1271 } // namespace internal | 1270 } // namespace internal |
1272 } // namespace v8 | 1271 } // namespace v8 |
1273 | 1272 |
1274 #endif // V8_TARGET_ARCH_IA32 | 1273 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |