| 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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 #endif | 233 #endif |
| 234 | 234 |
| 235 // ----------------------------------------------------------------------------- | 235 // ----------------------------------------------------------------------------- |
| 236 // Constants | 236 // Constants |
| 237 | 237 |
| 238 const int KB = 1024; | 238 const int KB = 1024; |
| 239 const int MB = KB * KB; | 239 const int MB = KB * KB; |
| 240 const int GB = KB * KB * KB; | 240 const int GB = KB * KB * KB; |
| 241 const int kMaxInt = 0x7FFFFFFF; | 241 const int kMaxInt = 0x7FFFFFFF; |
| 242 const int kMinInt = -kMaxInt - 1; | 242 const int kMinInt = -kMaxInt - 1; |
| 243 const int kMaxInt8 = (1 << 7) - 1; |
| 244 const int kMinInt8 = -(1 << 7); |
| 245 const int kMaxUInt8 = (1 << 8) - 1; |
| 246 const int kMinUInt8 = 0; |
| 247 const int kMaxInt16 = (1 << 15) - 1; |
| 248 const int kMinInt16 = -(1 << 15); |
| 249 const int kMaxUInt16 = (1 << 16) - 1; |
| 250 const int kMinUInt16 = 0; |
| 243 | 251 |
| 244 const uint32_t kMaxUInt32 = 0xFFFFFFFFu; | 252 const uint32_t kMaxUInt32 = 0xFFFFFFFFu; |
| 245 | 253 |
| 246 const int kCharSize = sizeof(char); // NOLINT | 254 const int kCharSize = sizeof(char); // NOLINT |
| 247 const int kShortSize = sizeof(short); // NOLINT | 255 const int kShortSize = sizeof(short); // NOLINT |
| 248 const int kIntSize = sizeof(int); // NOLINT | 256 const int kIntSize = sizeof(int); // NOLINT |
| 249 const int kInt32Size = sizeof(int32_t); // NOLINT | 257 const int kInt32Size = sizeof(int32_t); // NOLINT |
| 250 const int kInt64Size = sizeof(int64_t); // NOLINT | 258 const int kInt64Size = sizeof(int64_t); // NOLINT |
| 251 const int kDoubleSize = sizeof(double); // NOLINT | 259 const int kDoubleSize = sizeof(double); // NOLINT |
| 252 const int kIntptrSize = sizeof(intptr_t); // NOLINT | 260 const int kIntptrSize = sizeof(intptr_t); // NOLINT |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 418 // the backend, so both modes are represented by the kStrictMode value. | 426 // the backend, so both modes are represented by the kStrictMode value. |
| 419 enum StrictModeFlag { | 427 enum StrictModeFlag { |
| 420 kNonStrictMode, | 428 kNonStrictMode, |
| 421 kStrictMode | 429 kStrictMode |
| 422 }; | 430 }; |
| 423 | 431 |
| 424 | 432 |
| 425 } } // namespace v8::internal | 433 } } // namespace v8::internal |
| 426 | 434 |
| 427 #endif // V8_GLOBALS_H_ | 435 #endif // V8_GLOBALS_H_ |
| OLD | NEW |