Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: src/ia32/macro-assembler-ia32.h

Issue 8462010: Add a level of indirection to exception handler addresses. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 444
445 // Abort execution if argument is a smi. Used in debug code. 445 // Abort execution if argument is a smi. Used in debug code.
446 void AbortIfSmi(Register object); 446 void AbortIfSmi(Register object);
447 447
448 // Abort execution if argument is a string. Used in debug code. 448 // Abort execution if argument is a string. Used in debug code.
449 void AbortIfNotString(Register object); 449 void AbortIfNotString(Register object);
450 450
451 // --------------------------------------------------------------------------- 451 // ---------------------------------------------------------------------------
452 // Exception handling 452 // Exception handling
453 453
454 // Push a new try handler and link into try handler chain. The return 454 // Push a new try handler and link it into try handler chain.
455 // address must be pushed before calling this helper. 455 void PushTryHandler(CodeLocation try_location,
456 void PushTryHandler(CodeLocation try_location, HandlerType type); 456 HandlerType type,
457 int handler_index);
457 458
458 // Unlink the stack handler on top of the stack from the try handler chain. 459 // Unlink the stack handler on top of the stack from the try handler chain.
459 void PopTryHandler(); 460 void PopTryHandler();
460 461
461 // Activate the top handler in the try hander chain. 462 // Activate the top handler in the try hander chain.
462 void Throw(Register value); 463 void Throw(Register value);
463 464
464 void ThrowUncatchable(UncatchableExceptionType type, Register value); 465 void ThrowUncatchable(UncatchableExceptionType type, Register value);
465 466
466 // --------------------------------------------------------------------------- 467 // ---------------------------------------------------------------------------
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
922 } \ 923 } \
923 masm-> 924 masm->
924 #else 925 #else
925 #define ACCESS_MASM(masm) masm-> 926 #define ACCESS_MASM(masm) masm->
926 #endif 927 #endif
927 928
928 929
929 } } // namespace v8::internal 930 } } // namespace v8::internal
930 931
931 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ 932 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698