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