| 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 1134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1145 SafeCall(&stack_overflow_label_, ls); | 1145 SafeCall(&stack_overflow_label_, ls); |
| 1146 } | 1146 } |
| 1147 | 1147 |
| 1148 | 1148 |
| 1149 void RegExpMacroAssemblerARM::EmitBacktrackConstantPool() { | 1149 void RegExpMacroAssemblerARM::EmitBacktrackConstantPool() { |
| 1150 __ CheckConstPool(false, false); | 1150 __ CheckConstPool(false, false); |
| 1151 __ BlockConstPoolBefore( | 1151 __ BlockConstPoolBefore( |
| 1152 masm_->pc_offset() + kBacktrackConstantPoolSize * Assembler::kInstrSize); | 1152 masm_->pc_offset() + kBacktrackConstantPoolSize * Assembler::kInstrSize); |
| 1153 backtrack_constant_pool_offset_ = masm_->pc_offset(); | 1153 backtrack_constant_pool_offset_ = masm_->pc_offset(); |
| 1154 for (int i = 0; i < kBacktrackConstantPoolSize; i++) { | 1154 for (int i = 0; i < kBacktrackConstantPoolSize; i++) { |
| 1155 __ emit(0); | 1155 __ emit_int32(0); |
| 1156 } | 1156 } |
| 1157 | 1157 |
| 1158 backtrack_constant_pool_capacity_ = kBacktrackConstantPoolSize; | 1158 backtrack_constant_pool_capacity_ = kBacktrackConstantPoolSize; |
| 1159 } | 1159 } |
| 1160 | 1160 |
| 1161 | 1161 |
| 1162 int RegExpMacroAssemblerARM::GetBacktrackConstantPoolEntry() { | 1162 int RegExpMacroAssemblerARM::GetBacktrackConstantPoolEntry() { |
| 1163 while (backtrack_constant_pool_capacity_ > 0) { | 1163 while (backtrack_constant_pool_capacity_ > 0) { |
| 1164 int offset = backtrack_constant_pool_offset_; | 1164 int offset = backtrack_constant_pool_offset_; |
| 1165 backtrack_constant_pool_offset_ += kPointerSize; | 1165 backtrack_constant_pool_offset_ += kPointerSize; |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1257 __ mov(r0, sp); | 1257 __ mov(r0, sp); |
| 1258 __ Call(r5); | 1258 __ Call(r5); |
| 1259 __ ldr(pc, MemOperand(sp, stack_alignment, PostIndex)); | 1259 __ ldr(pc, MemOperand(sp, stack_alignment, PostIndex)); |
| 1260 } | 1260 } |
| 1261 | 1261 |
| 1262 #undef __ | 1262 #undef __ |
| 1263 | 1263 |
| 1264 #endif // V8_NATIVE_REGEXP | 1264 #endif // V8_NATIVE_REGEXP |
| 1265 | 1265 |
| 1266 }} // namespace v8::internal | 1266 }} // namespace v8::internal |
| OLD | NEW |