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 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
297 // --------------------------------------------------------------------------- | 297 // --------------------------------------------------------------------------- |
298 // Exception handling | 298 // Exception handling |
299 | 299 |
300 // Push a new try handler and link into try handler chain. The return | 300 // Push a new try handler and link into try handler chain. The return |
301 // address must be pushed before calling this helper. | 301 // address must be pushed before calling this helper. |
302 void PushTryHandler(CodeLocation try_location, HandlerType type); | 302 void PushTryHandler(CodeLocation try_location, HandlerType type); |
303 | 303 |
304 // Unlink the stack handler on top of the stack from the try handler chain. | 304 // Unlink the stack handler on top of the stack from the try handler chain. |
305 void PopTryHandler(); | 305 void PopTryHandler(); |
306 | 306 |
307 // Activate the top handler in the try hander chain. | |
308 // Currently expects the thrown value in eax. | |
309 void Throw(); | |
Søren Thygesen Gjesse
2011/02/11 08:18:53
Throw -> Throw(Register object) for clarity?
| |
310 | |
311 void ThrowUncatchable(UncatchableExceptionType type); | |
312 | |
307 // --------------------------------------------------------------------------- | 313 // --------------------------------------------------------------------------- |
308 // Inline caching support | 314 // Inline caching support |
309 | 315 |
310 // Generate code for checking access rights - used for security checks | 316 // Generate code for checking access rights - used for security checks |
311 // on access to global objects across environments. The holder register | 317 // on access to global objects across environments. The holder register |
312 // is left untouched, but the scratch register is clobbered. | 318 // is left untouched, but the scratch register is clobbered. |
313 void CheckAccessGlobalProxy(Register holder_reg, | 319 void CheckAccessGlobalProxy(Register holder_reg, |
314 Register scratch, | 320 Register scratch, |
315 Label* miss); | 321 Label* miss); |
316 | 322 |
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
771 } \ | 777 } \ |
772 masm-> | 778 masm-> |
773 #else | 779 #else |
774 #define ACCESS_MASM(masm) masm-> | 780 #define ACCESS_MASM(masm) masm-> |
775 #endif | 781 #endif |
776 | 782 |
777 | 783 |
778 } } // namespace v8::internal | 784 } } // namespace v8::internal |
779 | 785 |
780 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 786 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
OLD | NEW |