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

Side by Side Diff: src/globals.h

Issue 2171303002: MIPS: Fix '[turbofan] Prevent storing signalling NaNs into holey double arrays.' (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add mac cross-build conditions. Created 4 years, 5 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_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 825 matching lines...) Expand 10 before | Expand all | Expand 10 after
836 BLOCK_SCOPE, // The scope introduced by a new block. 836 BLOCK_SCOPE, // The scope introduced by a new block.
837 WITH_SCOPE // The scope introduced by with. 837 WITH_SCOPE // The scope introduced by with.
838 }; 838 };
839 839
840 // The mips architecture prior to revision 5 has inverted encoding for sNaN. 840 // The mips architecture prior to revision 5 has inverted encoding for sNaN.
841 // The x87 FPU convert the sNaN to qNaN automatically when loading sNaN from 841 // The x87 FPU convert the sNaN to qNaN automatically when loading sNaN from
842 // memmory. 842 // memmory.
843 // Use mips sNaN which is a not used qNaN in x87 port as sNaN to workaround this 843 // Use mips sNaN which is a not used qNaN in x87 port as sNaN to workaround this
844 // issue 844 // issue
845 // for some test cases. 845 // for some test cases.
846 #if (V8_TARGET_ARCH_MIPS && !defined(_MIPS_ARCH_MIPS32R6)) || \ 846 #if (V8_TARGET_ARCH_MIPS && !defined(_MIPS_ARCH_MIPS32R6) && \
847 (V8_TARGET_ARCH_MIPS64 && !defined(_MIPS_ARCH_MIPS64R6)) || \ 847 (!defined(USE_SIMULATOR) || !defined(_MIPS_TARGET_SIMULATOR))) || \
848 (V8_TARGET_ARCH_MIPS64 && !defined(_MIPS_ARCH_MIPS64R6) && \
849 (!defined(USE_SIMULATOR) || !defined(_MIPS_TARGET_SIMULATOR))) || \
848 (V8_TARGET_ARCH_X87) 850 (V8_TARGET_ARCH_X87)
849 const uint32_t kHoleNanUpper32 = 0xFFFF7FFF; 851 const uint32_t kHoleNanUpper32 = 0xFFFF7FFF;
850 const uint32_t kHoleNanLower32 = 0xFFFF7FFF; 852 const uint32_t kHoleNanLower32 = 0xFFFF7FFF;
851 #else 853 #else
852 const uint32_t kHoleNanUpper32 = 0xFFF7FFFF; 854 const uint32_t kHoleNanUpper32 = 0xFFF7FFFF;
853 const uint32_t kHoleNanLower32 = 0xFFF7FFFF; 855 const uint32_t kHoleNanLower32 = 0xFFF7FFFF;
854 #endif 856 #endif
855 857
856 const uint64_t kHoleNanInt64 = 858 const uint64_t kHoleNanInt64 =
857 (static_cast<uint64_t>(kHoleNanUpper32) << 32) | kHoleNanLower32; 859 (static_cast<uint64_t>(kHoleNanUpper32) << 32) | kHoleNanLower32;
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
1133 return static_cast<uint32_t>(bit_cast<uintptr_t>(address) >> 1135 return static_cast<uint32_t>(bit_cast<uintptr_t>(address) >>
1134 kPointerSizeLog2); 1136 kPointerSizeLog2);
1135 } 1137 }
1136 1138
1137 } // namespace internal 1139 } // namespace internal
1138 } // namespace v8 1140 } // namespace v8
1139 1141
1140 namespace i = v8::internal; 1142 namespace i = v8::internal;
1141 1143
1142 #endif // V8_GLOBALS_H_ 1144 #endif // V8_GLOBALS_H_
OLDNEW
« gypfiles/toolchain.gypi ('K') | « src/compiler/mips/code-generator-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698