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

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

Issue 1021183002: [turbofan] Turn Math.clz32 into an inlinable builtin. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 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/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/macro-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 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_IA32_MACRO_ASSEMBLER_IA32_H_ 5 #ifndef V8_IA32_MACRO_ASSEMBLER_IA32_H_
6 #define V8_IA32_MACRO_ASSEMBLER_IA32_H_ 6 #define V8_IA32_MACRO_ASSEMBLER_IA32_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 802 matching lines...) Expand 10 before | Expand all | Expand 10 after
813 void Push(Register src) { push(src); } 813 void Push(Register src) { push(src); }
814 void Pop(Register dst) { pop(dst); } 814 void Pop(Register dst) { pop(dst); }
815 815
816 // Non-SSE2 instructions. 816 // Non-SSE2 instructions.
817 void Pextrd(Register dst, XMMRegister src, int8_t imm8); 817 void Pextrd(Register dst, XMMRegister src, int8_t imm8);
818 void Pinsrd(XMMRegister dst, Register src, int8_t imm8) { 818 void Pinsrd(XMMRegister dst, Register src, int8_t imm8) {
819 Pinsrd(dst, Operand(src), imm8); 819 Pinsrd(dst, Operand(src), imm8);
820 } 820 }
821 void Pinsrd(XMMRegister dst, const Operand& src, int8_t imm8); 821 void Pinsrd(XMMRegister dst, const Operand& src, int8_t imm8);
822 822
823 void Lzcnt(Register dst, Register src) { Lzcnt(dst, Operand(src)); }
824 void Lzcnt(Register dst, const Operand& src);
825
823 // Emit call to the code we are currently generating. 826 // Emit call to the code we are currently generating.
824 void CallSelf() { 827 void CallSelf() {
825 Handle<Code> self(reinterpret_cast<Code**>(CodeObject().location())); 828 Handle<Code> self(reinterpret_cast<Code**>(CodeObject().location()));
826 call(self, RelocInfo::CODE_TARGET); 829 call(self, RelocInfo::CODE_TARGET);
827 } 830 }
828 831
829 // Move if the registers are not identical. 832 // Move if the registers are not identical.
830 void Move(Register target, Register source); 833 void Move(Register target, Register source);
831 834
832 // Move a constant into a destination using the most efficient encoding. 835 // Move a constant into a destination using the most efficient encoding.
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
1094 } \ 1097 } \
1095 masm-> 1098 masm->
1096 #else 1099 #else
1097 #define ACCESS_MASM(masm) masm-> 1100 #define ACCESS_MASM(masm) masm->
1098 #endif 1101 #endif
1099 1102
1100 1103
1101 } } // namespace v8::internal 1104 } } // namespace v8::internal
1102 1105
1103 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ 1106 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/macro-assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698