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

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

Issue 1022523005: X87: [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/x87/lithium-codegen-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 758 matching lines...) Expand 10 before | Expand all | Expand 10 after
769 void Ret(int bytes_dropped, Register scratch); 769 void Ret(int bytes_dropped, Register scratch);
770 770
771 // Emit code to discard a non-negative number of pointer-sized elements 771 // Emit code to discard a non-negative number of pointer-sized elements
772 // from the stack, clobbering only the esp register. 772 // from the stack, clobbering only the esp register.
773 void Drop(int element_count); 773 void Drop(int element_count);
774 774
775 void Call(Label* target) { call(target); } 775 void Call(Label* target) { call(target); }
776 void Push(Register src) { push(src); } 776 void Push(Register src) { push(src); }
777 void Pop(Register dst) { pop(dst); } 777 void Pop(Register dst) { pop(dst); }
778 778
779 void Lzcnt(Register dst, Register src) { Lzcnt(dst, Operand(src)); }
780 void Lzcnt(Register dst, const Operand& src);
781
779 // Emit call to the code we are currently generating. 782 // Emit call to the code we are currently generating.
780 void CallSelf() { 783 void CallSelf() {
781 Handle<Code> self(reinterpret_cast<Code**>(CodeObject().location())); 784 Handle<Code> self(reinterpret_cast<Code**>(CodeObject().location()));
782 call(self, RelocInfo::CODE_TARGET); 785 call(self, RelocInfo::CODE_TARGET);
783 } 786 }
784 787
785 // Move if the registers are not identical. 788 // Move if the registers are not identical.
786 void Move(Register target, Register source); 789 void Move(Register target, Register source);
787 790
788 // Move a constant into a destination using the most efficient encoding. 791 // Move a constant into a destination using the most efficient encoding.
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
1048 } \ 1051 } \
1049 masm-> 1052 masm->
1050 #else 1053 #else
1051 #define ACCESS_MASM(masm) masm-> 1054 #define ACCESS_MASM(masm) masm->
1052 #endif 1055 #endif
1053 1056
1054 1057
1055 } } // namespace v8::internal 1058 } } // namespace v8::internal
1056 1059
1057 #endif // V8_X87_MACRO_ASSEMBLER_X87_H_ 1060 #endif // V8_X87_MACRO_ASSEMBLER_X87_H_
OLDNEW
« no previous file with comments | « src/x87/lithium-codegen-x87.cc ('k') | src/x87/macro-assembler-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698