OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
500 }; | 500 }; |
501 | 501 |
502 | 502 |
503 // Used to specify whether a receiver is implicitly or explicitly | 503 // Used to specify whether a receiver is implicitly or explicitly |
504 // provided to a call. | 504 // provided to a call. |
505 enum CallKind { | 505 enum CallKind { |
506 CALL_AS_METHOD = 0, | 506 CALL_AS_METHOD = 0, |
507 CALL_AS_FUNCTION | 507 CALL_AS_FUNCTION |
508 }; | 508 }; |
509 | 509 |
| 510 |
| 511 static const uint32_t kHoleNanUpper32 = 0x7FFFFFFF; |
| 512 static const uint32_t kHoleNanLower32 = 0xFFFFFFFF; |
| 513 static const uint32_t kCanonicalNonHoleNanUpper32 = 0x7FF10000; |
| 514 static const uint32_t kCanonicalNonHoleNanLower32 = 0xFFFFFFFF; |
| 515 static const uint32_t kNaNOrInfinityLowerBoundUpper32 = 0x7FF00000; |
| 516 |
| 517 const uint64_t kHoleNanInt64 = |
| 518 (static_cast<uint64_t>(kHoleNanUpper32) << 32) | kHoleNanLower32; |
| 519 const uint64_t kCanonicalNonHoleNanInt64 = |
| 520 (static_cast<uint64_t>(kCanonicalNonHoleNanUpper32) << 32) | |
| 521 kCanonicalNonHoleNanLower32; |
| 522 const uint64_t kLastNonNaNInt64 = |
| 523 (static_cast<uint64_t>(kNaNOrInfinityLowerBoundUpper32) << 32); |
| 524 |
510 } } // namespace v8::internal | 525 } } // namespace v8::internal |
511 | 526 |
512 #endif // V8_V8GLOBALS_H_ | 527 #endif // V8_V8GLOBALS_H_ |
OLD | NEW |