| OLD | NEW |
| 1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 | 80 |
| 81 // --------------------------------------------------------------------------- | 81 // --------------------------------------------------------------------------- |
| 82 // Activation frames | 82 // Activation frames |
| 83 | 83 |
| 84 void EnterInternalFrame() { EnterFrame(StackFrame::INTERNAL); } | 84 void EnterInternalFrame() { EnterFrame(StackFrame::INTERNAL); } |
| 85 void LeaveInternalFrame() { LeaveFrame(StackFrame::INTERNAL); } | 85 void LeaveInternalFrame() { LeaveFrame(StackFrame::INTERNAL); } |
| 86 | 86 |
| 87 void EnterConstructFrame() { EnterFrame(StackFrame::CONSTRUCT); } | 87 void EnterConstructFrame() { EnterFrame(StackFrame::CONSTRUCT); } |
| 88 void LeaveConstructFrame() { LeaveFrame(StackFrame::CONSTRUCT); } | 88 void LeaveConstructFrame() { LeaveFrame(StackFrame::CONSTRUCT); } |
| 89 | 89 |
| 90 // Enter specific kind of exit frame; either EXIT or | 90 // Enter specific kind of exit frame; either normal or debug mode. |
| 91 // EXIT_DEBUG. Expects the number of arguments in register r0 and | 91 // Expects the number of arguments in register r0 and |
| 92 // the builtin function to call in register r1. Exits with argc in | 92 // the builtin function to call in register r1. Exits with argc in |
| 93 // r4, argv in r6, and and the builtin function to call in r5. | 93 // r4, argv in r6, and and the builtin function to call in r5. |
| 94 void EnterExitFrame(StackFrame::Type type); | 94 void EnterExitFrame(ExitFrame::Mode mode); |
| 95 | 95 |
| 96 // Leave the current exit frame. Expects the return value in r0. | 96 // Leave the current exit frame. Expects the return value in r0. |
| 97 void LeaveExitFrame(StackFrame::Type type); | 97 void LeaveExitFrame(ExitFrame::Mode mode); |
| 98 | 98 |
| 99 // Align the stack by optionally pushing a Smi zero. | 99 // Align the stack by optionally pushing a Smi zero. |
| 100 void AlignStack(int offset); | 100 void AlignStack(int offset); |
| 101 | 101 |
| 102 // --------------------------------------------------------------------------- | 102 // --------------------------------------------------------------------------- |
| 103 // JavaScript invokes | 103 // JavaScript invokes |
| 104 | 104 |
| 105 // Invoke the JavaScript function code by either calling or jumping. | 105 // Invoke the JavaScript function code by either calling or jumping. |
| 106 void InvokeCode(Register code, | 106 void InvokeCode(Register code, |
| 107 const ParameterCount& expected, | 107 const ParameterCount& expected, |
| (...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 392 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 392 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
| 393 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 393 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
| 394 #else | 394 #else |
| 395 #define ACCESS_MASM(masm) masm-> | 395 #define ACCESS_MASM(masm) masm-> |
| 396 #endif | 396 #endif |
| 397 | 397 |
| 398 | 398 |
| 399 } } // namespace v8::internal | 399 } } // namespace v8::internal |
| 400 | 400 |
| 401 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 401 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
| OLD | NEW |