OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
512 strd(src1, src2, dst, cond); | 512 strd(src1, src2, dst, cond); |
513 } else { | 513 } else { |
514 MemOperand dst2(dst); | 514 MemOperand dst2(dst); |
515 dst2.set_offset(dst2.offset() + 4); | 515 dst2.set_offset(dst2.offset() + 4); |
516 str(src1, dst, cond); | 516 str(src1, dst, cond); |
517 str(src2, dst2, cond); | 517 str(src2, dst2, cond); |
518 } | 518 } |
519 } | 519 } |
520 | 520 |
521 | 521 |
| 522 void MacroAssembler::ClearFPSCRBits(uint32_t bits_to_clear, Register scratch) { |
| 523 vmrs(scratch); |
| 524 bic(scratch, scratch, Operand(bits_to_clear)); |
| 525 vmsr(scratch); |
| 526 } |
| 527 |
| 528 |
522 void MacroAssembler::EnterFrame(StackFrame::Type type) { | 529 void MacroAssembler::EnterFrame(StackFrame::Type type) { |
523 // r0-r3: preserved | 530 // r0-r3: preserved |
524 stm(db_w, sp, cp.bit() | fp.bit() | lr.bit()); | 531 stm(db_w, sp, cp.bit() | fp.bit() | lr.bit()); |
525 mov(ip, Operand(Smi::FromInt(type))); | 532 mov(ip, Operand(Smi::FromInt(type))); |
526 push(ip); | 533 push(ip); |
527 mov(ip, Operand(CodeObject())); | 534 mov(ip, Operand(CodeObject())); |
528 push(ip); | 535 push(ip); |
529 add(fp, sp, Operand(3 * kPointerSize)); // Adjust FP to point to saved FP. | 536 add(fp, sp, Operand(3 * kPointerSize)); // Adjust FP to point to saved FP. |
530 } | 537 } |
531 | 538 |
(...skipping 1613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2145 | 2152 |
2146 void CodePatcher::Emit(Address addr) { | 2153 void CodePatcher::Emit(Address addr) { |
2147 masm()->emit(reinterpret_cast<Instr>(addr)); | 2154 masm()->emit(reinterpret_cast<Instr>(addr)); |
2148 } | 2155 } |
2149 #endif // ENABLE_DEBUGGER_SUPPORT | 2156 #endif // ENABLE_DEBUGGER_SUPPORT |
2150 | 2157 |
2151 | 2158 |
2152 } } // namespace v8::internal | 2159 } } // namespace v8::internal |
2153 | 2160 |
2154 #endif // V8_TARGET_ARCH_ARM | 2161 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |