| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #if V8_TARGET_ARCH_MIPS64 | 5 #if V8_TARGET_ARCH_MIPS64 |
| 6 | 6 |
| 7 #include "src/code-stubs.h" | 7 #include "src/code-stubs.h" |
| 8 #include "src/api-arguments.h" | 8 #include "src/api-arguments.h" |
| 9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
| 10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
| (...skipping 1199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1210 __ nop(); // Branch delay slot nop. | 1210 __ nop(); // Branch delay slot nop. |
| 1211 | 1211 |
| 1212 // Invoke: Link this frame into the handler chain. | 1212 // Invoke: Link this frame into the handler chain. |
| 1213 __ bind(&invoke); | 1213 __ bind(&invoke); |
| 1214 __ PushStackHandler(); | 1214 __ PushStackHandler(); |
| 1215 // If an exception not caught by another handler occurs, this handler | 1215 // If an exception not caught by another handler occurs, this handler |
| 1216 // returns control to the code after the bal(&invoke) above, which | 1216 // returns control to the code after the bal(&invoke) above, which |
| 1217 // restores all kCalleeSaved registers (including cp and fp) to their | 1217 // restores all kCalleeSaved registers (including cp and fp) to their |
| 1218 // saved values before returning a failure to C. | 1218 // saved values before returning a failure to C. |
| 1219 | 1219 |
| 1220 // Clear any pending exceptions. | |
| 1221 __ LoadRoot(a5, Heap::kTheHoleValueRootIndex); | |
| 1222 __ li(a4, Operand(ExternalReference(Isolate::kPendingExceptionAddress, | |
| 1223 isolate))); | |
| 1224 __ sd(a5, MemOperand(a4)); | |
| 1225 | |
| 1226 // Invoke the function by calling through JS entry trampoline builtin. | 1220 // Invoke the function by calling through JS entry trampoline builtin. |
| 1227 // Notice that we cannot store a reference to the trampoline code directly in | 1221 // Notice that we cannot store a reference to the trampoline code directly in |
| 1228 // this stub, because runtime stubs are not traversed when doing GC. | 1222 // this stub, because runtime stubs are not traversed when doing GC. |
| 1229 | 1223 |
| 1230 // Registers: | 1224 // Registers: |
| 1231 // a0: entry_address | 1225 // a0: entry_address |
| 1232 // a1: function | 1226 // a1: function |
| 1233 // a2: receiver_pointer | 1227 // a2: receiver_pointer |
| 1234 // a3: argc | 1228 // a3: argc |
| 1235 // s0: argv | 1229 // s0: argv |
| (...skipping 4206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5442 kStackUnwindSpace, kInvalidStackOffset, | 5436 kStackUnwindSpace, kInvalidStackOffset, |
| 5443 return_value_operand, NULL); | 5437 return_value_operand, NULL); |
| 5444 } | 5438 } |
| 5445 | 5439 |
| 5446 #undef __ | 5440 #undef __ |
| 5447 | 5441 |
| 5448 } // namespace internal | 5442 } // namespace internal |
| 5449 } // namespace v8 | 5443 } // namespace v8 |
| 5450 | 5444 |
| 5451 #endif // V8_TARGET_ARCH_MIPS64 | 5445 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |