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

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

Issue 266633007: Merge ConstantInstr -> UnboxDouble to UnboxedConstant. Reduces register usage and allows for variou… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 7 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
« no previous file with comments | « no previous file | runtime/vm/flow_graph_builder.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 673 matching lines...) Expand 10 before | Expand all | Expand 10 after
684 void LoadImmediate(const Address& dst, const Immediate& imm, Register pp); 684 void LoadImmediate(const Address& dst, const Immediate& imm, Register pp);
685 void LoadObject(Register dst, const Object& obj, Register pp); 685 void LoadObject(Register dst, const Object& obj, Register pp);
686 void JmpPatchable(const ExternalLabel* label, Register pp); 686 void JmpPatchable(const ExternalLabel* label, Register pp);
687 void Jmp(const ExternalLabel* label, Register pp); 687 void Jmp(const ExternalLabel* label, Register pp);
688 void J(Condition condition, const ExternalLabel* label, Register pp); 688 void J(Condition condition, const ExternalLabel* label, Register pp);
689 void CallPatchable(const ExternalLabel* label); 689 void CallPatchable(const ExternalLabel* label);
690 void Call(const ExternalLabel* label, Register pp); 690 void Call(const ExternalLabel* label, Register pp);
691 void StoreObject(const Address& dst, const Object& obj, Register pp); 691 void StoreObject(const Address& dst, const Object& obj, Register pp);
692 void PushObject(const Object& object, Register pp); 692 void PushObject(const Object& object, Register pp);
693 void CompareObject(Register reg, const Object& object, Register pp); 693 void CompareObject(Register reg, const Object& object, Register pp);
694 void LoadDoubleConstant(XmmRegister dst, double value);
695 694
696 // Destroys value. 695 // Destroys value.
697 void StoreIntoObject(Register object, // Object we are storing into. 696 void StoreIntoObject(Register object, // Object we are storing into.
698 const Address& dest, // Where we are storing into. 697 const Address& dest, // Where we are storing into.
699 Register value, // Value we are storing. 698 Register value, // Value we are storing.
700 bool can_value_be_smi = true); 699 bool can_value_be_smi = true);
701 700
702 void StoreIntoObjectNoBarrier(Register object, 701 void StoreIntoObjectNoBarrier(Register object,
703 const Address& dest, 702 const Address& dest,
704 Register value); 703 Register value);
(...skipping 11 matching lines...) Expand all
716 void EnterFrame(intptr_t frame_space); 715 void EnterFrame(intptr_t frame_space);
717 void LeaveFrame(); 716 void LeaveFrame();
718 void ReserveAlignedFrameSpace(intptr_t frame_space); 717 void ReserveAlignedFrameSpace(intptr_t frame_space);
719 718
720 // Create a frame for calling into runtime that preserves all volatile 719 // Create a frame for calling into runtime that preserves all volatile
721 // registers. Frame's RSP is guaranteed to be correctly aligned and 720 // registers. Frame's RSP is guaranteed to be correctly aligned and
722 // frame_space bytes are reserved under it. 721 // frame_space bytes are reserved under it.
723 void EnterCallRuntimeFrame(intptr_t frame_space); 722 void EnterCallRuntimeFrame(intptr_t frame_space);
724 void LeaveCallRuntimeFrame(); 723 void LeaveCallRuntimeFrame();
725 724
726
727 void CallRuntime(const RuntimeEntry& entry, intptr_t argument_count); 725 void CallRuntime(const RuntimeEntry& entry, intptr_t argument_count);
728 726
729 /* 727 /*
730 * Loading and comparing classes of objects. 728 * Loading and comparing classes of objects.
731 */ 729 */
732 void LoadClassId(Register result, Register object); 730 void LoadClassId(Register result, Register object);
733 731
734 void LoadClassById(Register result, Register class_id); 732 void LoadClassById(Register result, Register class_id);
735 733
736 void LoadClass(Register result, Register object); 734 void LoadClass(Register result, Register object);
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
1065 } 1063 }
1066 1064
1067 1065
1068 inline void Assembler::EmitOperandSizeOverride() { 1066 inline void Assembler::EmitOperandSizeOverride() {
1069 EmitUint8(0x66); 1067 EmitUint8(0x66);
1070 } 1068 }
1071 1069
1072 } // namespace dart 1070 } // namespace dart
1073 1071
1074 #endif // VM_ASSEMBLER_X64_H_ 1072 #endif // VM_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/flow_graph_builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698