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

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

Issue 1420233002: X87: Added Popcnt as an optional operator and implement it on x64 and ia32. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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
« no previous file with comments | « src/compiler/x87/instruction-selector-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 794 matching lines...) Expand 10 before | Expand all | Expand 10 after
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)); } 812 void Tzcnt(Register dst, Register src) { Tzcnt(dst, Operand(src)); }
813 void Tzcnt(Register dst, const Operand& src); 813 void Tzcnt(Register dst, const Operand& src);
814 814
815 void Popcnt(Register dst, Register src) { Popcnt(dst, Operand(src)); }
816 void Popcnt(Register dst, const Operand& src);
817
815 // Emit call to the code we are currently generating. 818 // Emit call to the code we are currently generating.
816 void CallSelf() { 819 void CallSelf() {
817 Handle<Code> self(reinterpret_cast<Code**>(CodeObject().location())); 820 Handle<Code> self(reinterpret_cast<Code**>(CodeObject().location()));
818 call(self, RelocInfo::CODE_TARGET); 821 call(self, RelocInfo::CODE_TARGET);
819 } 822 }
820 823
821 // Move if the registers are not identical. 824 // Move if the registers are not identical.
822 void Move(Register target, Register source); 825 void Move(Register target, Register source);
823 826
824 // Move a constant into a destination using the most efficient encoding. 827 // Move a constant into a destination using the most efficient encoding.
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
1082 masm-> 1085 masm->
1083 #else 1086 #else
1084 #define ACCESS_MASM(masm) masm-> 1087 #define ACCESS_MASM(masm) masm->
1085 #endif 1088 #endif
1086 1089
1087 1090
1088 } // namespace internal 1091 } // namespace internal
1089 } // namespace v8 1092 } // namespace v8
1090 1093
1091 #endif // V8_X87_MACRO_ASSEMBLER_X87_H_ 1094 #endif // V8_X87_MACRO_ASSEMBLER_X87_H_
OLDNEW
« no previous file with comments | « src/compiler/x87/instruction-selector-x87.cc ('k') | src/x87/macro-assembler-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698