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

Side by Side Diff: src/globals.h

Issue 1375253002: [WIP][turbofan] Instruction scheduler for Turbofan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed issues and add support for a few other platforms. Created 5 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
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 12 matching lines...) Expand all
23 # include <limits> // NOLINT 23 # include <limits> // NOLINT
24 # define V8_INFINITY std::numeric_limits<double>::infinity() 24 # define V8_INFINITY std::numeric_limits<double>::infinity()
25 #elif V8_LIBC_MSVCRT 25 #elif V8_LIBC_MSVCRT
26 # define V8_INFINITY HUGE_VAL 26 # define V8_INFINITY HUGE_VAL
27 #elif V8_OS_AIX 27 #elif V8_OS_AIX
28 #define V8_INFINITY (__builtin_inff()) 28 #define V8_INFINITY (__builtin_inff())
29 #else 29 #else
30 # define V8_INFINITY INFINITY 30 # define V8_INFINITY INFINITY
31 #endif 31 #endif
32 32
33 #if V8_TARGET_ARCH_IA32 || V8_TARGET_ARCH_X64 || \
34 V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_ARM64
35 #define V8_TURBOFAN_INSTRUCTION_SCHEDULING 1
36 #else
37 #define V8_TURBOFAN_INSTRUCTION_SCHEDULING 0
38 #endif
Jarin 2015/11/24 11:43:03 I think it would be better to remove this and inst
baptiste.afsa1 2015/12/01 09:08:43 Done.
39
33 namespace v8 { 40 namespace v8 {
34 41
35 namespace base { 42 namespace base {
36 class Mutex; 43 class Mutex;
37 class RecursiveMutex; 44 class RecursiveMutex;
38 class VirtualMemory; 45 class VirtualMemory;
39 } 46 }
40 47
41 namespace internal { 48 namespace internal {
42 49
(...skipping 989 matching lines...) Expand 10 before | Expand all | Expand 10 after
1032 kind = static_cast<FunctionKind>(kind | FunctionKind::kInObjectLiteral); 1039 kind = static_cast<FunctionKind>(kind | FunctionKind::kInObjectLiteral);
1033 DCHECK(IsValidFunctionKind(kind)); 1040 DCHECK(IsValidFunctionKind(kind));
1034 return kind; 1041 return kind;
1035 } 1042 }
1036 } // namespace internal 1043 } // namespace internal
1037 } // namespace v8 1044 } // namespace v8
1038 1045
1039 namespace i = v8::internal; 1046 namespace i = v8::internal;
1040 1047
1041 #endif // V8_GLOBALS_H_ 1048 #endif // V8_GLOBALS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698