| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 1659 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1670 // * The exit frame is dropped. | 1670 // * The exit frame is dropped. |
| 1671 // * The stack pointer is reset to jssp. | 1671 // * The stack pointer is reset to jssp. |
| 1672 // | 1672 // |
| 1673 // The stack pointer must be csp on entry. | 1673 // The stack pointer must be csp on entry. |
| 1674 void LeaveExitFrame(bool save_doubles, | 1674 void LeaveExitFrame(bool save_doubles, |
| 1675 const Register& scratch, | 1675 const Register& scratch, |
| 1676 bool restore_context); | 1676 bool restore_context); |
| 1677 | 1677 |
| 1678 void LoadContext(Register dst, int context_chain_length); | 1678 void LoadContext(Register dst, int context_chain_length); |
| 1679 | 1679 |
| 1680 // Emit code for a flooring division by a constant. The dividend register is |
| 1681 // unchanged and Tmp0() gets clobbered. Dividend and result must be different. |
| 1682 void FlooringDiv(Register result, Register dividend, int32_t divisor); |
| 1683 |
| 1680 // --------------------------------------------------------------------------- | 1684 // --------------------------------------------------------------------------- |
| 1681 // StatsCounter support | 1685 // StatsCounter support |
| 1682 | 1686 |
| 1683 void SetCounter(StatsCounter* counter, int value, Register scratch1, | 1687 void SetCounter(StatsCounter* counter, int value, Register scratch1, |
| 1684 Register scratch2); | 1688 Register scratch2); |
| 1685 void IncrementCounter(StatsCounter* counter, int value, Register scratch1, | 1689 void IncrementCounter(StatsCounter* counter, int value, Register scratch1, |
| 1686 Register scratch2); | 1690 Register scratch2); |
| 1687 void DecrementCounter(StatsCounter* counter, int value, Register scratch1, | 1691 void DecrementCounter(StatsCounter* counter, int value, Register scratch1, |
| 1688 Register scratch2); | 1692 Register scratch2); |
| 1689 | 1693 |
| (...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2291 #error "Unsupported option" | 2295 #error "Unsupported option" |
| 2292 #define CODE_COVERAGE_STRINGIFY(x) #x | 2296 #define CODE_COVERAGE_STRINGIFY(x) #x |
| 2293 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 2297 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
| 2294 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 2298 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
| 2295 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 2299 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
| 2296 #else | 2300 #else |
| 2297 #define ACCESS_MASM(masm) masm-> | 2301 #define ACCESS_MASM(masm) masm-> |
| 2298 #endif | 2302 #endif |
| 2299 | 2303 |
| 2300 #endif // V8_A64_MACRO_ASSEMBLER_A64_H_ | 2304 #endif // V8_A64_MACRO_ASSEMBLER_A64_H_ |
| OLD | NEW |