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

Side by Side Diff: src/globals.h

Issue 82763005: Reland "Implement Math.random() purely in JavaScript" plus fixes. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Added assertion Created 7 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 | Annotate | Revision Log
« no previous file with comments | « src/contexts.h ('k') | src/hydrogen.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 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 const int kInt64Size = sizeof(int64_t); // NOLINT 244 const int kInt64Size = sizeof(int64_t); // NOLINT
245 const int kDoubleSize = sizeof(double); // NOLINT 245 const int kDoubleSize = sizeof(double); // NOLINT
246 const int kIntptrSize = sizeof(intptr_t); // NOLINT 246 const int kIntptrSize = sizeof(intptr_t); // NOLINT
247 const int kPointerSize = sizeof(void*); // NOLINT 247 const int kPointerSize = sizeof(void*); // NOLINT
248 const int kRegisterSize = kPointerSize; 248 const int kRegisterSize = kPointerSize;
249 const int kPCOnStackSize = kRegisterSize; 249 const int kPCOnStackSize = kRegisterSize;
250 const int kFPOnStackSize = kRegisterSize; 250 const int kFPOnStackSize = kRegisterSize;
251 251
252 const int kDoubleSizeLog2 = 3; 252 const int kDoubleSizeLog2 = 3;
253 253
254 // Size of the state of a the random number generator.
255 const int kRandomStateSize = 2 * kIntSize;
256
257 #if V8_HOST_ARCH_64_BIT 254 #if V8_HOST_ARCH_64_BIT
258 const int kPointerSizeLog2 = 3; 255 const int kPointerSizeLog2 = 3;
259 const intptr_t kIntptrSignBit = V8_INT64_C(0x8000000000000000); 256 const intptr_t kIntptrSignBit = V8_INT64_C(0x8000000000000000);
260 const uintptr_t kUintptrAllBitsSet = V8_UINT64_C(0xFFFFFFFFFFFFFFFF); 257 const uintptr_t kUintptrAllBitsSet = V8_UINT64_C(0xFFFFFFFFFFFFFFFF);
261 const bool kIs64BitArch = true; 258 const bool kIs64BitArch = true;
262 #else 259 #else
263 const int kPointerSizeLog2 = 2; 260 const int kPointerSizeLog2 = 2;
264 const intptr_t kIntptrSignBit = 0x80000000; 261 const intptr_t kIntptrSignBit = 0x80000000;
265 const uintptr_t kUintptrAllBitsSet = 0xFFFFFFFFu; 262 const uintptr_t kUintptrAllBitsSet = 0xFFFFFFFFu;
266 const bool kIs64BitArch = false; 263 const bool kIs64BitArch = false;
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 // the backend, so both modes are represented by the kStrictMode value. 409 // the backend, so both modes are represented by the kStrictMode value.
413 enum StrictModeFlag { 410 enum StrictModeFlag {
414 kNonStrictMode, 411 kNonStrictMode,
415 kStrictMode 412 kStrictMode
416 }; 413 };
417 414
418 415
419 } } // namespace v8::internal 416 } } // namespace v8::internal
420 417
421 #endif // V8_GLOBALS_H_ 418 #endif // V8_GLOBALS_H_
OLDNEW
« no previous file with comments | « src/contexts.h ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698