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

Side by Side Diff: src/globals.h

Issue 2033133004: X87: Temporary workaround for X87 FPU convert SNaN to QNaN automatically issue. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 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/crankshaft/x87/lithium-codegen-x87.cc ('k') | no next file » | 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_GLOBALS_H_ 5 #ifndef V8_GLOBALS_H_
6 #define V8_GLOBALS_H_ 6 #define V8_GLOBALS_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 794 matching lines...) Expand 10 before | Expand all | Expand 10 after
805 EVAL_SCOPE, // The top-level scope for an eval source. 805 EVAL_SCOPE, // The top-level scope for an eval source.
806 FUNCTION_SCOPE, // The top-level scope for a function. 806 FUNCTION_SCOPE, // The top-level scope for a function.
807 MODULE_SCOPE, // The scope introduced by a module literal 807 MODULE_SCOPE, // The scope introduced by a module literal
808 SCRIPT_SCOPE, // The top-level scope for a script or a top-level eval. 808 SCRIPT_SCOPE, // The top-level scope for a script or a top-level eval.
809 CATCH_SCOPE, // The scope introduced by catch. 809 CATCH_SCOPE, // The scope introduced by catch.
810 BLOCK_SCOPE, // The scope introduced by a new block. 810 BLOCK_SCOPE, // The scope introduced by a new block.
811 WITH_SCOPE // The scope introduced by with. 811 WITH_SCOPE // The scope introduced by with.
812 }; 812 };
813 813
814 // The mips architecture prior to revision 5 has inverted encoding for sNaN. 814 // The mips architecture prior to revision 5 has inverted encoding for sNaN.
815 #if (V8_TARGET_ARCH_MIPS && !defined(_MIPS_ARCH_MIPS32R6)) || \ 815 // The x87 FPU convert the sNaN to qNaN automatically when loading sNaN from
816 (V8_TARGET_ARCH_MIPS64 && !defined(_MIPS_ARCH_MIPS64R6)) 816 // memmory.
817 // Use mips sNaN which is a not used qNaN in x87 port as sNaN to workaround this
818 // issue
819 // for some test cases.
820 #if (V8_TARGET_ARCH_MIPS && !defined(_MIPS_ARCH_MIPS32R6)) || \
821 (V8_TARGET_ARCH_MIPS64 && !defined(_MIPS_ARCH_MIPS64R6)) || \
822 (V8_TARGET_ARCH_X87)
817 const uint32_t kHoleNanUpper32 = 0xFFFF7FFF; 823 const uint32_t kHoleNanUpper32 = 0xFFFF7FFF;
818 const uint32_t kHoleNanLower32 = 0xFFFF7FFF; 824 const uint32_t kHoleNanLower32 = 0xFFFF7FFF;
819 #else 825 #else
820 const uint32_t kHoleNanUpper32 = 0xFFF7FFFF; 826 const uint32_t kHoleNanUpper32 = 0xFFF7FFFF;
821 const uint32_t kHoleNanLower32 = 0xFFF7FFFF; 827 const uint32_t kHoleNanLower32 = 0xFFF7FFFF;
822 #endif 828 #endif
823 829
824 const uint64_t kHoleNanInt64 = 830 const uint64_t kHoleNanInt64 =
825 (static_cast<uint64_t>(kHoleNanUpper32) << 32) | kHoleNanLower32; 831 (static_cast<uint64_t>(kHoleNanUpper32) << 32) | kHoleNanLower32;
826 832
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
1080 return static_cast<uint32_t>(bit_cast<uintptr_t>(address) >> 1086 return static_cast<uint32_t>(bit_cast<uintptr_t>(address) >>
1081 kPointerSizeLog2); 1087 kPointerSizeLog2);
1082 } 1088 }
1083 1089
1084 } // namespace internal 1090 } // namespace internal
1085 } // namespace v8 1091 } // namespace v8
1086 1092
1087 namespace i = v8::internal; 1093 namespace i = v8::internal;
1088 1094
1089 #endif // V8_GLOBALS_H_ 1095 #endif // V8_GLOBALS_H_
OLDNEW
« no previous file with comments | « src/crankshaft/x87/lithium-codegen-x87.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698