OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |