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

Side by Side Diff: src/arm/macro-assembler-arm.h

Issue 2826001: ARM: Be more smart about switching instructions when immediates... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 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
OLDNEW
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 void Drop(int count, Condition cond = al); 86 void Drop(int count, Condition cond = al);
87 87
88 88
89 // Swap two registers. If the scratch register is omitted then a slightly 89 // Swap two registers. If the scratch register is omitted then a slightly
90 // less efficient form using xor instead of mov is emitted. 90 // less efficient form using xor instead of mov is emitted.
91 void Swap(Register reg1, 91 void Swap(Register reg1,
92 Register reg2, 92 Register reg2,
93 Register scratch = no_reg, 93 Register scratch = no_reg,
94 Condition cond = al); 94 Condition cond = al);
95 95
96
97 void And(Register dst, Register src1, const Operand& src2,
98 Condition cond = al);
99 void Ubfx(Register dst, Register src, int lsb, int width,
100 Condition cond = al);
101 void Sbfx(Register dst, Register src, int lsb, int width,
102 Condition cond = al);
103
96 void Call(Label* target); 104 void Call(Label* target);
97 void Move(Register dst, Handle<Object> value); 105 void Move(Register dst, Handle<Object> value);
98 // May do nothing if the registers are identical. 106 // May do nothing if the registers are identical.
99 void Move(Register dst, Register src); 107 void Move(Register dst, Register src);
100 // Jumps to the label at the index given by the Smi in "index". 108 // Jumps to the label at the index given by the Smi in "index".
101 void SmiJumpTable(Register index, Vector<Label*> targets); 109 void SmiJumpTable(Register index, Vector<Label*> targets);
102 // Load an object from the root table. 110 // Load an object from the root table.
103 void LoadRoot(Register destination, 111 void LoadRoot(Register destination,
104 Heap::RootListIndex index, 112 Heap::RootListIndex index,
105 Condition cond = al); 113 Condition cond = al);
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after
666 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 674 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
667 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 675 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
668 #else 676 #else
669 #define ACCESS_MASM(masm) masm-> 677 #define ACCESS_MASM(masm) masm->
670 #endif 678 #endif
671 679
672 680
673 } } // namespace v8::internal 681 } } // namespace v8::internal
674 682
675 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ 683 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698