OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 931 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
942 | 942 |
943 void ClampDoubleToUint8(XMMRegister input_reg, | 943 void ClampDoubleToUint8(XMMRegister input_reg, |
944 XMMRegister temp_xmm_reg, | 944 XMMRegister temp_xmm_reg, |
945 Register result_reg, | 945 Register result_reg, |
946 Register temp_reg); | 946 Register temp_reg); |
947 | 947 |
948 void LoadUint32(XMMRegister dst, Register src, XMMRegister scratch); | 948 void LoadUint32(XMMRegister dst, Register src, XMMRegister scratch); |
949 | 949 |
950 void LoadInstanceDescriptors(Register map, Register descriptors); | 950 void LoadInstanceDescriptors(Register map, Register descriptors); |
951 void EnumLength(Register dst, Register map); | 951 void EnumLength(Register dst, Register map); |
| 952 void NumberOfOwnDescriptors(Register dst, Register map); |
952 | 953 |
953 template<typename Field> | 954 template<typename Field> |
954 void DecodeField(Register reg) { | 955 void DecodeField(Register reg) { |
955 static const int full_shift = Field::kShift + kSmiShift; | 956 static const int shift = Field::kShift + kSmiShift; |
956 static const int low_mask = Field::kMask >> Field::kShift; | 957 static const int mask = Field::kMask >> Field::kShift; |
957 shr(reg, Immediate(full_shift)); | 958 shr(reg, Immediate(shift)); |
958 and_(reg, Immediate(low_mask)); | 959 and_(reg, Immediate(mask)); |
| 960 shl(reg, Immediate(kSmiShift)); |
959 } | 961 } |
960 | 962 |
961 // Abort execution if argument is not a number. Used in debug code. | 963 // Abort execution if argument is not a number. Used in debug code. |
962 void AbortIfNotNumber(Register object); | 964 void AbortIfNotNumber(Register object); |
963 | 965 |
964 // Abort execution if argument is a smi. Used in debug code. | 966 // Abort execution if argument is a smi. Used in debug code. |
965 void AbortIfSmi(Register object); | 967 void AbortIfSmi(Register object); |
966 | 968 |
967 // Abort execution if argument is not a smi. Used in debug code. | 969 // Abort execution if argument is not a smi. Used in debug code. |
968 void AbortIfNotSmi(Register object); | 970 void AbortIfNotSmi(Register object); |
(...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1494 masm->popfd(); \ | 1496 masm->popfd(); \ |
1495 } \ | 1497 } \ |
1496 masm-> | 1498 masm-> |
1497 #else | 1499 #else |
1498 #define ACCESS_MASM(masm) masm-> | 1500 #define ACCESS_MASM(masm) masm-> |
1499 #endif | 1501 #endif |
1500 | 1502 |
1501 } } // namespace v8::internal | 1503 } } // namespace v8::internal |
1502 | 1504 |
1503 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1505 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
OLD | NEW |