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

Side by Side Diff: src/globals.h

Issue 732403002: MIPS64: Add turbofan support for mips64. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comments and code cleanup. Created 6 years, 1 month 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/mips64/linkage-mips64.cc ('k') | test/cctest/compiler/call-tester.h » ('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_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
11 #include "src/base/build_config.h" 11 #include "src/base/build_config.h"
12 #include "src/base/logging.h" 12 #include "src/base/logging.h"
13 #include "src/base/macros.h" 13 #include "src/base/macros.h"
14 14
15 // Unfortunately, the INFINITY macro cannot be used with the '-pedantic' 15 // Unfortunately, the INFINITY macro cannot be used with the '-pedantic'
16 // warning flag and certain versions of GCC due to a bug: 16 // warning flag and certain versions of GCC due to a bug:
17 // http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11931 17 // http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11931
18 // For now, we use the more involved template-based version from <limits>, but 18 // For now, we use the more involved template-based version from <limits>, but
19 // only when compiling with GCC versions affected by the bug (2.96.x - 4.0.x) 19 // only when compiling with GCC versions affected by the bug (2.96.x - 4.0.x)
20 #if V8_CC_GNU && V8_GNUC_PREREQ(2, 96, 0) && !V8_GNUC_PREREQ(4, 1, 0) 20 #if V8_CC_GNU && V8_GNUC_PREREQ(2, 96, 0) && !V8_GNUC_PREREQ(4, 1, 0)
21 # include <limits> // NOLINT 21 # include <limits> // NOLINT
22 # define V8_INFINITY std::numeric_limits<double>::infinity() 22 # define V8_INFINITY std::numeric_limits<double>::infinity()
23 #elif V8_LIBC_MSVCRT 23 #elif V8_LIBC_MSVCRT
24 # define V8_INFINITY HUGE_VAL 24 # define V8_INFINITY HUGE_VAL
25 #else 25 #else
26 # define V8_INFINITY INFINITY 26 # define V8_INFINITY INFINITY
27 #endif 27 #endif
28 28
29 #if V8_TARGET_ARCH_IA32 || (V8_TARGET_ARCH_X64 && !V8_TARGET_ARCH_32_BIT) || \ 29 #if V8_TARGET_ARCH_IA32 || (V8_TARGET_ARCH_X64 && !V8_TARGET_ARCH_32_BIT) || \
30 V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_ARM64 || V8_TARGET_ARCH_MIPS 30 V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_ARM64 || V8_TARGET_ARCH_MIPS || \
31 V8_TARGET_ARCH_MIPS64
31 #define V8_TURBOFAN_BACKEND 1 32 #define V8_TURBOFAN_BACKEND 1
32 #else 33 #else
33 #define V8_TURBOFAN_BACKEND 0 34 #define V8_TURBOFAN_BACKEND 0
34 #endif 35 #endif
35 #if V8_TURBOFAN_BACKEND && !(V8_OS_WIN && V8_TARGET_ARCH_X64) 36 #if V8_TURBOFAN_BACKEND && !(V8_OS_WIN && V8_TARGET_ARCH_X64)
36 #define V8_TURBOFAN_TARGET 1 37 #define V8_TURBOFAN_TARGET 1
37 #else 38 #else
38 #define V8_TURBOFAN_TARGET 0 39 #define V8_TURBOFAN_TARGET 0
39 #endif 40 #endif
40 41
(...skipping 778 matching lines...) Expand 10 before | Expand all | Expand 10 after
819 DCHECK(IsValidFunctionKind(kind)); 820 DCHECK(IsValidFunctionKind(kind));
820 return kind & FunctionKind::kDefaultConstructor; 821 return kind & FunctionKind::kDefaultConstructor;
821 } 822 }
822 823
823 824
824 } } // namespace v8::internal 825 } } // namespace v8::internal
825 826
826 namespace i = v8::internal; 827 namespace i = v8::internal;
827 828
828 #endif // V8_GLOBALS_H_ 829 #endif // V8_GLOBALS_H_
OLDNEW
« no previous file with comments | « src/compiler/mips64/linkage-mips64.cc ('k') | test/cctest/compiler/call-tester.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698