| OLD | NEW |
| 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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 const int kInt64Size = sizeof(int64_t); // NOLINT | 258 const int kInt64Size = sizeof(int64_t); // NOLINT |
| 259 const int kDoubleSize = sizeof(double); // NOLINT | 259 const int kDoubleSize = sizeof(double); // NOLINT |
| 260 const int kIntptrSize = sizeof(intptr_t); // NOLINT | 260 const int kIntptrSize = sizeof(intptr_t); // NOLINT |
| 261 const int kPointerSize = sizeof(void*); // NOLINT | 261 const int kPointerSize = sizeof(void*); // NOLINT |
| 262 const int kRegisterSize = kPointerSize; | 262 const int kRegisterSize = kPointerSize; |
| 263 const int kPCOnStackSize = kRegisterSize; | 263 const int kPCOnStackSize = kRegisterSize; |
| 264 const int kFPOnStackSize = kRegisterSize; | 264 const int kFPOnStackSize = kRegisterSize; |
| 265 | 265 |
| 266 const int kDoubleSizeLog2 = 3; | 266 const int kDoubleSizeLog2 = 3; |
| 267 | 267 |
| 268 // Size of the state of a the random number generator. | |
| 269 const int kRandomStateSize = 2 * kIntSize; | |
| 270 | |
| 271 #if V8_HOST_ARCH_64_BIT | 268 #if V8_HOST_ARCH_64_BIT |
| 272 const int kPointerSizeLog2 = 3; | 269 const int kPointerSizeLog2 = 3; |
| 273 const intptr_t kIntptrSignBit = V8_INT64_C(0x8000000000000000); | 270 const intptr_t kIntptrSignBit = V8_INT64_C(0x8000000000000000); |
| 274 const uintptr_t kUintptrAllBitsSet = V8_UINT64_C(0xFFFFFFFFFFFFFFFF); | 271 const uintptr_t kUintptrAllBitsSet = V8_UINT64_C(0xFFFFFFFFFFFFFFFF); |
| 275 const bool kIs64BitArch = true; | 272 const bool kIs64BitArch = true; |
| 276 #else | 273 #else |
| 277 const int kPointerSizeLog2 = 2; | 274 const int kPointerSizeLog2 = 2; |
| 278 const intptr_t kIntptrSignBit = 0x80000000; | 275 const intptr_t kIntptrSignBit = 0x80000000; |
| 279 const uintptr_t kUintptrAllBitsSet = 0xFFFFFFFFu; | 276 const uintptr_t kUintptrAllBitsSet = 0xFFFFFFFFu; |
| 280 const bool kIs64BitArch = false; | 277 const bool kIs64BitArch = false; |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 426 // the backend, so both modes are represented by the kStrictMode value. | 423 // the backend, so both modes are represented by the kStrictMode value. |
| 427 enum StrictModeFlag { | 424 enum StrictModeFlag { |
| 428 kNonStrictMode, | 425 kNonStrictMode, |
| 429 kStrictMode | 426 kStrictMode |
| 430 }; | 427 }; |
| 431 | 428 |
| 432 | 429 |
| 433 } } // namespace v8::internal | 430 } } // namespace v8::internal |
| 434 | 431 |
| 435 #endif // V8_GLOBALS_H_ | 432 #endif // V8_GLOBALS_H_ |
| OLD | NEW |