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 499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 510 | 510 |
| 511 void LoadObject(Register dst, const Object& object); | 511 void LoadObject(Register dst, const Object& object); |
| 512 void PushObject(const Object& object); | 512 void PushObject(const Object& object); |
| 513 void CompareObject(Register reg, const Object& object); | 513 void CompareObject(Register reg, const Object& object); |
| 514 void LoadDoubleConstant(XmmRegister dst, double value); | 514 void LoadDoubleConstant(XmmRegister dst, double value); |
| 515 | 515 |
| 516 void StoreIntoObject(Register object, // Object we are storing into. | 516 void StoreIntoObject(Register object, // Object we are storing into. |
| 517 const FieldAddress& dest, // Where we are storing into. | 517 const FieldAddress& dest, // Where we are storing into. |
| 518 Register value); // Value we are storing. | 518 Register value); // Value we are storing. |
| 519 | 519 |
| 520 void StoreIntoObjectNoBarrier(Register object, | |
| 521 const FieldAddress& dest, | |
| 522 Register value); | |
| 523 void StoreIntoObjectNoBarrier(Register object, | |
| 524 const FieldAddress& dest, | |
| 525 const Object& value); | |
|
siva
2012/06/20 23:33:28
This method doesn't seem to be implemented in the
Ivan Posva
2012/06/20 23:48:01
I am waiting for a use of this and then we can imp
| |
| 526 | |
| 520 void DoubleNegate(XmmRegister d); | 527 void DoubleNegate(XmmRegister d); |
| 521 void FloatNegate(XmmRegister f); | 528 void FloatNegate(XmmRegister f); |
| 522 | 529 |
| 523 void DoubleAbs(XmmRegister reg); | 530 void DoubleAbs(XmmRegister reg); |
| 524 | 531 |
| 525 void LockCmpxchgl(const Address& address, Register reg) { | 532 void LockCmpxchgl(const Address& address, Register reg) { |
| 526 lock(); | 533 lock(); |
| 527 cmpxchgl(address, reg); | 534 cmpxchgl(address, reg); |
| 528 } | 535 } |
| 529 | 536 |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 615 void EmitOperand(int rm, const Operand& operand); | 622 void EmitOperand(int rm, const Operand& operand); |
| 616 void EmitImmediate(const Immediate& imm); | 623 void EmitImmediate(const Immediate& imm); |
| 617 void EmitComplex(int rm, const Operand& operand, const Immediate& immediate); | 624 void EmitComplex(int rm, const Operand& operand, const Immediate& immediate); |
| 618 void EmitLabel(Label* label, int instruction_size); | 625 void EmitLabel(Label* label, int instruction_size); |
| 619 void EmitLabelLink(Label* label); | 626 void EmitLabelLink(Label* label); |
| 620 void EmitNearLabelLink(Label* label); | 627 void EmitNearLabelLink(Label* label); |
| 621 | 628 |
| 622 void EmitGenericShift(bool wide, int rm, Register reg, const Immediate& imm); | 629 void EmitGenericShift(bool wide, int rm, Register reg, const Immediate& imm); |
| 623 void EmitGenericShift(bool wide, int rm, Register operand, Register shifter); | 630 void EmitGenericShift(bool wide, int rm, Register operand, Register shifter); |
| 624 | 631 |
| 632 void StoreIntoObjectFilter(Register object, Register value, Label* no_update); | |
| 633 | |
| 625 DISALLOW_ALLOCATION(); | 634 DISALLOW_ALLOCATION(); |
| 626 DISALLOW_COPY_AND_ASSIGN(Assembler); | 635 DISALLOW_COPY_AND_ASSIGN(Assembler); |
| 627 }; | 636 }; |
| 628 | 637 |
| 629 | 638 |
| 630 inline void Assembler::EmitUint8(uint8_t value) { | 639 inline void Assembler::EmitUint8(uint8_t value) { |
| 631 buffer_.Emit<uint8_t>(value); | 640 buffer_.Emit<uint8_t>(value); |
| 632 } | 641 } |
| 633 | 642 |
| 634 | 643 |
| (...skipping 27 matching lines...) Expand all Loading... | |
| 662 } | 671 } |
| 663 | 672 |
| 664 | 673 |
| 665 inline void Assembler::EmitOperandSizeOverride() { | 674 inline void Assembler::EmitOperandSizeOverride() { |
| 666 EmitUint8(0x66); | 675 EmitUint8(0x66); |
| 667 } | 676 } |
| 668 | 677 |
| 669 } // namespace dart | 678 } // namespace dart |
| 670 | 679 |
| 671 #endif // VM_ASSEMBLER_X64_H_ | 680 #endif // VM_ASSEMBLER_X64_H_ |
| OLD | NEW |