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 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
486 // Jump if register contain a non-smi. | 486 // Jump if register contain a non-smi. |
487 inline void JumpIfNotSmi(Register value, | 487 inline void JumpIfNotSmi(Register value, |
488 Label* not_smi_label, | 488 Label* not_smi_label, |
489 Label::Distance distance = Label::kFar) { | 489 Label::Distance distance = Label::kFar) { |
490 test(value, Immediate(kSmiTagMask)); | 490 test(value, Immediate(kSmiTagMask)); |
491 j(not_zero, not_smi_label, distance); | 491 j(not_zero, not_smi_label, distance); |
492 } | 492 } |
493 | 493 |
494 void LoadInstanceDescriptors(Register map, Register descriptors); | 494 void LoadInstanceDescriptors(Register map, Register descriptors); |
495 void EnumLength(Register dst, Register map); | 495 void EnumLength(Register dst, Register map); |
| 496 void NumberOfOwnDescriptors(Register dst, Register map); |
496 | 497 |
497 template<typename Field> | 498 template<typename Field> |
498 void DecodeField(Register reg) { | 499 void DecodeField(Register reg) { |
499 static const int full_shift = Field::kShift + kSmiTagSize; | 500 static const int shift = Field::kShift; |
500 static const int low_mask = Field::kMask >> Field::kShift; | 501 static const int mask = (Field::kMask >> Field::kShift) << kSmiTagSize; |
501 sar(reg, full_shift); | 502 sar(reg, shift); |
502 and_(reg, Immediate(low_mask)); | 503 and_(reg, Immediate(mask)); |
503 } | 504 } |
504 void LoadPowerOf2(XMMRegister dst, Register scratch, int power); | 505 void LoadPowerOf2(XMMRegister dst, Register scratch, int power); |
505 | 506 |
506 // Abort execution if argument is not a number. Used in debug code. | 507 // Abort execution if argument is not a number. Used in debug code. |
507 void AbortIfNotNumber(Register object); | 508 void AbortIfNotNumber(Register object); |
508 | 509 |
509 // Abort execution if argument is not a smi. Used in debug code. | 510 // Abort execution if argument is not a smi. Used in debug code. |
510 void AbortIfNotSmi(Register object); | 511 void AbortIfNotSmi(Register object); |
511 | 512 |
512 // Abort execution if argument is a smi. Used in debug code. | 513 // Abort execution if argument is a smi. Used in debug code. |
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
997 } \ | 998 } \ |
998 masm-> | 999 masm-> |
999 #else | 1000 #else |
1000 #define ACCESS_MASM(masm) masm-> | 1001 #define ACCESS_MASM(masm) masm-> |
1001 #endif | 1002 #endif |
1002 | 1003 |
1003 | 1004 |
1004 } } // namespace v8::internal | 1005 } } // namespace v8::internal |
1005 | 1006 |
1006 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 1007 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
OLD | NEW |