| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef VM_ASSEMBLER_IA32_H_ | 5 #ifndef VM_ASSEMBLER_IA32_H_ |
| 6 #define VM_ASSEMBLER_IA32_H_ | 6 #define VM_ASSEMBLER_IA32_H_ |
| 7 | 7 |
| 8 #ifndef VM_ASSEMBLER_H_ | 8 #ifndef VM_ASSEMBLER_H_ |
| 9 #error Do not include assembler_ia32.h directly; use assembler.h instead. | 9 #error Do not include assembler_ia32.h directly; use assembler.h instead. |
| 10 #endif | 10 #endif |
| (...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 538 | 538 |
| 539 /* | 539 /* |
| 540 * Loading and comparing classes of objects. | 540 * Loading and comparing classes of objects. |
| 541 */ | 541 */ |
| 542 void LoadClassId(Register result, Register object); | 542 void LoadClassId(Register result, Register object); |
| 543 | 543 |
| 544 void LoadClassById(Register result, Register class_id); | 544 void LoadClassById(Register result, Register class_id); |
| 545 | 545 |
| 546 void LoadClass(Register result, Register object, Register scratch); | 546 void LoadClass(Register result, Register object, Register scratch); |
| 547 | 547 |
| 548 void CompareClassId(Register object, | 548 void CompareClassId(Register object, intptr_t class_id, Register scratch); |
| 549 intptr_t class_id, | |
| 550 Register scratch); | |
| 551 | 549 |
| 552 /* | 550 /* |
| 553 * Misc. functionality | 551 * Misc. functionality |
| 554 */ | 552 */ |
| 555 void SmiTag(Register reg) { | 553 void SmiTag(Register reg) { |
| 556 addl(reg, reg); | 554 addl(reg, reg); |
| 557 } | 555 } |
| 558 | 556 |
| 559 void SmiUntag(Register reg) { | 557 void SmiUntag(Register reg) { |
| 560 sarl(reg, Immediate(kSmiTagSize)); | 558 sarl(reg, Immediate(kSmiTagSize)); |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 654 } | 652 } |
| 655 | 653 |
| 656 | 654 |
| 657 inline void Assembler::EmitOperandSizeOverride() { | 655 inline void Assembler::EmitOperandSizeOverride() { |
| 658 EmitUint8(0x66); | 656 EmitUint8(0x66); |
| 659 } | 657 } |
| 660 | 658 |
| 661 } // namespace dart | 659 } // namespace dart |
| 662 | 660 |
| 663 #endif // VM_ASSEMBLER_IA32_H_ | 661 #endif // VM_ASSEMBLER_IA32_H_ |
| OLD | NEW |