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 it into try handler chain. | 454 // Push a new try handler and link into try handler chain. The return |
455 void PushTryHandler(CodeLocation try_location, | 455 // address must be pushed before calling this helper. |
456 HandlerType type, | 456 void PushTryHandler(CodeLocation try_location, HandlerType type); |
457 int handler_index); | |
458 | 457 |
459 // Unlink the stack handler on top of the stack from the try handler chain. | 458 // Unlink the stack handler on top of the stack from the try handler chain. |
460 void PopTryHandler(); | 459 void PopTryHandler(); |
461 | 460 |
462 // Activate the top handler in the try hander chain. | 461 // Activate the top handler in the try hander chain. |
463 void Throw(Register value); | 462 void Throw(Register value); |
464 | 463 |
465 void ThrowUncatchable(UncatchableExceptionType type, Register value); | 464 void ThrowUncatchable(UncatchableExceptionType type, Register value); |
466 | 465 |
467 // --------------------------------------------------------------------------- | 466 // --------------------------------------------------------------------------- |
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
836 Label::Distance condition_met_distance = Label::kFar); | 835 Label::Distance condition_met_distance = Label::kFar); |
837 | 836 |
838 // Helper for finding the mark bits for an address. Afterwards, the | 837 // Helper for finding the mark bits for an address. Afterwards, the |
839 // bitmap register points at the word with the mark bits and the mask | 838 // bitmap register points at the word with the mark bits and the mask |
840 // the position of the first bit. Uses ecx as scratch and leaves addr_reg | 839 // the position of the first bit. Uses ecx as scratch and leaves addr_reg |
841 // unchanged. | 840 // unchanged. |
842 inline void GetMarkBits(Register addr_reg, | 841 inline void GetMarkBits(Register addr_reg, |
843 Register bitmap_reg, | 842 Register bitmap_reg, |
844 Register mask_reg); | 843 Register mask_reg); |
845 | 844 |
846 // Helper for throwing exceptions. Compute a handler address and jump to | |
847 // it. See the implementation for register usage. | |
848 void JumpToHandlerEntry(); | |
849 | |
850 // Compute memory operands for safepoint stack slots. | 845 // Compute memory operands for safepoint stack slots. |
851 Operand SafepointRegisterSlot(Register reg); | 846 Operand SafepointRegisterSlot(Register reg); |
852 static int SafepointRegisterStackIndex(int reg_code); | 847 static int SafepointRegisterStackIndex(int reg_code); |
853 | 848 |
854 // Needs access to SafepointRegisterStackIndex for optimized frame | 849 // Needs access to SafepointRegisterStackIndex for optimized frame |
855 // traversal. | 850 // traversal. |
856 friend class OptimizedFrame; | 851 friend class OptimizedFrame; |
857 }; | 852 }; |
858 | 853 |
859 | 854 |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
927 } \ | 922 } \ |
928 masm-> | 923 masm-> |
929 #else | 924 #else |
930 #define ACCESS_MASM(masm) masm-> | 925 #define ACCESS_MASM(masm) masm-> |
931 #endif | 926 #endif |
932 | 927 |
933 | 928 |
934 } } // namespace v8::internal | 929 } } // namespace v8::internal |
935 | 930 |
936 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 931 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
OLD | NEW |