| 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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 } | 228 } |
| 229 } | 229 } |
| 230 | 230 |
| 231 // Push and pop the registers that can hold pointers, as defined by the | 231 // Push and pop the registers that can hold pointers, as defined by the |
| 232 // RegList constant kSafepointSavedRegisters. | 232 // RegList constant kSafepointSavedRegisters. |
| 233 void PushSafepointRegisters(); | 233 void PushSafepointRegisters(); |
| 234 void PopSafepointRegisters(); | 234 void PopSafepointRegisters(); |
| 235 void PushSafepointRegistersAndDoubles(); | 235 void PushSafepointRegistersAndDoubles(); |
| 236 void PopSafepointRegistersAndDoubles(); | 236 void PopSafepointRegistersAndDoubles(); |
| 237 void StoreToSafepointRegisterSlot(Register reg); | 237 void StoreToSafepointRegisterSlot(Register reg); |
| 238 void StoreToSafepointRegistersAndDoublesSlot(Register reg); |
| 239 void LoadFromSafepointRegisterSlot(Register reg); |
| 238 static int SafepointRegisterStackIndex(int reg_code); | 240 static int SafepointRegisterStackIndex(int reg_code); |
| 239 static MemOperand SafepointRegisterSlot(Register reg); | 241 static MemOperand SafepointRegisterSlot(Register reg); |
| 242 static MemOperand SafepointRegistersAndDoublesSlot(Register reg); |
| 240 | 243 |
| 241 // Load two consecutive registers with two consecutive memory locations. | 244 // Load two consecutive registers with two consecutive memory locations. |
| 242 void Ldrd(Register dst1, | 245 void Ldrd(Register dst1, |
| 243 Register dst2, | 246 Register dst2, |
| 244 const MemOperand& src, | 247 const MemOperand& src, |
| 245 Condition cond = al); | 248 Condition cond = al); |
| 246 | 249 |
| 247 // Store two consecutive registers to two consecutive memory locations. | 250 // Store two consecutive registers to two consecutive memory locations. |
| 248 void Strd(Register src1, | 251 void Strd(Register src1, |
| 249 Register src2, | 252 Register src2, |
| (...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 697 // Print a message to stdout and abort execution. | 700 // Print a message to stdout and abort execution. |
| 698 void Abort(const char* msg); | 701 void Abort(const char* msg); |
| 699 | 702 |
| 700 // Verify restrictions about code generated in stubs. | 703 // Verify restrictions about code generated in stubs. |
| 701 void set_generating_stub(bool value) { generating_stub_ = value; } | 704 void set_generating_stub(bool value) { generating_stub_ = value; } |
| 702 bool generating_stub() { return generating_stub_; } | 705 bool generating_stub() { return generating_stub_; } |
| 703 void set_allow_stub_calls(bool value) { allow_stub_calls_ = value; } | 706 void set_allow_stub_calls(bool value) { allow_stub_calls_ = value; } |
| 704 bool allow_stub_calls() { return allow_stub_calls_; } | 707 bool allow_stub_calls() { return allow_stub_calls_; } |
| 705 | 708 |
| 706 // --------------------------------------------------------------------------- | 709 // --------------------------------------------------------------------------- |
| 710 // Number utilities |
| 711 |
| 712 // Check whether the value of reg is a power of two and not zero. If not |
| 713 // control continues at the label not_power_of_two. If reg is a power of two |
| 714 // the register scratch contains the value of (reg - 1) when control falls |
| 715 // through. |
| 716 void JumpIfNotPowerOfTwoOrZero(Register reg, |
| 717 Register scratch, |
| 718 Label* not_power_of_two_or_zero); |
| 719 |
| 720 // --------------------------------------------------------------------------- |
| 707 // Smi utilities | 721 // Smi utilities |
| 708 | 722 |
| 709 void SmiTag(Register reg, SBit s = LeaveCC) { | 723 void SmiTag(Register reg, SBit s = LeaveCC) { |
| 710 add(reg, reg, Operand(reg), s); | 724 add(reg, reg, Operand(reg), s); |
| 711 } | 725 } |
| 712 void SmiTag(Register dst, Register src, SBit s = LeaveCC) { | 726 void SmiTag(Register dst, Register src, SBit s = LeaveCC) { |
| 713 add(dst, src, Operand(src), s); | 727 add(dst, src, Operand(src), s); |
| 714 } | 728 } |
| 715 | 729 |
| 716 // Try to convert int32 to smi. If the value is to large, preserve | 730 // Try to convert int32 to smi. If the value is to large, preserve |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 895 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 909 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
| 896 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 910 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
| 897 #else | 911 #else |
| 898 #define ACCESS_MASM(masm) masm-> | 912 #define ACCESS_MASM(masm) masm-> |
| 899 #endif | 913 #endif |
| 900 | 914 |
| 901 | 915 |
| 902 } } // namespace v8::internal | 916 } } // namespace v8::internal |
| 903 | 917 |
| 904 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 918 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
| OLD | NEW |