OLD | NEW |
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 Loading... |
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 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
835 Label::Distance condition_met_distance = Label::kFar); | 836 Label::Distance condition_met_distance = Label::kFar); |
836 | 837 |
837 // Helper for finding the mark bits for an address. Afterwards, the | 838 // Helper for finding the mark bits for an address. Afterwards, the |
838 // bitmap register points at the word with the mark bits and the mask | 839 // bitmap register points at the word with the mark bits and the mask |
839 // the position of the first bit. Uses ecx as scratch and leaves addr_reg | 840 // the position of the first bit. Uses ecx as scratch and leaves addr_reg |
840 // unchanged. | 841 // unchanged. |
841 inline void GetMarkBits(Register addr_reg, | 842 inline void GetMarkBits(Register addr_reg, |
842 Register bitmap_reg, | 843 Register bitmap_reg, |
843 Register mask_reg); | 844 Register mask_reg); |
844 | 845 |
| 846 // Helper for throwing exceptions. Compute a handler address and jump to |
| 847 // it. See the implementation for register usage. |
| 848 void JumpToHandlerEntry(); |
| 849 |
845 // Compute memory operands for safepoint stack slots. | 850 // Compute memory operands for safepoint stack slots. |
846 Operand SafepointRegisterSlot(Register reg); | 851 Operand SafepointRegisterSlot(Register reg); |
847 static int SafepointRegisterStackIndex(int reg_code); | 852 static int SafepointRegisterStackIndex(int reg_code); |
848 | 853 |
849 // Needs access to SafepointRegisterStackIndex for optimized frame | 854 // Needs access to SafepointRegisterStackIndex for optimized frame |
850 // traversal. | 855 // traversal. |
851 friend class OptimizedFrame; | 856 friend class OptimizedFrame; |
852 }; | 857 }; |
853 | 858 |
854 | 859 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
922 } \ | 927 } \ |
923 masm-> | 928 masm-> |
924 #else | 929 #else |
925 #define ACCESS_MASM(masm) masm-> | 930 #define ACCESS_MASM(masm) masm-> |
926 #endif | 931 #endif |
927 | 932 |
928 | 933 |
929 } } // namespace v8::internal | 934 } } // namespace v8::internal |
930 | 935 |
931 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 936 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
OLD | NEW |