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 825 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
836 // Debugger Support. | 836 // Debugger Support. |
837 | 837 |
838 void DebugBreak(); | 838 void DebugBreak(); |
839 #endif | 839 #endif |
840 | 840 |
841 | 841 |
842 // ------------------------------------------------------------------------- | 842 // ------------------------------------------------------------------------- |
843 // Exception handling. | 843 // Exception handling. |
844 | 844 |
845 // Push a new try handler and link into try handler chain. | 845 // Push a new try handler and link into try handler chain. |
846 // The return address must be passed in register ra. | 846 void PushTryHandler(CodeLocation try_location, |
847 // Clobber t0, t1, t2. | 847 HandlerType type, |
848 void PushTryHandler(CodeLocation try_location, HandlerType type); | 848 int handler_index); |
849 | 849 |
850 // Unlink the stack handler on top of the stack from the try handler chain. | 850 // Unlink the stack handler on top of the stack from the try handler chain. |
851 // Must preserve the result register. | 851 // Must preserve the result register. |
852 void PopTryHandler(); | 852 void PopTryHandler(); |
853 | 853 |
854 // Passes thrown value (in v0) to the handler of top of the try handler chain. | 854 // Passes thrown value (in v0) to the handler of top of the try handler chain. |
855 void Throw(Register value); | 855 void Throw(Register value); |
856 | 856 |
857 // Propagates an uncatchable exception to the top of the current JS stack's | 857 // Propagates an uncatchable exception to the top of the current JS stack's |
858 // handler chain. | 858 // handler chain. |
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1374 Condition cond, // eq for new space, ne otherwise. | 1374 Condition cond, // eq for new space, ne otherwise. |
1375 Label* branch); | 1375 Label* branch); |
1376 | 1376 |
1377 // Helper for finding the mark bits for an address. Afterwards, the | 1377 // Helper for finding the mark bits for an address. Afterwards, the |
1378 // bitmap register points at the word with the mark bits and the mask | 1378 // bitmap register points at the word with the mark bits and the mask |
1379 // the position of the first bit. Leaves addr_reg unchanged. | 1379 // the position of the first bit. Leaves addr_reg unchanged. |
1380 inline void GetMarkBits(Register addr_reg, | 1380 inline void GetMarkBits(Register addr_reg, |
1381 Register bitmap_reg, | 1381 Register bitmap_reg, |
1382 Register mask_reg); | 1382 Register mask_reg); |
1383 | 1383 |
| 1384 // Helper for throwing exceptions. Compute a handler address and jump to |
| 1385 // it. See the implementation for register usage. |
| 1386 void JumpToHandlerEntry(); |
| 1387 |
1384 // Compute memory operands for safepoint stack slots. | 1388 // Compute memory operands for safepoint stack slots. |
1385 static int SafepointRegisterStackIndex(int reg_code); | 1389 static int SafepointRegisterStackIndex(int reg_code); |
1386 MemOperand SafepointRegisterSlot(Register reg); | 1390 MemOperand SafepointRegisterSlot(Register reg); |
1387 MemOperand SafepointRegistersAndDoublesSlot(Register reg); | 1391 MemOperand SafepointRegistersAndDoublesSlot(Register reg); |
1388 | 1392 |
1389 bool generating_stub_; | 1393 bool generating_stub_; |
1390 bool allow_stub_calls_; | 1394 bool allow_stub_calls_; |
1391 bool has_frame_; | 1395 bool has_frame_; |
1392 // This handle will be patched with the code object on installation. | 1396 // This handle will be patched with the code object on installation. |
1393 Handle<Object> code_object_; | 1397 Handle<Object> code_object_; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1435 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 1439 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
1436 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1440 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1437 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1441 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1438 #else | 1442 #else |
1439 #define ACCESS_MASM(masm) masm-> | 1443 #define ACCESS_MASM(masm) masm-> |
1440 #endif | 1444 #endif |
1441 | 1445 |
1442 } } // namespace v8::internal | 1446 } } // namespace v8::internal |
1443 | 1447 |
1444 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ | 1448 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ |
OLD | NEW |