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 927 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
938 void FCmp(); | 938 void FCmp(); |
939 | 939 |
940 void ClampUint8(Register reg); | 940 void ClampUint8(Register reg); |
941 | 941 |
942 void ClampDoubleToUint8(XMMRegister input_reg, | 942 void ClampDoubleToUint8(XMMRegister input_reg, |
943 XMMRegister temp_xmm_reg, | 943 XMMRegister temp_xmm_reg, |
944 Register result_reg, | 944 Register result_reg, |
945 Register temp_reg); | 945 Register temp_reg); |
946 | 946 |
947 void LoadInstanceDescriptors(Register map, Register descriptors); | 947 void LoadInstanceDescriptors(Register map, Register descriptors); |
| 948 void EnumLength(Register dst, Register map); |
| 949 |
| 950 template<typename Field> |
| 951 void DecodeField(Register reg) { |
| 952 static const int full_shift = Field::kShift + kSmiShift; |
| 953 static const int low_mask = Field::kMask >> Field::kShift; |
| 954 shr(reg, Immediate(full_shift)); |
| 955 and_(reg, Immediate(low_mask)); |
| 956 } |
948 | 957 |
949 // Abort execution if argument is not a number. Used in debug code. | 958 // Abort execution if argument is not a number. Used in debug code. |
950 void AbortIfNotNumber(Register object); | 959 void AbortIfNotNumber(Register object); |
951 | 960 |
952 // Abort execution if argument is a smi. Used in debug code. | 961 // Abort execution if argument is a smi. Used in debug code. |
953 void AbortIfSmi(Register object); | 962 void AbortIfSmi(Register object); |
954 | 963 |
955 // Abort execution if argument is not a smi. Used in debug code. | 964 // Abort execution if argument is not a smi. Used in debug code. |
956 void AbortIfNotSmi(Register object); | 965 void AbortIfNotSmi(Register object); |
957 void AbortIfNotSmi(const Operand& object); | 966 void AbortIfNotSmi(const Operand& object); |
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1480 masm->popfd(); \ | 1489 masm->popfd(); \ |
1481 } \ | 1490 } \ |
1482 masm-> | 1491 masm-> |
1483 #else | 1492 #else |
1484 #define ACCESS_MASM(masm) masm-> | 1493 #define ACCESS_MASM(masm) masm-> |
1485 #endif | 1494 #endif |
1486 | 1495 |
1487 } } // namespace v8::internal | 1496 } } // namespace v8::internal |
1488 | 1497 |
1489 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1498 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
OLD | NEW |