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

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

Issue 1412893006: X87: CTZ instruction implemented as optional operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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
« no previous file with comments | « src/x87/assembler-x87.cc ('k') | src/x87/macro-assembler-x87.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_X87_MACRO_ASSEMBLER_X87_H_ 5 #ifndef V8_X87_MACRO_ASSEMBLER_X87_H_
6 #define V8_X87_MACRO_ASSEMBLER_X87_H_ 6 #define V8_X87_MACRO_ASSEMBLER_X87_H_
7 7
8 #include "src/assembler.h" 8 #include "src/assembler.h"
9 #include "src/bailout-reason.h" 9 #include "src/bailout-reason.h"
10 #include "src/frames.h" 10 #include "src/frames.h"
(...skipping 791 matching lines...) Expand 10 before | Expand all | Expand 10 after
802 void Push(Register src) { push(src); } 802 void Push(Register src) { push(src); }
803 void Push(const Operand& src) { push(src); } 803 void Push(const Operand& src) { push(src); }
804 void Push(Immediate value) { push(value); } 804 void Push(Immediate value) { push(value); }
805 void Pop(Register dst) { pop(dst); } 805 void Pop(Register dst) { pop(dst); }
806 void PushReturnAddressFrom(Register src) { push(src); } 806 void PushReturnAddressFrom(Register src) { push(src); }
807 void PopReturnAddressTo(Register dst) { pop(dst); } 807 void PopReturnAddressTo(Register dst) { pop(dst); }
808 808
809 void Lzcnt(Register dst, Register src) { Lzcnt(dst, Operand(src)); } 809 void Lzcnt(Register dst, Register src) { Lzcnt(dst, Operand(src)); }
810 void Lzcnt(Register dst, const Operand& src); 810 void Lzcnt(Register dst, const Operand& src);
811 811
812 void Tzcnt(Register dst, Register src) { Tzcnt(dst, Operand(src)); }
813 void Tzcnt(Register dst, const Operand& src);
814
812 // Emit call to the code we are currently generating. 815 // Emit call to the code we are currently generating.
813 void CallSelf() { 816 void CallSelf() {
814 Handle<Code> self(reinterpret_cast<Code**>(CodeObject().location())); 817 Handle<Code> self(reinterpret_cast<Code**>(CodeObject().location()));
815 call(self, RelocInfo::CODE_TARGET); 818 call(self, RelocInfo::CODE_TARGET);
816 } 819 }
817 820
818 // Move if the registers are not identical. 821 // Move if the registers are not identical.
819 void Move(Register target, Register source); 822 void Move(Register target, Register source);
820 823
821 // Move a constant into a destination using the most efficient encoding. 824 // Move a constant into a destination using the most efficient encoding.
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
1079 masm-> 1082 masm->
1080 #else 1083 #else
1081 #define ACCESS_MASM(masm) masm-> 1084 #define ACCESS_MASM(masm) masm->
1082 #endif 1085 #endif
1083 1086
1084 1087
1085 } // namespace internal 1088 } // namespace internal
1086 } // namespace v8 1089 } // namespace v8
1087 1090
1088 #endif // V8_X87_MACRO_ASSEMBLER_X87_H_ 1091 #endif // V8_X87_MACRO_ASSEMBLER_X87_H_
OLDNEW
« no previous file with comments | « src/x87/assembler-x87.cc ('k') | src/x87/macro-assembler-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698