| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 996 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1007 Pop(a0); | 1007 Pop(a0); |
| 1008 __ sw(a0, register_location(register_index)); | 1008 __ sw(a0, register_location(register_index)); |
| 1009 } | 1009 } |
| 1010 | 1010 |
| 1011 | 1011 |
| 1012 void RegExpMacroAssemblerMIPS::PushBacktrack(Label* label) { | 1012 void RegExpMacroAssemblerMIPS::PushBacktrack(Label* label) { |
| 1013 if (label->is_bound()) { | 1013 if (label->is_bound()) { |
| 1014 int target = label->pos(); | 1014 int target = label->pos(); |
| 1015 __ li(a0, Operand(target + Code::kHeaderSize - kHeapObjectTag)); | 1015 __ li(a0, Operand(target + Code::kHeaderSize - kHeapObjectTag)); |
| 1016 } else { | 1016 } else { |
| 1017 Assembler::BlockTrampolinePoolScope block_trampoline_pool(masm_); |
| 1017 Label after_constant; | 1018 Label after_constant; |
| 1018 __ Branch(&after_constant); | 1019 __ Branch(&after_constant); |
| 1019 int offset = masm_->pc_offset(); | 1020 int offset = masm_->pc_offset(); |
| 1020 int cp_offset = offset + Code::kHeaderSize - kHeapObjectTag; | 1021 int cp_offset = offset + Code::kHeaderSize - kHeapObjectTag; |
| 1021 __ emit(0); | 1022 __ emit(0); |
| 1022 masm_->label_at_put(label, offset); | 1023 masm_->label_at_put(label, offset); |
| 1023 __ bind(&after_constant); | 1024 __ bind(&after_constant); |
| 1024 if (is_int16(cp_offset)) { | 1025 if (is_int16(cp_offset)) { |
| 1025 __ lw(a0, MemOperand(code_pointer(), cp_offset)); | 1026 __ lw(a0, MemOperand(code_pointer(), cp_offset)); |
| 1026 } else { | 1027 } else { |
| (...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1388 } | 1389 } |
| 1389 | 1390 |
| 1390 | 1391 |
| 1391 #undef __ | 1392 #undef __ |
| 1392 | 1393 |
| 1393 #endif // V8_INTERPRETED_REGEXP | 1394 #endif // V8_INTERPRETED_REGEXP |
| 1394 | 1395 |
| 1395 }} // namespace v8::internal | 1396 }} // namespace v8::internal |
| 1396 | 1397 |
| 1397 #endif // V8_TARGET_ARCH_MIPS | 1398 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |