Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(159)

Side by Side Diff: runtime/vm/assembler_x64.h

Issue 10543013: More code for ia32, more shared code. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 473 matching lines...) Expand 10 before | Expand all | Expand 10 after
484 cmpxchgl(address, reg); 484 cmpxchgl(address, reg);
485 } 485 }
486 486
487 void cmpxchgq(const Address& address, Register reg); 487 void cmpxchgq(const Address& address, Register reg);
488 void lock_cmpxchgq(const Address& address, Register reg) { 488 void lock_cmpxchgq(const Address& address, Register reg) {
489 lock(); 489 lock();
490 cmpxchgq(address, reg); 490 cmpxchgq(address, reg);
491 } 491 }
492 492
493 /* 493 /*
494 * Macros for High-level operations. 494 * Macros for High-level operations and implemented on all architectures.
495 */ 495 */
496
497 void CompareRegisters(Register a, Register b);
498
499 // Issues a move instruction if 'to' is not the same as 'from'.
500 void MoveRegister(Register to, Register from);
501
496 void AddImmediate(Register reg, const Immediate& imm); 502 void AddImmediate(Register reg, const Immediate& imm);
497 503
498 void Drop(intptr_t stack_elements); 504 void Drop(intptr_t stack_elements);
499 505
500 void LoadObject(Register dst, const Object& object); 506 void LoadObject(Register dst, const Object& object);
501 void PushObject(const Object& object); 507 void PushObject(const Object& object);
502 void CompareObject(Register reg, const Object& object); 508 void CompareObject(Register reg, const Object& object);
503 void LoadDoubleConstant(XmmRegister dst, double value); 509 void LoadDoubleConstant(XmmRegister dst, double value);
504 510
505 void StoreIntoObject(Register object, // Object we are storing into. 511 void StoreIntoObject(Register object, // Object we are storing into.
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
650 } 656 }
651 657
652 658
653 inline void Assembler::EmitOperandSizeOverride() { 659 inline void Assembler::EmitOperandSizeOverride() {
654 EmitUint8(0x66); 660 EmitUint8(0x66);
655 } 661 }
656 662
657 } // namespace dart 663 } // namespace dart
658 664
659 #endif // VM_ASSEMBLER_X64_H_ 665 #endif // VM_ASSEMBLER_X64_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698