| 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_IA32_MACRO_ASSEMBLER_IA32_H_ | 5 #ifndef V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
| 6 #define V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 6 #define V8_IA32_MACRO_ASSEMBLER_IA32_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 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 488 j(not_zero, not_smi_label, distance); | 488 j(not_zero, not_smi_label, distance); |
| 489 } | 489 } |
| 490 | 490 |
| 491 void LoadInstanceDescriptors(Register map, Register descriptors); | 491 void LoadInstanceDescriptors(Register map, Register descriptors); |
| 492 void EnumLength(Register dst, Register map); | 492 void EnumLength(Register dst, Register map); |
| 493 void NumberOfOwnDescriptors(Register dst, Register map); | 493 void NumberOfOwnDescriptors(Register dst, Register map); |
| 494 | 494 |
| 495 template<typename Field> | 495 template<typename Field> |
| 496 void DecodeField(Register reg) { | 496 void DecodeField(Register reg) { |
| 497 static const int shift = Field::kShift; | 497 static const int shift = Field::kShift; |
| 498 static const int mask = Field::kMask >> Field::kShift; | 498 static const int mask = (Field::kMask >> Field::kShift) << kSmiTagSize; |
| 499 sar(reg, shift); | 499 sar(reg, shift); |
| 500 and_(reg, Immediate(mask)); | 500 and_(reg, Immediate(mask)); |
| 501 } | 501 } |
| 502 void LoadPowerOf2(XMMRegister dst, Register scratch, int power); | 502 void LoadPowerOf2(XMMRegister dst, Register scratch, int power); |
| 503 | 503 |
| 504 // Abort execution if argument is not a number, enabled via --debug-code. | 504 // Abort execution if argument is not a number, enabled via --debug-code. |
| 505 void AssertNumber(Register object); | 505 void AssertNumber(Register object); |
| 506 | 506 |
| 507 // Abort execution if argument is not a smi, enabled via --debug-code. | 507 // Abort execution if argument is not a smi, enabled via --debug-code. |
| 508 void AssertSmi(Register object); | 508 void AssertSmi(Register object); |
| (...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1082 } \ | 1082 } \ |
| 1083 masm-> | 1083 masm-> |
| 1084 #else | 1084 #else |
| 1085 #define ACCESS_MASM(masm) masm-> | 1085 #define ACCESS_MASM(masm) masm-> |
| 1086 #endif | 1086 #endif |
| 1087 | 1087 |
| 1088 | 1088 |
| 1089 } } // namespace v8::internal | 1089 } } // namespace v8::internal |
| 1090 | 1090 |
| 1091 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 1091 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
| OLD | NEW |