Chromium Code Reviews| 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_X64_H_ | 5 #ifndef VM_ASSEMBLER_X64_H_ |
| 6 #define VM_ASSEMBLER_X64_H_ | 6 #define VM_ASSEMBLER_X64_H_ |
| 7 | 7 |
| 8 #ifndef VM_ASSEMBLER_H_ | 8 #ifndef VM_ASSEMBLER_H_ |
| 9 #error Do not include assembler_x64.h directly; use assembler.h instead. | 9 #error Do not include assembler_x64.h directly; use assembler.h instead. |
| 10 #endif | 10 #endif |
| (...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 512 lock(); | 512 lock(); |
| 513 cmpxchgl(address, reg); | 513 cmpxchgl(address, reg); |
| 514 } | 514 } |
| 515 | 515 |
| 516 void EnterFrame(intptr_t frame_space); | 516 void EnterFrame(intptr_t frame_space); |
| 517 void LeaveFrame(); | 517 void LeaveFrame(); |
| 518 | 518 |
| 519 void CallRuntime(const RuntimeEntry& entry); | 519 void CallRuntime(const RuntimeEntry& entry); |
| 520 | 520 |
| 521 /* | 521 /* |
| 522 * Loading and comparing classes of objects. | |
| 523 */ | |
| 524 void LoadClassIndexOfObject(Register result, Register object); | |
|
Ivan Posva
2012/05/30 17:13:42
How about?
LoadClassId(Register result, Register o
Vyacheslav Egorov (Google)
2012/05/30 17:29:57
I am using name "class index" for consistency. It
Ivan Posva
2012/05/30 18:00:30
I can change the use of index to id in other areas
| |
| 525 | |
| 526 void LoadClassByIndex(Register result, Register class_index); | |
|
Ivan Posva
2012/05/30 17:13:42
LoadClassById
| |
| 527 | |
| 528 void LoadClassOfObject(Register result, Register object, Register scratch); | |
|
Ivan Posva
2012/05/30 17:13:42
LoadClass? Might be a bit too generic, better sugg
| |
| 529 | |
| 530 void CompareClassOfObject(Register object, | |
|
Ivan Posva
2012/05/30 17:13:42
How about renaming this to:
CompareClassId(Registe
Vyacheslav Egorov (Google)
2012/05/30 17:29:57
But it does not accept index. It is implementation
Ivan Posva
2012/05/30 18:00:30
Understand the consistency argument about passing
| |
| 531 const Class& clazz, | |
| 532 Register scratch); | |
| 533 | |
| 534 /* | |
| 522 * Misc. functionality. | 535 * Misc. functionality. |
| 523 */ | 536 */ |
| 524 void SmiTag(Register reg) { | 537 void SmiTag(Register reg) { |
| 525 addq(reg, reg); | 538 addq(reg, reg); |
| 526 } | 539 } |
| 527 | 540 |
| 528 void SmiUntag(Register reg) { | 541 void SmiUntag(Register reg) { |
| 529 sarq(reg, Immediate(kSmiTagSize)); | 542 sarq(reg, Immediate(kSmiTagSize)); |
| 530 } | 543 } |
| 531 | 544 |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 636 } | 649 } |
| 637 | 650 |
| 638 | 651 |
| 639 inline void Assembler::EmitOperandSizeOverride() { | 652 inline void Assembler::EmitOperandSizeOverride() { |
| 640 EmitUint8(0x66); | 653 EmitUint8(0x66); |
| 641 } | 654 } |
| 642 | 655 |
| 643 } // namespace dart | 656 } // namespace dart |
| 644 | 657 |
| 645 #endif // VM_ASSEMBLER_X64_H_ | 658 #endif // VM_ASSEMBLER_X64_H_ |
| OLD | NEW |