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

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

Issue 59613005: Merge (x & y) == 0 pattern to emit a single test instruction. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 1 month 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/assembler_arm.cc » ('j') | runtime/vm/intermediate_language_ia32.cc » ('J')
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_ARM_H_ 5 #ifndef VM_ASSEMBLER_ARM_H_
6 #define VM_ASSEMBLER_ARM_H_ 6 #define VM_ASSEMBLER_ARM_H_
7 7
8 #ifndef VM_ASSEMBLER_H_ 8 #ifndef VM_ASSEMBLER_H_
9 #error Do not include assembler_arm.h directly; use assembler.h instead. 9 #error Do not include assembler_arm.h directly; use assembler.h instead.
10 #endif 10 #endif
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after
578 void AddImmediate(Register rd, int32_t value, Condition cond = AL); 578 void AddImmediate(Register rd, int32_t value, Condition cond = AL);
579 void AddImmediate(Register rd, Register rn, int32_t value, 579 void AddImmediate(Register rd, Register rn, int32_t value,
580 Condition cond = AL); 580 Condition cond = AL);
581 void AddImmediateSetFlags(Register rd, Register rn, int32_t value, 581 void AddImmediateSetFlags(Register rd, Register rn, int32_t value,
582 Condition cond = AL); 582 Condition cond = AL);
583 void AddImmediateWithCarry(Register rd, Register rn, int32_t value, 583 void AddImmediateWithCarry(Register rd, Register rn, int32_t value,
584 Condition cond = AL); 584 Condition cond = AL);
585 585
586 void AndImmediate(Register rd, Register rs, int32_t imm, Condition cond = AL); 586 void AndImmediate(Register rd, Register rs, int32_t imm, Condition cond = AL);
587 587
588 // Test rn and immediate. May clobber IP.
589 void TestImmediate(Register rn, int32_t imm, Condition cond = AL);
590
588 // Compare rn with signed immediate value. May clobber IP. 591 // Compare rn with signed immediate value. May clobber IP.
589 void CompareImmediate(Register rn, int32_t value, Condition cond = AL); 592 void CompareImmediate(Register rn, int32_t value, Condition cond = AL);
590 593
594
591 // Signed integer division of left by right. Checks to see if integer 595 // Signed integer division of left by right. Checks to see if integer
592 // division is supported. If not, uses the FPU for division with 596 // division is supported. If not, uses the FPU for division with
593 // temporary registers tmpl and tmpr. tmpl and tmpr must be different 597 // temporary registers tmpl and tmpr. tmpl and tmpr must be different
594 // registers. 598 // registers.
595 void IntegerDivide(Register result, Register left, Register right, 599 void IntegerDivide(Register result, Register left, Register right,
596 DRegister tmpl, DRegister tmpr); 600 DRegister tmpl, DRegister tmpr);
597 601
598 // Load and Store. May clobber IP. 602 // Load and Store. May clobber IP.
599 void LoadImmediate(Register rd, int32_t value, Condition cond = AL); 603 void LoadImmediate(Register rd, int32_t value, Condition cond = AL);
600 void LoadSImmediate(SRegister sd, float value, Condition cond = AL); 604 void LoadSImmediate(SRegister sd, float value, Condition cond = AL);
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
876 Register value, 880 Register value,
877 Label* no_update); 881 Label* no_update);
878 882
879 DISALLOW_ALLOCATION(); 883 DISALLOW_ALLOCATION();
880 DISALLOW_COPY_AND_ASSIGN(Assembler); 884 DISALLOW_COPY_AND_ASSIGN(Assembler);
881 }; 885 };
882 886
883 } // namespace dart 887 } // namespace dart
884 888
885 #endif // VM_ASSEMBLER_ARM_H_ 889 #endif // VM_ASSEMBLER_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/assembler_arm.cc » ('j') | runtime/vm/intermediate_language_ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698