| 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 1009 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1020 | 1020 |
| 1021 void LoadInstanceDescriptors(Register map, Register descriptors); | 1021 void LoadInstanceDescriptors(Register map, Register descriptors); |
| 1022 void EnumLength(Register dst, Register map); | 1022 void EnumLength(Register dst, Register map); |
| 1023 void NumberOfOwnDescriptors(Register dst, Register map); | 1023 void NumberOfOwnDescriptors(Register dst, Register map); |
| 1024 | 1024 |
| 1025 template<typename Field> | 1025 template<typename Field> |
| 1026 void DecodeField(Register reg) { | 1026 void DecodeField(Register reg) { |
| 1027 static const int shift = Field::kShift + kSmiShift; | 1027 static const int shift = Field::kShift + kSmiShift; |
| 1028 static const int mask = Field::kMask >> Field::kShift; | 1028 static const int mask = Field::kMask >> Field::kShift; |
| 1029 shr(reg, Immediate(shift)); | 1029 shr(reg, Immediate(shift)); |
| 1030 and_(reg, Immediate(mask)); | 1030 andp(reg, Immediate(mask)); |
| 1031 shl(reg, Immediate(kSmiShift)); | 1031 shl(reg, Immediate(kSmiShift)); |
| 1032 } | 1032 } |
| 1033 | 1033 |
| 1034 // Abort execution if argument is not a number, enabled via --debug-code. | 1034 // Abort execution if argument is not a number, enabled via --debug-code. |
| 1035 void AssertNumber(Register object); | 1035 void AssertNumber(Register object); |
| 1036 | 1036 |
| 1037 // Abort execution if argument is a smi, enabled via --debug-code. | 1037 // Abort execution if argument is a smi, enabled via --debug-code. |
| 1038 void AssertNotSmi(Register object); | 1038 void AssertNotSmi(Register object); |
| 1039 | 1039 |
| 1040 // Abort execution if argument is not a smi, enabled via --debug-code. | 1040 // Abort execution if argument is not a smi, enabled via --debug-code. |
| (...skipping 578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1619 masm->popfq(); \ | 1619 masm->popfq(); \ |
| 1620 } \ | 1620 } \ |
| 1621 masm-> | 1621 masm-> |
| 1622 #else | 1622 #else |
| 1623 #define ACCESS_MASM(masm) masm-> | 1623 #define ACCESS_MASM(masm) masm-> |
| 1624 #endif | 1624 #endif |
| 1625 | 1625 |
| 1626 } } // namespace v8::internal | 1626 } } // namespace v8::internal |
| 1627 | 1627 |
| 1628 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1628 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
| OLD | NEW |