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

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

Issue 1627263002: [turbofan] Add TruncateFloat32ToUint32 operator to Turbofan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Andreas' comment Created 4 years, 10 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/compiler/x87/instruction-selector-x87.cc ('k') | test/cctest/compiler/test-run-machops.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 755 matching lines...) Expand 10 before | Expand all | Expand 10 after
766 // Move if the registers are not identical. 766 // Move if the registers are not identical.
767 void Move(Register target, Register source); 767 void Move(Register target, Register source);
768 768
769 // Move a constant into a destination using the most efficient encoding. 769 // Move a constant into a destination using the most efficient encoding.
770 void Move(Register dst, const Immediate& x); 770 void Move(Register dst, const Immediate& x);
771 void Move(const Operand& dst, const Immediate& x); 771 void Move(const Operand& dst, const Immediate& x);
772 772
773 // Move an immediate into an XMM register. 773 // Move an immediate into an XMM register.
774 void Move(XMMRegister dst, uint32_t src); 774 void Move(XMMRegister dst, uint32_t src);
775 void Move(XMMRegister dst, uint64_t src); 775 void Move(XMMRegister dst, uint64_t src);
776 void Move(XMMRegister dst, float src) { Move(dst, bit_cast<uint32_t>(src)); }
776 void Move(XMMRegister dst, double src) { Move(dst, bit_cast<uint64_t>(src)); } 777 void Move(XMMRegister dst, double src) { Move(dst, bit_cast<uint64_t>(src)); }
777 778
778 void Move(Register dst, Smi* source) { Move(dst, Immediate(source)); } 779 void Move(Register dst, Smi* source) { Move(dst, Immediate(source)); }
779 780
780 // Push a handle value. 781 // Push a handle value.
781 void Push(Handle<Object> handle) { push(Immediate(handle)); } 782 void Push(Handle<Object> handle) { push(Immediate(handle)); }
782 void Push(Smi* smi) { Push(Immediate(smi)); } 783 void Push(Smi* smi) { Push(Immediate(smi)); }
783 784
784 Handle<Object> CodeObject() { 785 Handle<Object> CodeObject() {
785 DCHECK(!code_object_.is_null()); 786 DCHECK(!code_object_.is_null());
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
1007 } \ 1008 } \
1008 masm-> 1009 masm->
1009 #else 1010 #else
1010 #define ACCESS_MASM(masm) masm-> 1011 #define ACCESS_MASM(masm) masm->
1011 #endif 1012 #endif
1012 1013
1013 } // namespace internal 1014 } // namespace internal
1014 } // namespace v8 1015 } // namespace v8
1015 1016
1016 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ 1017 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_
OLDNEW
« no previous file with comments | « src/compiler/x87/instruction-selector-x87.cc ('k') | test/cctest/compiler/test-run-machops.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698