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

Side by Side Diff: src/globals.h

Issue 945813002: Change bit pattern of hole nan to reflect different sNan encoding on mips HW. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 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 | « no previous file | 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 678 matching lines...) Expand 10 before | Expand all | Expand 10 after
689 EVAL_SCOPE, // The top-level scope for an eval source. 689 EVAL_SCOPE, // The top-level scope for an eval source.
690 FUNCTION_SCOPE, // The top-level scope for a function. 690 FUNCTION_SCOPE, // The top-level scope for a function.
691 MODULE_SCOPE, // The scope introduced by a module literal 691 MODULE_SCOPE, // The scope introduced by a module literal
692 SCRIPT_SCOPE, // The top-level scope for a script or a top-level eval. 692 SCRIPT_SCOPE, // The top-level scope for a script or a top-level eval.
693 CATCH_SCOPE, // The scope introduced by catch. 693 CATCH_SCOPE, // The scope introduced by catch.
694 BLOCK_SCOPE, // The scope introduced by a new block. 694 BLOCK_SCOPE, // The scope introduced by a new block.
695 WITH_SCOPE, // The scope introduced by with. 695 WITH_SCOPE, // The scope introduced by with.
696 ARROW_SCOPE // The top-level scope for an arrow function literal. 696 ARROW_SCOPE // The top-level scope for an arrow function literal.
697 }; 697 };
698 698
699 699 // The mips architecture prior to revision 5 has inverted encoding for sNaN.
700 #if (V8_TARGET_ARCH_MIPS && !defined(_MIPS_ARCH_MIPS32R6)) || \
701 (V8_TARGET_ARCH_MIPS64 && !defined(_MIPS_ARCH_MIPS64R6))
702 const uint32_t kHoleNanUpper32 = 0xFFFF7FFF;
703 const uint32_t kHoleNanLower32 = 0xFFFF7FFF;
704 #else
700 const uint32_t kHoleNanUpper32 = 0xFFF7FFFF; 705 const uint32_t kHoleNanUpper32 = 0xFFF7FFFF;
701 const uint32_t kHoleNanLower32 = 0xFFF7FFFF; 706 const uint32_t kHoleNanLower32 = 0xFFF7FFFF;
707 #endif
702 708
703 const uint64_t kHoleNanInt64 = 709 const uint64_t kHoleNanInt64 =
704 (static_cast<uint64_t>(kHoleNanUpper32) << 32) | kHoleNanLower32; 710 (static_cast<uint64_t>(kHoleNanUpper32) << 32) | kHoleNanLower32;
705 711
706 712
707 // The order of this enum has to be kept in sync with the predicates below. 713 // The order of this enum has to be kept in sync with the predicates below.
708 enum VariableMode { 714 enum VariableMode {
709 // User declared variables: 715 // User declared variables:
710 VAR, // declared via 'var', and 'function' declarations 716 VAR, // declared via 'var', and 'function' declarations
711 717
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
886 DCHECK(IsValidFunctionKind(kind)); 892 DCHECK(IsValidFunctionKind(kind));
887 return kind & 893 return kind &
888 (FunctionKind::kBaseConstructor | FunctionKind::kSubclassConstructor | 894 (FunctionKind::kBaseConstructor | FunctionKind::kSubclassConstructor |
889 FunctionKind::kDefaultConstructor); 895 FunctionKind::kDefaultConstructor);
890 } 896 }
891 } } // namespace v8::internal 897 } } // namespace v8::internal
892 898
893 namespace i = v8::internal; 899 namespace i = v8::internal;
894 900
895 #endif // V8_GLOBALS_H_ 901 #endif // V8_GLOBALS_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698