OLD | NEW |
1 // Copyright 2008-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2008-2009 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 * bool at_start, | 92 * bool at_start, |
93 * byte* stack_area_base, | 93 * byte* stack_area_base, |
94 * bool direct_call) | 94 * bool direct_call) |
95 */ | 95 */ |
96 | 96 |
97 #define __ ACCESS_MASM(masm_) | 97 #define __ ACCESS_MASM(masm_) |
98 | 98 |
99 RegExpMacroAssemblerIA32::RegExpMacroAssemblerIA32( | 99 RegExpMacroAssemblerIA32::RegExpMacroAssemblerIA32( |
100 Mode mode, | 100 Mode mode, |
101 int registers_to_save) | 101 int registers_to_save) |
102 : masm_(new MacroAssembler(NULL, kRegExpCodeSize)), | 102 : masm_(new MacroAssembler(Isolate::Current(), NULL, kRegExpCodeSize)), |
103 mode_(mode), | 103 mode_(mode), |
104 num_registers_(registers_to_save), | 104 num_registers_(registers_to_save), |
105 num_saved_registers_(registers_to_save), | 105 num_saved_registers_(registers_to_save), |
106 entry_label_(), | 106 entry_label_(), |
107 start_label_(), | 107 start_label_(), |
108 success_label_(), | 108 success_label_(), |
109 backtrack_label_(), | 109 backtrack_label_(), |
110 exit_label_() { | 110 exit_label_() { |
111 ASSERT_EQ(0, registers_to_save % 2); | 111 ASSERT_EQ(0, registers_to_save % 2); |
112 __ jmp(&entry_label_); // We'll write the entry code later. | 112 __ jmp(&entry_label_); // We'll write the entry code later. |
(...skipping 1142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1255 } | 1255 } |
1256 | 1256 |
1257 | 1257 |
1258 #undef __ | 1258 #undef __ |
1259 | 1259 |
1260 #endif // V8_INTERPRETED_REGEXP | 1260 #endif // V8_INTERPRETED_REGEXP |
1261 | 1261 |
1262 }} // namespace v8::internal | 1262 }} // namespace v8::internal |
1263 | 1263 |
1264 #endif // V8_TARGET_ARCH_IA32 | 1264 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |