| 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 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 524 static const uint32_t kNaNOrInfinityLowerBoundUpper32 = 0x7FF00000; | 524 static const uint32_t kNaNOrInfinityLowerBoundUpper32 = 0x7FF00000; |
| 525 | 525 |
| 526 const uint64_t kHoleNanInt64 = | 526 const uint64_t kHoleNanInt64 = |
| 527 (static_cast<uint64_t>(kHoleNanUpper32) << 32) | kHoleNanLower32; | 527 (static_cast<uint64_t>(kHoleNanUpper32) << 32) | kHoleNanLower32; |
| 528 const uint64_t kLastNonNaNInt64 = | 528 const uint64_t kLastNonNaNInt64 = |
| 529 (static_cast<uint64_t>(kNaNOrInfinityLowerBoundUpper32) << 32); | 529 (static_cast<uint64_t>(kNaNOrInfinityLowerBoundUpper32) << 32); |
| 530 | 530 |
| 531 | 531 |
| 532 enum VariableMode { | 532 enum VariableMode { |
| 533 // User declared variables: | 533 // User declared variables: |
| 534 VAR, // declared via 'var', and 'function' declarations | 534 VAR, // declared via 'var', and 'function' declarations |
| 535 | 535 |
| 536 CONST, // declared via 'const' declarations | 536 CONST, // declared via 'const' declarations |
| 537 | 537 |
| 538 LET, // declared via 'let' declarations | 538 CONST_HARMONY, // declared via 'const' declarations in harmony mode |
| 539 |
| 540 LET, // declared via 'let' declarations |
| 539 | 541 |
| 540 // Variables introduced by the compiler: | 542 // Variables introduced by the compiler: |
| 541 DYNAMIC, // always require dynamic lookup (we don't know | 543 DYNAMIC, // always require dynamic lookup (we don't know |
| 542 // the declaration) | 544 // the declaration) |
| 543 | 545 |
| 544 DYNAMIC_GLOBAL, // requires dynamic lookup, but we know that the | 546 DYNAMIC_GLOBAL, // requires dynamic lookup, but we know that the |
| 545 // variable is global unless it has been shadowed | 547 // variable is global unless it has been shadowed |
| 546 // by an eval-introduced variable | 548 // by an eval-introduced variable |
| 547 | 549 |
| 548 DYNAMIC_LOCAL, // requires dynamic lookup, but we know that the | 550 DYNAMIC_LOCAL, // requires dynamic lookup, but we know that the |
| (...skipping 11 matching lines...) Expand all Loading... |
| 560 | 562 |
| 561 enum ClearExceptionFlag { | 563 enum ClearExceptionFlag { |
| 562 KEEP_EXCEPTION, | 564 KEEP_EXCEPTION, |
| 563 CLEAR_EXCEPTION | 565 CLEAR_EXCEPTION |
| 564 }; | 566 }; |
| 565 | 567 |
| 566 | 568 |
| 567 } } // namespace v8::internal | 569 } } // namespace v8::internal |
| 568 | 570 |
| 569 #endif // V8_V8GLOBALS_H_ | 571 #endif // V8_V8GLOBALS_H_ |
| OLD | NEW |