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

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

Issue 1593313010: Revert of [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
« no previous file with comments | « src/ia32/disasm-ia32.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 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 337
338 // Store the function for the given builtin in the target register. 338 // Store the function for the given builtin in the target register.
339 void GetBuiltinFunction(Register target, int native_context_index); 339 void GetBuiltinFunction(Register target, int native_context_index);
340 340
341 // Expression support 341 // Expression support
342 // cvtsi2sd instruction only writes to the low 64-bit of dst register, which 342 // cvtsi2sd instruction only writes to the low 64-bit of dst register, which
343 // hinders register renaming and makes dependence chains longer. So we use 343 // hinders register renaming and makes dependence chains longer. So we use
344 // xorps to clear the dst register before cvtsi2sd to solve this issue. 344 // xorps to clear the dst register before cvtsi2sd to solve this issue.
345 void Cvtsi2sd(XMMRegister dst, Register src) { Cvtsi2sd(dst, Operand(src)); } 345 void Cvtsi2sd(XMMRegister dst, Register src) { Cvtsi2sd(dst, Operand(src)); }
346 void Cvtsi2sd(XMMRegister dst, const Operand& src); 346 void Cvtsi2sd(XMMRegister dst, const Operand& src);
347 void Cvtsi2ss(XMMRegister dst, Register src) { Cvtsi2ss(dst, Operand(src)); }
348 void Cvtsi2ss(XMMRegister dst, const Operand& src);
349
350 void Roundss(XMMRegister dst, XMMRegister src, Register tmp,
351 RoundingMode mode);
352 void Roundsd(XMMRegister dst, XMMRegister src, Register tmp, XMMRegister xtmp,
353 RoundingMode mode);
354 347
355 // Support for constant splitting. 348 // Support for constant splitting.
356 bool IsUnsafeImmediate(const Immediate& x); 349 bool IsUnsafeImmediate(const Immediate& x);
357 void SafeMove(Register dst, const Immediate& x); 350 void SafeMove(Register dst, const Immediate& x);
358 void SafePush(const Immediate& x); 351 void SafePush(const Immediate& x);
359 352
360 // Compare object type for heap object. 353 // Compare object type for heap object.
361 // Incoming register is heap_object and outgoing register is map. 354 // Incoming register is heap_object and outgoing register is map.
362 void CmpObjectType(Register heap_object, InstanceType type, Register map); 355 void CmpObjectType(Register heap_object, InstanceType type, Register map);
363 356
(...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after
1018 } \ 1011 } \
1019 masm-> 1012 masm->
1020 #else 1013 #else
1021 #define ACCESS_MASM(masm) masm-> 1014 #define ACCESS_MASM(masm) masm->
1022 #endif 1015 #endif
1023 1016
1024 } // namespace internal 1017 } // namespace internal
1025 } // namespace v8 1018 } // namespace v8
1026 1019
1027 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ 1020 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_
OLDNEW
« no previous file with comments | « src/ia32/disasm-ia32.cc ('k') | src/ia32/macro-assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698