| 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_X87_MACRO_ASSEMBLER_X87_H_ | 5 #ifndef V8_X87_MACRO_ASSEMBLER_X87_H_ |
| 6 #define V8_X87_MACRO_ASSEMBLER_X87_H_ | 6 #define V8_X87_MACRO_ASSEMBLER_X87_H_ |
| 7 | 7 |
| 8 #include "src/assembler.h" | 8 #include "src/assembler.h" |
| 9 #include "src/bailout-reason.h" | 9 #include "src/bailout-reason.h" |
| 10 #include "src/frames.h" | 10 #include "src/frames.h" |
| (...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 478 inline void JumpIfNotSmi(Register value, | 478 inline void JumpIfNotSmi(Register value, |
| 479 Label* not_smi_label, | 479 Label* not_smi_label, |
| 480 Label::Distance distance = Label::kFar) { | 480 Label::Distance distance = Label::kFar) { |
| 481 test(value, Immediate(kSmiTagMask)); | 481 test(value, Immediate(kSmiTagMask)); |
| 482 j(not_zero, not_smi_label, distance); | 482 j(not_zero, not_smi_label, distance); |
| 483 } | 483 } |
| 484 | 484 |
| 485 void LoadInstanceDescriptors(Register map, Register descriptors); | 485 void LoadInstanceDescriptors(Register map, Register descriptors); |
| 486 void EnumLength(Register dst, Register map); | 486 void EnumLength(Register dst, Register map); |
| 487 void NumberOfOwnDescriptors(Register dst, Register map); | 487 void NumberOfOwnDescriptors(Register dst, Register map); |
| 488 void LoadAccessor(Register dst, Register holder, int accessor_index, |
| 489 AccessorComponent accessor); |
| 488 | 490 |
| 489 template<typename Field> | 491 template<typename Field> |
| 490 void DecodeField(Register reg) { | 492 void DecodeField(Register reg) { |
| 491 static const int shift = Field::kShift; | 493 static const int shift = Field::kShift; |
| 492 static const int mask = Field::kMask >> Field::kShift; | 494 static const int mask = Field::kMask >> Field::kShift; |
| 493 if (shift != 0) { | 495 if (shift != 0) { |
| 494 sar(reg, shift); | 496 sar(reg, shift); |
| 495 } | 497 } |
| 496 and_(reg, Immediate(mask)); | 498 and_(reg, Immediate(mask)); |
| 497 } | 499 } |
| (...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1051 } \ | 1053 } \ |
| 1052 masm-> | 1054 masm-> |
| 1053 #else | 1055 #else |
| 1054 #define ACCESS_MASM(masm) masm-> | 1056 #define ACCESS_MASM(masm) masm-> |
| 1055 #endif | 1057 #endif |
| 1056 | 1058 |
| 1057 | 1059 |
| 1058 } } // namespace v8::internal | 1060 } } // namespace v8::internal |
| 1059 | 1061 |
| 1060 #endif // V8_X87_MACRO_ASSEMBLER_X87_H_ | 1062 #endif // V8_X87_MACRO_ASSEMBLER_X87_H_ |
| OLD | NEW |