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 5028 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5039 ExternalReference c_entry_fp(Top::k_c_entry_fp_address); | 5039 ExternalReference c_entry_fp(Top::k_c_entry_fp_address); |
5040 __ push(Operand::StaticVariable(c_entry_fp)); | 5040 __ push(Operand::StaticVariable(c_entry_fp)); |
5041 | 5041 |
5042 // Call a faked try-block that does the invoke. | 5042 // Call a faked try-block that does the invoke. |
5043 __ call(&invoke); | 5043 __ call(&invoke); |
5044 | 5044 |
5045 // Caught exception: Store result (exception) in the pending | 5045 // Caught exception: Store result (exception) in the pending |
5046 // exception field in the JSEnv and return a failure sentinel. | 5046 // exception field in the JSEnv and return a failure sentinel. |
5047 ExternalReference pending_exception(Top::k_pending_exception_address); | 5047 ExternalReference pending_exception(Top::k_pending_exception_address); |
5048 __ mov(Operand::StaticVariable(pending_exception), eax); | 5048 __ mov(Operand::StaticVariable(pending_exception), eax); |
5049 __ mov(eax, Handle<Failure>(Failure::Exception())); | 5049 __ mov(eax, reinterpret_cast<int32_t>(Failure::Exception())); |
5050 __ jmp(&exit); | 5050 __ jmp(&exit); |
5051 | 5051 |
5052 // Invoke: Link this frame into the handler chain. | 5052 // Invoke: Link this frame into the handler chain. |
5053 __ bind(&invoke); | 5053 __ bind(&invoke); |
5054 __ PushTryHandler(IN_JS_ENTRY, JS_ENTRY_HANDLER); | 5054 __ PushTryHandler(IN_JS_ENTRY, JS_ENTRY_HANDLER); |
5055 __ push(eax); // flush TOS | 5055 __ push(eax); // flush TOS |
5056 | 5056 |
5057 // Clear any pending exceptions. | 5057 // Clear any pending exceptions. |
5058 __ mov(edx, | 5058 __ mov(edx, |
5059 Operand::StaticVariable(ExternalReference::the_hole_value_location())); | 5059 Operand::StaticVariable(ExternalReference::the_hole_value_location())); |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5149 | 5149 |
5150 // Slow-case: Go through the JavaScript implementation. | 5150 // Slow-case: Go through the JavaScript implementation. |
5151 __ bind(&slow); | 5151 __ bind(&slow); |
5152 __ InvokeBuiltin(Builtins::INSTANCE_OF, JUMP_FUNCTION); | 5152 __ InvokeBuiltin(Builtins::INSTANCE_OF, JUMP_FUNCTION); |
5153 } | 5153 } |
5154 | 5154 |
5155 | 5155 |
5156 #undef __ | 5156 #undef __ |
5157 | 5157 |
5158 } } // namespace v8::internal | 5158 } } // namespace v8::internal |
OLD | NEW |