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 531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
542 // --------------------------------------------------------------------------- | 542 // --------------------------------------------------------------------------- |
543 // Debugger Support | 543 // Debugger Support |
544 | 544 |
545 void DebugBreak(); | 545 void DebugBreak(); |
546 #endif | 546 #endif |
547 | 547 |
548 // --------------------------------------------------------------------------- | 548 // --------------------------------------------------------------------------- |
549 // Exception handling | 549 // Exception handling |
550 | 550 |
551 // Push a new try handler and link into try handler chain. | 551 // Push a new try handler and link into try handler chain. |
552 // The return address must be passed in register lr. | 552 void PushTryHandler(CodeLocation try_location, |
553 // On exit, r0 contains TOS (code slot). | 553 HandlerType type, |
554 void PushTryHandler(CodeLocation try_location, HandlerType type); | 554 int handler_index); |
555 | 555 |
556 // Unlink the stack handler on top of the stack from the try handler chain. | 556 // Unlink the stack handler on top of the stack from the try handler chain. |
557 // Must preserve the result register. | 557 // Must preserve the result register. |
558 void PopTryHandler(); | 558 void PopTryHandler(); |
559 | 559 |
560 // Passes thrown value (in r0) to the handler of top of the try handler chain. | 560 // Passes thrown value (in r0) to the handler of top of the try handler chain. |
561 void Throw(Register value); | 561 void Throw(Register value); |
562 | 562 |
563 // Propagates an uncatchable exception to the top of the current JS stack's | 563 // Propagates an uncatchable exception to the top of the current JS stack's |
564 // handler chain. | 564 // handler chain. |
(...skipping 671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1236 Condition cond, // eq for new space, ne otherwise. | 1236 Condition cond, // eq for new space, ne otherwise. |
1237 Label* branch); | 1237 Label* branch); |
1238 | 1238 |
1239 // Helper for finding the mark bits for an address. Afterwards, the | 1239 // Helper for finding the mark bits for an address. Afterwards, the |
1240 // bitmap register points at the word with the mark bits and the mask | 1240 // bitmap register points at the word with the mark bits and the mask |
1241 // the position of the first bit. Leaves addr_reg unchanged. | 1241 // the position of the first bit. Leaves addr_reg unchanged. |
1242 inline void GetMarkBits(Register addr_reg, | 1242 inline void GetMarkBits(Register addr_reg, |
1243 Register bitmap_reg, | 1243 Register bitmap_reg, |
1244 Register mask_reg); | 1244 Register mask_reg); |
1245 | 1245 |
| 1246 // Helper for throwing exceptions. Compute a handler address and jump to |
| 1247 // it. See the implementation for register usage. |
| 1248 void JumpToHandlerEntry(); |
| 1249 |
1246 // Compute memory operands for safepoint stack slots. | 1250 // Compute memory operands for safepoint stack slots. |
1247 static int SafepointRegisterStackIndex(int reg_code); | 1251 static int SafepointRegisterStackIndex(int reg_code); |
1248 MemOperand SafepointRegisterSlot(Register reg); | 1252 MemOperand SafepointRegisterSlot(Register reg); |
1249 MemOperand SafepointRegistersAndDoublesSlot(Register reg); | 1253 MemOperand SafepointRegistersAndDoublesSlot(Register reg); |
1250 | 1254 |
1251 bool generating_stub_; | 1255 bool generating_stub_; |
1252 bool allow_stub_calls_; | 1256 bool allow_stub_calls_; |
1253 bool has_frame_; | 1257 bool has_frame_; |
1254 // This handle will be patched with the code object on installation. | 1258 // This handle will be patched with the code object on installation. |
1255 Handle<Object> code_object_; | 1259 Handle<Object> code_object_; |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1312 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1316 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1313 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1317 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1314 #else | 1318 #else |
1315 #define ACCESS_MASM(masm) masm-> | 1319 #define ACCESS_MASM(masm) masm-> |
1316 #endif | 1320 #endif |
1317 | 1321 |
1318 | 1322 |
1319 } } // namespace v8::internal | 1323 } } // namespace v8::internal |
1320 | 1324 |
1321 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 1325 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
OLD | NEW |