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

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

Issue 564843002: Initial steps towards cleaning up integer arithmetic IR. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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) 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_IA32_H_ 5 #ifndef VM_ASSEMBLER_IA32_H_
6 #define VM_ASSEMBLER_IA32_H_ 6 #define VM_ASSEMBLER_IA32_H_
7 7
8 #ifndef VM_ASSEMBLER_H_ 8 #ifndef VM_ASSEMBLER_H_
9 #error Do not include assembler_ia32.h directly; use assembler.h instead. 9 #error Do not include assembler_ia32.h directly; use assembler.h instead.
10 #endif 10 #endif
(...skipping 710 matching lines...) Expand 10 before | Expand all | Expand 10 after
721 addl(reg, reg); 721 addl(reg, reg);
722 } 722 }
723 723
724 void SmiUntag(Register reg) { 724 void SmiUntag(Register reg) {
725 sarl(reg, Immediate(kSmiTagSize)); 725 sarl(reg, Immediate(kSmiTagSize));
726 } 726 }
727 727
728 intptr_t PreferredLoopAlignment() { return 16; } 728 intptr_t PreferredLoopAlignment() { return 16; }
729 void Align(intptr_t alignment, intptr_t offset); 729 void Align(intptr_t alignment, intptr_t offset);
730 void Bind(Label* label); 730 void Bind(Label* label);
731 void Jump(Label* label) { jmp(label); }
731 732
732 intptr_t CodeSize() const { return buffer_.Size(); } 733 intptr_t CodeSize() const { return buffer_.Size(); }
733 intptr_t prologue_offset() const { return prologue_offset_; } 734 intptr_t prologue_offset() const { return prologue_offset_; }
734 735
735 // Count the fixups that produce a pointer offset, without processing 736 // Count the fixups that produce a pointer offset, without processing
736 // the fixups. 737 // the fixups.
737 intptr_t CountPointerOffsets() const { 738 intptr_t CountPointerOffsets() const {
738 return buffer_.CountPointerOffsets(); 739 return buffer_.CountPointerOffsets();
739 } 740 }
740 const ZoneGrowableArray<intptr_t>& GetPointerOffsets() const { 741 const ZoneGrowableArray<intptr_t>& GetPointerOffsets() const {
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
945 } 946 }
946 947
947 948
948 inline void Assembler::EmitOperandSizeOverride() { 949 inline void Assembler::EmitOperandSizeOverride() {
949 EmitUint8(0x66); 950 EmitUint8(0x66);
950 } 951 }
951 952
952 } // namespace dart 953 } // namespace dart
953 954
954 #endif // VM_ASSEMBLER_IA32_H_ 955 #endif // VM_ASSEMBLER_IA32_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698