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

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

Issue 1584663007: [turbofan] Implement rounding of floats on x64 and ia32 without sse4.1. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 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
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 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 336
337 // Store the function for the given builtin in the target register. 337 // Store the function for the given builtin in the target register.
338 void GetBuiltinFunction(Register target, int native_context_index); 338 void GetBuiltinFunction(Register target, int native_context_index);
339 339
340 // Expression support 340 // Expression support
341 // cvtsi2sd instruction only writes to the low 64-bit of dst register, which 341 // cvtsi2sd instruction only writes to the low 64-bit of dst register, which
342 // hinders register renaming and makes dependence chains longer. So we use 342 // hinders register renaming and makes dependence chains longer. So we use
343 // xorps to clear the dst register before cvtsi2sd to solve this issue. 343 // xorps to clear the dst register before cvtsi2sd to solve this issue.
344 void Cvtsi2sd(XMMRegister dst, Register src) { Cvtsi2sd(dst, Operand(src)); } 344 void Cvtsi2sd(XMMRegister dst, Register src) { Cvtsi2sd(dst, Operand(src)); }
345 void Cvtsi2sd(XMMRegister dst, const Operand& src); 345 void Cvtsi2sd(XMMRegister dst, const Operand& src);
346 void Cvtsi2ss(XMMRegister dst, Register src) { Cvtsi2ss(dst, Operand(src)); }
347 void Cvtsi2ss(XMMRegister dst, const Operand& src);
346 348
347 // Support for constant splitting. 349 // Support for constant splitting.
348 bool IsUnsafeImmediate(const Immediate& x); 350 bool IsUnsafeImmediate(const Immediate& x);
349 void SafeMove(Register dst, const Immediate& x); 351 void SafeMove(Register dst, const Immediate& x);
350 void SafePush(const Immediate& x); 352 void SafePush(const Immediate& x);
351 353
352 // Compare object type for heap object. 354 // Compare object type for heap object.
353 // Incoming register is heap_object and outgoing register is map. 355 // Incoming register is heap_object and outgoing register is map.
354 void CmpObjectType(Register heap_object, InstanceType type, Register map); 356 void CmpObjectType(Register heap_object, InstanceType type, Register map);
355 357
(...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after
1003 } \ 1005 } \
1004 masm-> 1006 masm->
1005 #else 1007 #else
1006 #define ACCESS_MASM(masm) masm-> 1008 #define ACCESS_MASM(masm) masm->
1007 #endif 1009 #endif
1008 1010
1009 } // namespace internal 1011 } // namespace internal
1010 } // namespace v8 1012 } // namespace v8
1011 1013
1012 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ 1014 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698