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

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

Issue 313083008: Add LoadTaggedClassIdMayBeSmi to assembly and improve performance of inline cache stubs. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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
« no previous file with comments | « runtime/vm/assembler_mips.cc ('k') | runtime/vm/assembler_x64.cc » ('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 719 matching lines...) Expand 10 before | Expand all | Expand 10 after
730 * Loading and comparing classes of objects. 730 * Loading and comparing classes of objects.
731 */ 731 */
732 void LoadClassId(Register result, Register object); 732 void LoadClassId(Register result, Register object);
733 733
734 void LoadClassById(Register result, Register class_id); 734 void LoadClassById(Register result, Register class_id);
735 735
736 void LoadClass(Register result, Register object); 736 void LoadClass(Register result, Register object);
737 737
738 void CompareClassId(Register object, intptr_t class_id); 738 void CompareClassId(Register object, intptr_t class_id);
739 739
740 void LoadTaggedClassIdMayBeSmi(Register result, Register object);
741
740 /* 742 /*
741 * Misc. functionality. 743 * Misc. functionality.
742 */ 744 */
743 void SmiTag(Register reg) { 745 void SmiTag(Register reg) {
744 addq(reg, reg); 746 addq(reg, reg);
745 } 747 }
746 748
747 void SmiUntag(Register reg) { 749 void SmiUntag(Register reg) {
748 sarq(reg, Immediate(kSmiTagSize)); 750 sarq(reg, Immediate(kSmiTagSize));
749 } 751 }
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
1065 } 1067 }
1066 1068
1067 1069
1068 inline void Assembler::EmitOperandSizeOverride() { 1070 inline void Assembler::EmitOperandSizeOverride() {
1069 EmitUint8(0x66); 1071 EmitUint8(0x66);
1070 } 1072 }
1071 1073
1072 } // namespace dart 1074 } // namespace dart
1073 1075
1074 #endif // VM_ASSEMBLER_X64_H_ 1076 #endif // VM_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « runtime/vm/assembler_mips.cc ('k') | runtime/vm/assembler_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698