OLD | NEW |
1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 check_preempt_label_.Unuse(); | 125 check_preempt_label_.Unuse(); |
126 stack_overflow_label_.Unuse(); | 126 stack_overflow_label_.Unuse(); |
127 } | 127 } |
128 | 128 |
129 | 129 |
130 int RegExpMacroAssemblerARM::stack_limit_slack() { | 130 int RegExpMacroAssemblerARM::stack_limit_slack() { |
131 return RegExpStack::kStackLimitSlack; | 131 return RegExpStack::kStackLimitSlack; |
132 } | 132 } |
133 | 133 |
134 | 134 |
135 bool RegExpMacroAssemblerARM::CanReadUnaligned() { | |
136 #if V8_TARGET_CAN_READ_UNALIGNED | |
137 return true; | |
138 #else | |
139 return false; | |
140 #endif | |
141 } | |
142 | |
143 | |
144 void RegExpMacroAssemblerARM::AdvanceCurrentPosition(int by) { | 135 void RegExpMacroAssemblerARM::AdvanceCurrentPosition(int by) { |
145 if (by != 0) { | 136 if (by != 0) { |
146 Label inside_string; | 137 Label inside_string; |
147 __ add(current_input_offset(), | 138 __ add(current_input_offset(), |
148 current_input_offset(), Operand(by * char_size())); | 139 current_input_offset(), Operand(by * char_size())); |
149 } | 140 } |
150 } | 141 } |
151 | 142 |
152 | 143 |
153 void RegExpMacroAssemblerARM::AdvanceRegister(int reg, int by) { | 144 void RegExpMacroAssemblerARM::AdvanceRegister(int reg, int by) { |
(...skipping 1072 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1226 __ mov(r0, sp); | 1217 __ mov(r0, sp); |
1227 __ Call(r5); | 1218 __ Call(r5); |
1228 __ ldr(pc, MemOperand(sp, stack_alignment, PostIndex)); | 1219 __ ldr(pc, MemOperand(sp, stack_alignment, PostIndex)); |
1229 } | 1220 } |
1230 | 1221 |
1231 #undef __ | 1222 #undef __ |
1232 | 1223 |
1233 #endif // V8_NATIVE_REGEXP | 1224 #endif // V8_NATIVE_REGEXP |
1234 | 1225 |
1235 }} // namespace v8::internal | 1226 }} // namespace v8::internal |
OLD | NEW |