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

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

Issue 1628133002: [turbofan] Add RoundUint32ToFloat32 operator to Turbofan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: add arm/arm64 implementation 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') | 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 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 // Store the function for the given builtin in the target register. 334 // Store the function for the given builtin in the target register.
335 void GetBuiltinFunction(Register target, int native_context_index); 335 void GetBuiltinFunction(Register target, int native_context_index);
336 336
337 // Expression support 337 // Expression support
338 // cvtsi2sd instruction only writes to the low 64-bit of dst register, which 338 // cvtsi2sd instruction only writes to the low 64-bit of dst register, which
339 // hinders register renaming and makes dependence chains longer. So we use 339 // hinders register renaming and makes dependence chains longer. So we use
340 // xorps to clear the dst register before cvtsi2sd to solve this issue. 340 // xorps to clear the dst register before cvtsi2sd to solve this issue.
341 void Cvtsi2sd(XMMRegister dst, Register src) { Cvtsi2sd(dst, Operand(src)); } 341 void Cvtsi2sd(XMMRegister dst, Register src) { Cvtsi2sd(dst, Operand(src)); }
342 void Cvtsi2sd(XMMRegister dst, const Operand& src); 342 void Cvtsi2sd(XMMRegister dst, const Operand& src);
343 343
344 void Cvtui2ss(XMMRegister dst, Register src, Register tmp);
345
344 // Support for constant splitting. 346 // Support for constant splitting.
345 bool IsUnsafeImmediate(const Immediate& x); 347 bool IsUnsafeImmediate(const Immediate& x);
346 void SafeMove(Register dst, const Immediate& x); 348 void SafeMove(Register dst, const Immediate& x);
347 void SafePush(const Immediate& x); 349 void SafePush(const Immediate& x);
348 350
349 // Compare object type for heap object. 351 // Compare object type for heap object.
350 // Incoming register is heap_object and outgoing register is map. 352 // Incoming register is heap_object and outgoing register is map.
351 void CmpObjectType(Register heap_object, InstanceType type, Register map); 353 void CmpObjectType(Register heap_object, InstanceType type, Register map);
352 354
353 // Compare instance type for map. 355 // Compare instance type for map.
(...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after
1007 } \ 1009 } \
1008 masm-> 1010 masm->
1009 #else 1011 #else
1010 #define ACCESS_MASM(masm) masm-> 1012 #define ACCESS_MASM(masm) masm->
1011 #endif 1013 #endif
1012 1014
1013 } // namespace internal 1015 } // namespace internal
1014 } // namespace v8 1016 } // namespace v8
1015 1017
1016 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ 1018 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_
OLDNEW
« no previous file with comments | « src/compiler/x87/instruction-selector-x87.cc ('k') | src/ia32/macro-assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698