OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_X64_MACRO_ASSEMBLER_X64_H_ | 5 #ifndef V8_X64_MACRO_ASSEMBLER_X64_H_ |
6 #define V8_X64_MACRO_ASSEMBLER_X64_H_ | 6 #define V8_X64_MACRO_ASSEMBLER_X64_H_ |
7 | 7 |
8 #include "assembler.h" | 8 #include "assembler.h" |
9 #include "frames.h" | 9 #include "frames.h" |
10 #include "v8globals.h" | 10 #include "v8globals.h" |
(...skipping 993 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1004 Label::Distance dst = Label::kFar); | 1004 Label::Distance dst = Label::kFar); |
1005 | 1005 |
1006 void LoadUint32(XMMRegister dst, Register src, XMMRegister scratch); | 1006 void LoadUint32(XMMRegister dst, Register src, XMMRegister scratch); |
1007 | 1007 |
1008 void LoadInstanceDescriptors(Register map, Register descriptors); | 1008 void LoadInstanceDescriptors(Register map, Register descriptors); |
1009 void EnumLength(Register dst, Register map); | 1009 void EnumLength(Register dst, Register map); |
1010 void NumberOfOwnDescriptors(Register dst, Register map); | 1010 void NumberOfOwnDescriptors(Register dst, Register map); |
1011 | 1011 |
1012 template<typename Field> | 1012 template<typename Field> |
1013 void DecodeField(Register reg) { | 1013 void DecodeField(Register reg) { |
1014 static const int shift = Field::kShift + kSmiShift; | 1014 static const int shift = Field::kShift; |
1015 static const int mask = Field::kMask >> Field::kShift; | 1015 static const int mask = Field::kMask >> Field::kShift; |
1016 shrp(reg, Immediate(shift)); | 1016 shrp(reg, Immediate(shift)); |
1017 andp(reg, Immediate(mask)); | 1017 andp(reg, Immediate(mask)); |
1018 shlp(reg, Immediate(kSmiShift)); | |
1019 } | 1018 } |
1020 | 1019 |
1021 // Abort execution if argument is not a number, enabled via --debug-code. | 1020 // Abort execution if argument is not a number, enabled via --debug-code. |
1022 void AssertNumber(Register object); | 1021 void AssertNumber(Register object); |
1023 | 1022 |
1024 // Abort execution if argument is a smi, enabled via --debug-code. | 1023 // Abort execution if argument is a smi, enabled via --debug-code. |
1025 void AssertNotSmi(Register object); | 1024 void AssertNotSmi(Register object); |
1026 | 1025 |
1027 // Abort execution if argument is not a smi, enabled via --debug-code. | 1026 // Abort execution if argument is not a smi, enabled via --debug-code. |
1028 void AssertSmi(Register object); | 1027 void AssertSmi(Register object); |
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1595 masm->popfq(); \ | 1594 masm->popfq(); \ |
1596 } \ | 1595 } \ |
1597 masm-> | 1596 masm-> |
1598 #else | 1597 #else |
1599 #define ACCESS_MASM(masm) masm-> | 1598 #define ACCESS_MASM(masm) masm-> |
1600 #endif | 1599 #endif |
1601 | 1600 |
1602 } } // namespace v8::internal | 1601 } } // namespace v8::internal |
1603 | 1602 |
1604 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1603 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
OLD | NEW |