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/bailout-reason.h" | 10 #include "src/bailout-reason.h" |
(...skipping 868 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
879 void LoadInstanceDescriptors(Register map, | 879 void LoadInstanceDescriptors(Register map, |
880 Register descriptors); | 880 Register descriptors); |
881 void EnumLengthUntagged(Register dst, Register map); | 881 void EnumLengthUntagged(Register dst, Register map); |
882 void EnumLengthSmi(Register dst, Register map); | 882 void EnumLengthSmi(Register dst, Register map); |
883 void NumberOfOwnDescriptors(Register dst, Register map); | 883 void NumberOfOwnDescriptors(Register dst, Register map); |
884 void LoadAccessor(Register dst, Register holder, int accessor_index, | 884 void LoadAccessor(Register dst, Register holder, int accessor_index, |
885 AccessorComponent accessor); | 885 AccessorComponent accessor); |
886 | 886 |
887 template<typename Field> | 887 template<typename Field> |
888 void DecodeField(Register dst, Register src) { | 888 void DecodeField(Register dst, Register src) { |
889 static const uint64_t shift = Field::kShift; | 889 static const int shift = Field::kShift; |
890 static const uint64_t setbits = CountSetBits(Field::kMask, 32); | 890 static const int setbits = CountSetBits(Field::kMask, 32); |
891 Ubfx(dst, src, shift, setbits); | 891 Ubfx(dst, src, shift, setbits); |
892 } | 892 } |
893 | 893 |
894 template<typename Field> | 894 template<typename Field> |
895 void DecodeField(Register reg) { | 895 void DecodeField(Register reg) { |
896 DecodeField<Field>(reg, reg); | 896 DecodeField<Field>(reg, reg); |
897 } | 897 } |
898 | 898 |
899 // ---- SMI and Number Utilities ---- | 899 // ---- SMI and Number Utilities ---- |
900 | 900 |
(...skipping 1397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2298 #error "Unsupported option" | 2298 #error "Unsupported option" |
2299 #define CODE_COVERAGE_STRINGIFY(x) #x | 2299 #define CODE_COVERAGE_STRINGIFY(x) #x |
2300 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) | 2300 #define CODE_COVERAGE_TOSTRING(x) CODE_COVERAGE_STRINGIFY(x) |
2301 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 2301 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
2302 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 2302 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
2303 #else | 2303 #else |
2304 #define ACCESS_MASM(masm) masm-> | 2304 #define ACCESS_MASM(masm) masm-> |
2305 #endif | 2305 #endif |
2306 | 2306 |
2307 #endif // V8_ARM64_MACRO_ASSEMBLER_ARM64_H_ | 2307 #endif // V8_ARM64_MACRO_ASSEMBLER_ARM64_H_ |
OLD | NEW |