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

Side by Side Diff: src/globals.h

Issue 19748003: Introduce kRegisterSize, kPCOnStackSize and kFPOnStackSize constants (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 7 years, 5 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/frames.cc ('k') | src/ia32/deoptimizer-ia32.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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 // Constants 232 // Constants
233 233
234 const int KB = 1024; 234 const int KB = 1024;
235 const int MB = KB * KB; 235 const int MB = KB * KB;
236 const int GB = KB * KB * KB; 236 const int GB = KB * KB * KB;
237 const int kMaxInt = 0x7FFFFFFF; 237 const int kMaxInt = 0x7FFFFFFF;
238 const int kMinInt = -kMaxInt - 1; 238 const int kMinInt = -kMaxInt - 1;
239 239
240 const uint32_t kMaxUInt32 = 0xFFFFFFFFu; 240 const uint32_t kMaxUInt32 = 0xFFFFFFFFu;
241 241
242 const int kCharSize = sizeof(char); // NOLINT 242 const int kCharSize = sizeof(char); // NOLINT
243 const int kShortSize = sizeof(short); // NOLINT 243 const int kShortSize = sizeof(short); // NOLINT
244 const int kIntSize = sizeof(int); // NOLINT 244 const int kIntSize = sizeof(int); // 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;
249 const int kPCOnStackSize = kRegisterSize;
250 const int kFPOnStackSize = kRegisterSize;
248 251
249 const int kDoubleSizeLog2 = 3; 252 const int kDoubleSizeLog2 = 3;
250 253
251 // Size of the state of a the random number generator. 254 // Size of the state of a the random number generator.
252 const int kRandomStateSize = 2 * kIntSize; 255 const int kRandomStateSize = 2 * kIntSize;
253 256
254 #if V8_HOST_ARCH_64_BIT 257 #if V8_HOST_ARCH_64_BIT
255 const int kPointerSizeLog2 = 3; 258 const int kPointerSizeLog2 = 3;
256 const intptr_t kIntptrSignBit = V8_INT64_C(0x8000000000000000); 259 const intptr_t kIntptrSignBit = V8_INT64_C(0x8000000000000000);
257 const uintptr_t kUintptrAllBitsSet = V8_UINT64_C(0xFFFFFFFFFFFFFFFF); 260 const uintptr_t kUintptrAllBitsSet = V8_UINT64_C(0xFFFFFFFFFFFFFFFF);
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 // the backend, so both modes are represented by the kStrictMode value. 436 // the backend, so both modes are represented by the kStrictMode value.
434 enum StrictModeFlag { 437 enum StrictModeFlag {
435 kNonStrictMode, 438 kNonStrictMode,
436 kStrictMode 439 kStrictMode
437 }; 440 };
438 441
439 442
440 } } // namespace v8::internal 443 } } // namespace v8::internal
441 444
442 #endif // V8_GLOBALS_H_ 445 #endif // V8_GLOBALS_H_
OLDNEW
« no previous file with comments | « src/frames.cc ('k') | src/ia32/deoptimizer-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698