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

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

Issue 392343002: Cleanup of class id loading sequences. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 5 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_arm64.cc ('k') | runtime/vm/assembler_ia32.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_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 502 matching lines...) Expand 10 before | Expand all | Expand 10 after
513 void fptan(); 513 void fptan();
514 514
515 void xchgl(Register dst, Register src); 515 void xchgl(Register dst, Register src);
516 516
517 void cmpl(Register reg, const Immediate& imm); 517 void cmpl(Register reg, const Immediate& imm);
518 void cmpl(Register reg0, Register reg1); 518 void cmpl(Register reg0, Register reg1);
519 void cmpl(Register reg, const Address& address); 519 void cmpl(Register reg, const Address& address);
520 520
521 void cmpl(const Address& address, Register reg); 521 void cmpl(const Address& address, Register reg);
522 void cmpl(const Address& address, const Immediate& imm); 522 void cmpl(const Address& address, const Immediate& imm);
523 void cmpb(const Address& address, const Immediate& imm);
523 524
524 void testl(Register reg1, Register reg2); 525 void testl(Register reg1, Register reg2);
525 void testl(Register reg, const Immediate& imm); 526 void testl(Register reg, const Immediate& imm);
526 527
527 void andl(Register dst, const Immediate& imm); 528 void andl(Register dst, const Immediate& imm);
528 void andl(Register dst, Register src); 529 void andl(Register dst, Register src);
529 void andl(Register dst, const Address& address); 530 void andl(Register dst, const Address& address);
530 531
531 void orl(Register dst, const Immediate& imm); 532 void orl(Register dst, const Immediate& imm);
532 void orl(Register dst, Register src); 533 void orl(Register dst, Register src);
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
687 */ 688 */
688 void LoadClassId(Register result, Register object); 689 void LoadClassId(Register result, Register object);
689 690
690 void LoadClassById(Register result, Register class_id); 691 void LoadClassById(Register result, Register class_id);
691 692
692 void LoadClass(Register result, Register object, Register scratch); 693 void LoadClass(Register result, Register object, Register scratch);
693 694
694 void CompareClassId(Register object, intptr_t class_id, Register scratch); 695 void CompareClassId(Register object, intptr_t class_id, Register scratch);
695 696
696 void LoadTaggedClassIdMayBeSmi(Register result, 697 void LoadTaggedClassIdMayBeSmi(Register result,
697 Register object, 698 Register object);
698 Register tmp);
699 699
700 /* 700 /*
701 * Misc. functionality 701 * Misc. functionality
702 */ 702 */
703 void SmiTag(Register reg) { 703 void SmiTag(Register reg) {
704 addl(reg, reg); 704 addl(reg, reg);
705 } 705 }
706 706
707 void SmiUntag(Register reg) { 707 void SmiUntag(Register reg) {
708 sarl(reg, Immediate(kSmiTagSize)); 708 sarl(reg, Immediate(kSmiTagSize));
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
904 } 904 }
905 905
906 906
907 inline void Assembler::EmitOperandSizeOverride() { 907 inline void Assembler::EmitOperandSizeOverride() {
908 EmitUint8(0x66); 908 EmitUint8(0x66);
909 } 909 }
910 910
911 } // namespace dart 911 } // namespace dart
912 912
913 #endif // VM_ASSEMBLER_IA32_H_ 913 #endif // VM_ASSEMBLER_IA32_H_
OLDNEW
« no previous file with comments | « runtime/vm/assembler_arm64.cc ('k') | runtime/vm/assembler_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698