OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 void LeaveInternalFrame() { LeaveFrame(StackFrame::INTERNAL); } | 290 void LeaveInternalFrame() { LeaveFrame(StackFrame::INTERNAL); } |
291 | 291 |
292 void EnterConstructFrame() { EnterFrame(StackFrame::CONSTRUCT); } | 292 void EnterConstructFrame() { EnterFrame(StackFrame::CONSTRUCT); } |
293 void LeaveConstructFrame() { LeaveFrame(StackFrame::CONSTRUCT); } | 293 void LeaveConstructFrame() { LeaveFrame(StackFrame::CONSTRUCT); } |
294 | 294 |
295 // Enter exit frame. | 295 // Enter exit frame. |
296 // stack_space - extra stack space, used for alignment before call to C. | 296 // stack_space - extra stack space, used for alignment before call to C. |
297 void EnterExitFrame(bool save_doubles, int stack_space = 0); | 297 void EnterExitFrame(bool save_doubles, int stack_space = 0); |
298 | 298 |
299 // Leave the current exit frame. Expects the return value in r0. | 299 // Leave the current exit frame. Expects the return value in r0. |
300 void LeaveExitFrame(bool save_doubles); | 300 // Expect the number of values, pushed prior to the exit frame, to |
| 301 // remove in a register (or no_reg, if there is nothing to remove). |
| 302 void LeaveExitFrame(bool save_doubles, Register argument_count); |
301 | 303 |
302 // Get the actual activation frame alignment for target environment. | 304 // Get the actual activation frame alignment for target environment. |
303 static int ActivationFrameAlignment(); | 305 static int ActivationFrameAlignment(); |
304 | 306 |
305 void LoadContext(Register dst, int context_chain_length); | 307 void LoadContext(Register dst, int context_chain_length); |
306 | 308 |
307 void LoadGlobalFunction(int index, Register function); | 309 void LoadGlobalFunction(int index, Register function); |
308 | 310 |
309 // Load the initial map from the global function. The registers | 311 // Load the initial map from the global function. The registers |
310 // function and map can be the same, function is then overwritten. | 312 // function and map can be the same, function is then overwritten. |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 | 366 |
365 // Push a new try handler and link into try handler chain. | 367 // Push a new try handler and link into try handler chain. |
366 // The return address must be passed in register lr. | 368 // The return address must be passed in register lr. |
367 // On exit, r0 contains TOS (code slot). | 369 // On exit, r0 contains TOS (code slot). |
368 void PushTryHandler(CodeLocation try_location, HandlerType type); | 370 void PushTryHandler(CodeLocation try_location, HandlerType type); |
369 | 371 |
370 // Unlink the stack handler on top of the stack from the try handler chain. | 372 // Unlink the stack handler on top of the stack from the try handler chain. |
371 // Must preserve the result register. | 373 // Must preserve the result register. |
372 void PopTryHandler(); | 374 void PopTryHandler(); |
373 | 375 |
| 376 // Passes thrown value (in r0) to the handler of top of the try handler chain. |
| 377 void Throw(Register value); |
| 378 |
| 379 // Propagates an uncatchable exception to the top of the current JS stack's |
| 380 // handler chain. |
| 381 void ThrowUncatchable(UncatchableExceptionType type, Register value); |
| 382 |
374 // --------------------------------------------------------------------------- | 383 // --------------------------------------------------------------------------- |
375 // Inline caching support | 384 // Inline caching support |
376 | 385 |
377 // Generate code for checking access rights - used for security checks | 386 // Generate code for checking access rights - used for security checks |
378 // on access to global objects across environments. The holder register | 387 // on access to global objects across environments. The holder register |
379 // is left untouched, whereas both scratch registers are clobbered. | 388 // is left untouched, whereas both scratch registers are clobbered. |
380 void CheckAccessGlobalProxy(Register holder_reg, | 389 void CheckAccessGlobalProxy(Register holder_reg, |
381 Register scratch, | 390 Register scratch, |
382 Label* miss); | 391 Label* miss); |
383 | 392 |
(...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
941 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 950 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
942 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 951 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
943 #else | 952 #else |
944 #define ACCESS_MASM(masm) masm-> | 953 #define ACCESS_MASM(masm) masm-> |
945 #endif | 954 #endif |
946 | 955 |
947 | 956 |
948 } } // namespace v8::internal | 957 } } // namespace v8::internal |
949 | 958 |
950 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 959 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
OLD | NEW |