OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_ARM64_MACRO_ASSEMBLER_ARM64_H_ | 5 #ifndef V8_ARM64_MACRO_ASSEMBLER_ARM64_H_ |
6 #define V8_ARM64_MACRO_ASSEMBLER_ARM64_H_ | 6 #define V8_ARM64_MACRO_ASSEMBLER_ARM64_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "src/arm64/assembler-arm64.h" | 10 #include "src/arm64/assembler-arm64.h" |
(...skipping 877 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
888 DCHECK(object->IsSmi()); | 888 DCHECK(object->IsSmi()); |
889 Mov(result, Operand(object)); | 889 Mov(result, Operand(object)); |
890 } | 890 } |
891 } | 891 } |
892 | 892 |
893 static int SafepointRegisterStackIndex(int reg_code); | 893 static int SafepointRegisterStackIndex(int reg_code); |
894 | 894 |
895 // This is required for compatibility with architecture independant code. | 895 // This is required for compatibility with architecture independant code. |
896 // Remove if not needed. | 896 // Remove if not needed. |
897 inline void Move(Register dst, Register src) { Mov(dst, src); } | 897 inline void Move(Register dst, Register src) { Mov(dst, src); } |
| 898 inline void Move(Register dst, Handle<Object> x) { LoadObject(dst, x); } |
898 inline void Move(Register dst, Smi* src) { Mov(dst, src); } | 899 inline void Move(Register dst, Smi* src) { Mov(dst, src); } |
899 | 900 |
900 void LoadInstanceDescriptors(Register map, | 901 void LoadInstanceDescriptors(Register map, |
901 Register descriptors); | 902 Register descriptors); |
902 void EnumLengthUntagged(Register dst, Register map); | 903 void EnumLengthUntagged(Register dst, Register map); |
903 void EnumLengthSmi(Register dst, Register map); | 904 void EnumLengthSmi(Register dst, Register map); |
904 void NumberOfOwnDescriptors(Register dst, Register map); | 905 void NumberOfOwnDescriptors(Register dst, Register map); |
905 void LoadAccessor(Register dst, Register holder, int accessor_index, | 906 void LoadAccessor(Register dst, Register holder, int accessor_index, |
906 AccessorComponent accessor); | 907 AccessorComponent accessor); |
907 | 908 |
(...skipping 1350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2258 #error "Unsupported option" | 2259 #error "Unsupported option" |
2259 #define CODE_COVERAGE_STRINGIFY(x) #x | 2260 #define CODE_COVERAGE_STRINGIFY(x) #x |
2260 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 2261 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
2261 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 2262 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
2262 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 2263 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
2263 #else | 2264 #else |
2264 #define ACCESS_MASM(masm) masm-> | 2265 #define ACCESS_MASM(masm) masm-> |
2265 #endif | 2266 #endif |
2266 | 2267 |
2267 #endif // V8_ARM64_MACRO_ASSEMBLER_ARM64_H_ | 2268 #endif // V8_ARM64_MACRO_ASSEMBLER_ARM64_H_ |
OLD | NEW |