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 1256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1788 intptr_t p1 = reinterpret_cast<intptr_t>(msg); | 1795 intptr_t p1 = reinterpret_cast<intptr_t>(msg); |
1789 intptr_t p0 = (p1 & ~kSmiTagMask) + kSmiTag; | 1796 intptr_t p0 = (p1 & ~kSmiTagMask) + kSmiTag; |
1790 ASSERT(reinterpret_cast<Object*>(p0)->IsSmi()); | 1797 ASSERT(reinterpret_cast<Object*>(p0)->IsSmi()); |
1791 #ifdef DEBUG | 1798 #ifdef DEBUG |
1792 if (msg != NULL) { | 1799 if (msg != NULL) { |
1793 RecordComment("Abort message: "); | 1800 RecordComment("Abort message: "); |
1794 RecordComment(msg); | 1801 RecordComment(msg); |
1795 } | 1802 } |
1796 #endif | 1803 #endif |
1797 // Disable stub call restrictions to always allow calls to abort. | 1804 // Disable stub call restrictions to always allow calls to abort. |
1798 set_allow_stub_calls(true); | 1805 AllowStubCallsScope allow_scope(this, true); |
1799 | 1806 |
1800 mov(r0, Operand(p0)); | 1807 mov(r0, Operand(p0)); |
1801 push(r0); | 1808 push(r0); |
1802 mov(r0, Operand(Smi::FromInt(p1 - p0))); | 1809 mov(r0, Operand(Smi::FromInt(p1 - p0))); |
1803 push(r0); | 1810 push(r0); |
1804 CallRuntime(Runtime::kAbort, 2); | 1811 CallRuntime(Runtime::kAbort, 2); |
1805 // will not return here | 1812 // will not return here |
1806 if (is_const_pool_blocked()) { | 1813 if (is_const_pool_blocked()) { |
1807 // If the calling code cares about the exact number of | 1814 // If the calling code cares about the exact number of |
1808 // instructions generated, we insert padding here to keep the size | 1815 // instructions generated, we insert padding here to keep the size |
(...skipping 336 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 |