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

Side by Side Diff: src/globals.h

Issue 331823002: Reland "Rename kIs64BitArch with kRequiresCodeRange." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Only assert requested <= kMaximalCodeRangeSize when the port requires code range" Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/api.cc ('k') | src/heap.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 "include/v8stdint.h" 8 #include "include/v8stdint.h"
9 9
10 #include "src/base/build_config.h" 10 #include "src/base/build_config.h"
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 const int kRegisterSize = kPointerSize; 146 const int kRegisterSize = kPointerSize;
147 const int kPCOnStackSize = kRegisterSize; 147 const int kPCOnStackSize = kRegisterSize;
148 const int kFPOnStackSize = kRegisterSize; 148 const int kFPOnStackSize = kRegisterSize;
149 149
150 const int kDoubleSizeLog2 = 3; 150 const int kDoubleSizeLog2 = 3;
151 151
152 #if V8_HOST_ARCH_64_BIT 152 #if V8_HOST_ARCH_64_BIT
153 const int kPointerSizeLog2 = 3; 153 const int kPointerSizeLog2 = 3;
154 const intptr_t kIntptrSignBit = V8_INT64_C(0x8000000000000000); 154 const intptr_t kIntptrSignBit = V8_INT64_C(0x8000000000000000);
155 const uintptr_t kUintptrAllBitsSet = V8_UINT64_C(0xFFFFFFFFFFFFFFFF); 155 const uintptr_t kUintptrAllBitsSet = V8_UINT64_C(0xFFFFFFFFFFFFFFFF);
156 const bool kIs64BitArch = true; 156 const bool kRequiresCodeRange = true;
157 const size_t kMaximalCodeRangeSize = 512 * MB;
157 #else 158 #else
158 const int kPointerSizeLog2 = 2; 159 const int kPointerSizeLog2 = 2;
159 const intptr_t kIntptrSignBit = 0x80000000; 160 const intptr_t kIntptrSignBit = 0x80000000;
160 const uintptr_t kUintptrAllBitsSet = 0xFFFFFFFFu; 161 const uintptr_t kUintptrAllBitsSet = 0xFFFFFFFFu;
161 const bool kIs64BitArch = false; 162 const bool kRequiresCodeRange = false;
163 const size_t kMaximalCodeRangeSize = 0 * MB;
162 #endif 164 #endif
163 165
164 const int kBitsPerByte = 8; 166 const int kBitsPerByte = 8;
165 const int kBitsPerByteLog2 = 3; 167 const int kBitsPerByteLog2 = 3;
166 const int kBitsPerPointer = kPointerSize * kBitsPerByte; 168 const int kBitsPerPointer = kPointerSize * kBitsPerByte;
167 const int kBitsPerInt = kIntSize * kBitsPerByte; 169 const int kBitsPerInt = kIntSize * kBitsPerByte;
168 170
169 // IEEE 754 single precision floating point number bit layout. 171 // IEEE 754 single precision floating point number bit layout.
170 const uint32_t kBinary32SignMask = 0x80000000u; 172 const uint32_t kBinary32SignMask = 0x80000000u;
171 const uint32_t kBinary32ExponentMask = 0x7f800000u; 173 const uint32_t kBinary32ExponentMask = 0x7f800000u;
(...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after
757 enum MinusZeroMode { 759 enum MinusZeroMode {
758 TREAT_MINUS_ZERO_AS_ZERO, 760 TREAT_MINUS_ZERO_AS_ZERO,
759 FAIL_ON_MINUS_ZERO 761 FAIL_ON_MINUS_ZERO
760 }; 762 };
761 763
762 } } // namespace v8::internal 764 } } // namespace v8::internal
763 765
764 namespace i = v8::internal; 766 namespace i = v8::internal;
765 767
766 #endif // V8_GLOBALS_H_ 768 #endif // V8_GLOBALS_H_
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698