| 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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 // Load/store macros. | 195 // Load/store macros. |
| 196 #define DECLARE_FUNCTION(FN, REGTYPE, REG, OP) \ | 196 #define DECLARE_FUNCTION(FN, REGTYPE, REG, OP) \ |
| 197 inline void FN(const REGTYPE REG, const MemOperand& addr); | 197 inline void FN(const REGTYPE REG, const MemOperand& addr); |
| 198 LS_MACRO_LIST(DECLARE_FUNCTION) | 198 LS_MACRO_LIST(DECLARE_FUNCTION) |
| 199 #undef DECLARE_FUNCTION | 199 #undef DECLARE_FUNCTION |
| 200 | 200 |
| 201 void LoadStoreMacro(const CPURegister& rt, | 201 void LoadStoreMacro(const CPURegister& rt, |
| 202 const MemOperand& addr, | 202 const MemOperand& addr, |
| 203 LoadStoreOp op); | 203 LoadStoreOp op); |
| 204 | 204 |
| 205 // V8-specific load/store helpers. |
| 206 void Load(const Register& rt, const MemOperand& addr, Representation r); |
| 207 void Store(const Register& rt, const MemOperand& addr, Representation r); |
| 208 |
| 205 // Remaining instructions are simple pass-through calls to the assembler. | 209 // Remaining instructions are simple pass-through calls to the assembler. |
| 206 inline void Adr(const Register& rd, Label* label); | 210 inline void Adr(const Register& rd, Label* label); |
| 207 inline void Asr(const Register& rd, const Register& rn, unsigned shift); | 211 inline void Asr(const Register& rd, const Register& rn, unsigned shift); |
| 208 inline void Asr(const Register& rd, const Register& rn, const Register& rm); | 212 inline void Asr(const Register& rd, const Register& rn, const Register& rm); |
| 209 inline void B(Label* label); | 213 inline void B(Label* label); |
| 210 inline void B(Condition cond, Label* label); | 214 inline void B(Condition cond, Label* label); |
| 211 inline void B(Label* label, Condition cond); | 215 inline void B(Label* label, Condition cond); |
| 212 inline void Bfi(const Register& rd, | 216 inline void Bfi(const Register& rd, |
| 213 const Register& rn, | 217 const Register& rn, |
| 214 unsigned lsb, | 218 unsigned lsb, |
| (...skipping 1963 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2178 #error "Unsupported option" | 2182 #error "Unsupported option" |
| 2179 #define CODE_COVERAGE_STRINGIFY(x) #x | 2183 #define CODE_COVERAGE_STRINGIFY(x) #x |
| 2180 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 2184 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
| 2181 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 2185 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
| 2182 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 2186 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
| 2183 #else | 2187 #else |
| 2184 #define ACCESS_MASM(masm) masm-> | 2188 #define ACCESS_MASM(masm) masm-> |
| 2185 #endif | 2189 #endif |
| 2186 | 2190 |
| 2187 #endif // V8_A64_MACRO_ASSEMBLER_A64_H_ | 2191 #endif // V8_A64_MACRO_ASSEMBLER_A64_H_ |
| OLD | NEW |