| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 4026 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4037 | 4037 |
| 4038 // Call a faked try-block that does the invoke. | 4038 // Call a faked try-block that does the invoke. |
| 4039 __ bl(&invoke); | 4039 __ bl(&invoke); |
| 4040 | 4040 |
| 4041 // Caught exception: Store result (exception) in the pending | 4041 // Caught exception: Store result (exception) in the pending |
| 4042 // exception field in the JSEnv and return a failure sentinel. | 4042 // exception field in the JSEnv and return a failure sentinel. |
| 4043 // Coming in here the fp will be invalid because the PushTryHandler below | 4043 // Coming in here the fp will be invalid because the PushTryHandler below |
| 4044 // sets it to 0 to signal the existence of the JSEntry frame. | 4044 // sets it to 0 to signal the existence of the JSEntry frame. |
| 4045 __ mov(ip, Operand(Top::pending_exception_address())); | 4045 __ mov(ip, Operand(Top::pending_exception_address())); |
| 4046 __ str(r0, MemOperand(ip)); | 4046 __ str(r0, MemOperand(ip)); |
| 4047 __ mov(r0, Operand(Handle<Failure>(Failure::Exception()))); | 4047 __ mov(r0, Operand(reinterpret_cast<int32_t>(Failure::Exception()))); |
| 4048 __ b(&exit); | 4048 __ b(&exit); |
| 4049 | 4049 |
| 4050 // Invoke: Link this frame into the handler chain. | 4050 // Invoke: Link this frame into the handler chain. |
| 4051 __ bind(&invoke); | 4051 __ bind(&invoke); |
| 4052 // Must preserve r0-r4, r5-r7 are available. | 4052 // Must preserve r0-r4, r5-r7 are available. |
| 4053 __ PushTryHandler(IN_JS_ENTRY, JS_ENTRY_HANDLER); | 4053 __ PushTryHandler(IN_JS_ENTRY, JS_ENTRY_HANDLER); |
| 4054 // If an exception not caught by another handler occurs, this handler returns | 4054 // If an exception not caught by another handler occurs, this handler returns |
| 4055 // control to the code after the bl(&invoke) above, which restores all | 4055 // control to the code after the bl(&invoke) above, which restores all |
| 4056 // kCalleeSaved registers (including cp, pp and fp) to their saved values | 4056 // kCalleeSaved registers (including cp, pp and fp) to their saved values |
| 4057 // before returning a failure to C. | 4057 // before returning a failure to C. |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4229 // Slow-case: Non-function called. | 4229 // Slow-case: Non-function called. |
| 4230 __ bind(&slow); | 4230 __ bind(&slow); |
| 4231 __ mov(r0, Operand(argc_)); // Setup the number of arguments. | 4231 __ mov(r0, Operand(argc_)); // Setup the number of arguments. |
| 4232 __ InvokeBuiltin(Builtins::CALL_NON_FUNCTION, JUMP_JS); | 4232 __ InvokeBuiltin(Builtins::CALL_NON_FUNCTION, JUMP_JS); |
| 4233 } | 4233 } |
| 4234 | 4234 |
| 4235 | 4235 |
| 4236 #undef __ | 4236 #undef __ |
| 4237 | 4237 |
| 4238 } } // namespace v8::internal | 4238 } } // namespace v8::internal |
| OLD | NEW |