| 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 1777 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1788 intptr_t p1 = reinterpret_cast<intptr_t>(msg); | 1788 intptr_t p1 = reinterpret_cast<intptr_t>(msg); |
| 1789 intptr_t p0 = (p1 & ~kSmiTagMask) + kSmiTag; | 1789 intptr_t p0 = (p1 & ~kSmiTagMask) + kSmiTag; |
| 1790 ASSERT(reinterpret_cast<Object*>(p0)->IsSmi()); | 1790 ASSERT(reinterpret_cast<Object*>(p0)->IsSmi()); |
| 1791 #ifdef DEBUG | 1791 #ifdef DEBUG |
| 1792 if (msg != NULL) { | 1792 if (msg != NULL) { |
| 1793 RecordComment("Abort message: "); | 1793 RecordComment("Abort message: "); |
| 1794 RecordComment(msg); | 1794 RecordComment(msg); |
| 1795 } | 1795 } |
| 1796 #endif | 1796 #endif |
| 1797 // Disable stub call restrictions to always allow calls to abort. | 1797 // Disable stub call restrictions to always allow calls to abort. |
| 1798 set_allow_stub_calls(true); | 1798 AllowStubCallsScope allow_scope(this, true); |
| 1799 | 1799 |
| 1800 mov(r0, Operand(p0)); | 1800 mov(r0, Operand(p0)); |
| 1801 push(r0); | 1801 push(r0); |
| 1802 mov(r0, Operand(Smi::FromInt(p1 - p0))); | 1802 mov(r0, Operand(Smi::FromInt(p1 - p0))); |
| 1803 push(r0); | 1803 push(r0); |
| 1804 CallRuntime(Runtime::kAbort, 2); | 1804 CallRuntime(Runtime::kAbort, 2); |
| 1805 // will not return here | 1805 // will not return here |
| 1806 if (is_const_pool_blocked()) { | 1806 if (is_const_pool_blocked()) { |
| 1807 // If the calling code cares about the exact number of | 1807 // If the calling code cares about the exact number of |
| 1808 // instructions generated, we insert padding here to keep the size | 1808 // instructions generated, we insert padding here to keep the size |
| (...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2145 | 2145 |
| 2146 void CodePatcher::Emit(Address addr) { | 2146 void CodePatcher::Emit(Address addr) { |
| 2147 masm()->emit(reinterpret_cast<Instr>(addr)); | 2147 masm()->emit(reinterpret_cast<Instr>(addr)); |
| 2148 } | 2148 } |
| 2149 #endif // ENABLE_DEBUGGER_SUPPORT | 2149 #endif // ENABLE_DEBUGGER_SUPPORT |
| 2150 | 2150 |
| 2151 | 2151 |
| 2152 } } // namespace v8::internal | 2152 } } // namespace v8::internal |
| 2153 | 2153 |
| 2154 #endif // V8_TARGET_ARCH_ARM | 2154 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |