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

Side by Side Diff: src/globals.h

Issue 24269003: Add methods to enable configuration of ResourceConstraints based on limits derived at runtime. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: /s/uintptr_t/uint64_t Created 7 years, 3 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/defaults.cc ('k') | src/heap.cc » ('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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 241
242 const int kDoubleSizeLog2 = 3; 242 const int kDoubleSizeLog2 = 3;
243 243
244 // Size of the state of a the random number generator. 244 // Size of the state of a the random number generator.
245 const int kRandomStateSize = 2 * kIntSize; 245 const int kRandomStateSize = 2 * kIntSize;
246 246
247 #if V8_HOST_ARCH_64_BIT 247 #if V8_HOST_ARCH_64_BIT
248 const int kPointerSizeLog2 = 3; 248 const int kPointerSizeLog2 = 3;
249 const intptr_t kIntptrSignBit = V8_INT64_C(0x8000000000000000); 249 const intptr_t kIntptrSignBit = V8_INT64_C(0x8000000000000000);
250 const uintptr_t kUintptrAllBitsSet = V8_UINT64_C(0xFFFFFFFFFFFFFFFF); 250 const uintptr_t kUintptrAllBitsSet = V8_UINT64_C(0xFFFFFFFFFFFFFFFF);
251 const bool kIs64BitArch = true;
251 #else 252 #else
252 const int kPointerSizeLog2 = 2; 253 const int kPointerSizeLog2 = 2;
253 const intptr_t kIntptrSignBit = 0x80000000; 254 const intptr_t kIntptrSignBit = 0x80000000;
254 const uintptr_t kUintptrAllBitsSet = 0xFFFFFFFFu; 255 const uintptr_t kUintptrAllBitsSet = 0xFFFFFFFFu;
256 const bool kIs64BitArch = false;
255 #endif 257 #endif
256 258
257 const int kBitsPerByte = 8; 259 const int kBitsPerByte = 8;
258 const int kBitsPerByteLog2 = 3; 260 const int kBitsPerByteLog2 = 3;
259 const int kBitsPerPointer = kPointerSize * kBitsPerByte; 261 const int kBitsPerPointer = kPointerSize * kBitsPerByte;
260 const int kBitsPerInt = kIntSize * kBitsPerByte; 262 const int kBitsPerInt = kIntSize * kBitsPerByte;
261 263
262 // IEEE 754 single precision floating point number bit layout. 264 // IEEE 754 single precision floating point number bit layout.
263 const uint32_t kBinary32SignMask = 0x80000000u; 265 const uint32_t kBinary32SignMask = 0x80000000u;
264 const uint32_t kBinary32ExponentMask = 0x7f800000u; 266 const uint32_t kBinary32ExponentMask = 0x7f800000u;
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 // the backend, so both modes are represented by the kStrictMode value. 402 // the backend, so both modes are represented by the kStrictMode value.
401 enum StrictModeFlag { 403 enum StrictModeFlag {
402 kNonStrictMode, 404 kNonStrictMode,
403 kStrictMode 405 kStrictMode
404 }; 406 };
405 407
406 408
407 } } // namespace v8::internal 409 } } // namespace v8::internal
408 410
409 #endif // V8_GLOBALS_H_ 411 #endif // V8_GLOBALS_H_
OLDNEW
« no previous file with comments | « src/defaults.cc ('k') | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698