| 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 511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 522 lock(); | 522 lock(); |
| 523 cmpxchgl(address, reg); | 523 cmpxchgl(address, reg); |
| 524 } | 524 } |
| 525 | 525 |
| 526 void EnterFrame(intptr_t frame_space); | 526 void EnterFrame(intptr_t frame_space); |
| 527 void LeaveFrame(); | 527 void LeaveFrame(); |
| 528 | 528 |
| 529 void CallRuntime(const RuntimeEntry& entry); | 529 void CallRuntime(const RuntimeEntry& entry); |
| 530 | 530 |
| 531 /* | 531 /* |
| 532 * Loading and comparing classes of objects | 532 * Loading and comparing classes of objects. |
| 533 */ | 533 */ |
| 534 void LoadClassOfObject(Register result, Register object, Register scratch); | 534 void LoadClassId(Register result, Register object); |
| 535 | 535 |
| 536 void LoadClassIndexOfObject(Register result, Register object); | 536 void LoadClass(Register result, Register object, Register scratch); |
| 537 | 537 |
| 538 void CompareClassOfObject(Register object, | 538 void CompareClassId(Register object, |
| 539 const Class& clazz, | 539 intptr_t class_id, |
| 540 Register scratch); | 540 Register scratch); |
| 541 | 541 |
| 542 /* | 542 /* |
| 543 * Misc. functionality | 543 * Misc. functionality |
| 544 */ | 544 */ |
| 545 void SmiTag(Register reg) { | 545 void SmiTag(Register reg) { |
| 546 addl(reg, reg); | 546 addl(reg, reg); |
| 547 } | 547 } |
| 548 | 548 |
| 549 void SmiUntag(Register reg) { | 549 void SmiUntag(Register reg) { |
| 550 sarl(reg, Immediate(kSmiTagSize)); | 550 sarl(reg, Immediate(kSmiTagSize)); |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 644 } | 644 } |
| 645 | 645 |
| 646 | 646 |
| 647 inline void Assembler::EmitOperandSizeOverride() { | 647 inline void Assembler::EmitOperandSizeOverride() { |
| 648 EmitUint8(0x66); | 648 EmitUint8(0x66); |
| 649 } | 649 } |
| 650 | 650 |
| 651 } // namespace dart | 651 } // namespace dart |
| 652 | 652 |
| 653 #endif // VM_ASSEMBLER_IA32_H_ | 653 #endif // VM_ASSEMBLER_IA32_H_ |
| OLD | NEW |