| 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 1881 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1892 __ jmp(&invoke); | 1892 __ jmp(&invoke); |
| 1893 __ bind(&handler_entry); | 1893 __ bind(&handler_entry); |
| 1894 handler_offset_ = handler_entry.pos(); | 1894 handler_offset_ = handler_entry.pos(); |
| 1895 // Caught exception: Store result (exception) in the pending exception | 1895 // Caught exception: Store result (exception) in the pending exception |
| 1896 // field in the JSEnv and return a failure sentinel. Coming in here the | 1896 // field in the JSEnv and return a failure sentinel. Coming in here the |
| 1897 // fp will be invalid because the PushTryHandler below sets it to 0 to | 1897 // fp will be invalid because the PushTryHandler below sets it to 0 to |
| 1898 // signal the existence of the JSEntry frame. | 1898 // signal the existence of the JSEntry frame. |
| 1899 __ li(t0, Operand(ExternalReference(Isolate::kPendingExceptionAddress, | 1899 __ li(t0, Operand(ExternalReference(Isolate::kPendingExceptionAddress, |
| 1900 isolate))); | 1900 isolate))); |
| 1901 __ sw(v0, MemOperand(t0)); // We come back from 'invoke'. result is in v0. | 1901 __ sw(v0, MemOperand(t0)); // We come back from 'invoke'. result is in v0. |
| 1902 __ li(v0, Operand(reinterpret_cast<int32_t>(Failure::Exception()))); | 1902 __ LoadRoot(v0, Heap::kExceptionRootIndex); |
| 1903 __ b(&exit); // b exposes branch delay slot. | 1903 __ b(&exit); // b exposes branch delay slot. |
| 1904 __ nop(); // Branch delay slot nop. | 1904 __ nop(); // Branch delay slot nop. |
| 1905 | 1905 |
| 1906 // Invoke: Link this frame into the handler chain. There's only one | 1906 // Invoke: Link this frame into the handler chain. There's only one |
| 1907 // handler block in this code object, so its index is 0. | 1907 // handler block in this code object, so its index is 0. |
| 1908 __ bind(&invoke); | 1908 __ bind(&invoke); |
| 1909 __ PushTryHandler(StackHandler::JS_ENTRY, 0); | 1909 __ PushTryHandler(StackHandler::JS_ENTRY, 0); |
| 1910 // If an exception not caught by another handler occurs, this handler | 1910 // If an exception not caught by another handler occurs, this handler |
| 1911 // returns control to the code after the bal(&invoke) above, which | 1911 // returns control to the code after the bal(&invoke) above, which |
| 1912 // restores all kCalleeSaved registers (including cp and fp) to their | 1912 // restores all kCalleeSaved registers (including cp and fp) to their |
| (...skipping 3540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5453 MemOperand(fp, 6 * kPointerSize), | 5453 MemOperand(fp, 6 * kPointerSize), |
| 5454 NULL); | 5454 NULL); |
| 5455 } | 5455 } |
| 5456 | 5456 |
| 5457 | 5457 |
| 5458 #undef __ | 5458 #undef __ |
| 5459 | 5459 |
| 5460 } } // namespace v8::internal | 5460 } } // namespace v8::internal |
| 5461 | 5461 |
| 5462 #endif // V8_TARGET_ARCH_MIPS | 5462 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |