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 503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
514 static const uint32_t kNaNOrInfinityLowerBoundUpper32 = 0x7FF00000; | 514 static const uint32_t kNaNOrInfinityLowerBoundUpper32 = 0x7FF00000; |
515 | 515 |
516 const uint64_t kHoleNanInt64 = | 516 const uint64_t kHoleNanInt64 = |
517 (static_cast<uint64_t>(kHoleNanUpper32) << 32) | kHoleNanLower32; | 517 (static_cast<uint64_t>(kHoleNanUpper32) << 32) | kHoleNanLower32; |
518 const uint64_t kLastNonNaNInt64 = | 518 const uint64_t kLastNonNaNInt64 = |
519 (static_cast<uint64_t>(kNaNOrInfinityLowerBoundUpper32) << 32); | 519 (static_cast<uint64_t>(kNaNOrInfinityLowerBoundUpper32) << 32); |
520 | 520 |
521 | 521 |
522 enum VariableMode { | 522 enum VariableMode { |
523 // User declared variables: | 523 // User declared variables: |
524 VAR, // declared via 'var', and 'function' declarations | 524 VAR, // declared via 'var', and 'function' declarations |
525 | 525 |
526 CONST, // declared via 'const' declarations | 526 CONST, // declared via 'const' declarations |
527 | 527 |
528 LET, // declared via 'let' declarations | 528 CONST_HARMONY, // declared via 'const' declarations in harmony mode |
| 529 |
| 530 LET, // declared via 'let' declarations |
529 | 531 |
530 // Variables introduced by the compiler: | 532 // Variables introduced by the compiler: |
531 DYNAMIC, // always require dynamic lookup (we don't know | 533 DYNAMIC, // always require dynamic lookup (we don't know |
532 // the declaration) | 534 // the declaration) |
533 | 535 |
534 DYNAMIC_GLOBAL, // requires dynamic lookup, but we know that the | 536 DYNAMIC_GLOBAL, // requires dynamic lookup, but we know that the |
535 // variable is global unless it has been shadowed | 537 // variable is global unless it has been shadowed |
536 // by an eval-introduced variable | 538 // by an eval-introduced variable |
537 | 539 |
538 DYNAMIC_LOCAL, // requires dynamic lookup, but we know that the | 540 DYNAMIC_LOCAL, // requires dynamic lookup, but we know that the |
539 // variable is local and where it is unless it | 541 // variable is local and where it is unless it |
540 // has been shadowed by an eval-introduced | 542 // has been shadowed by an eval-introduced |
541 // variable | 543 // variable |
542 | 544 |
543 INTERNAL, // like VAR, but not user-visible (may or may not | 545 INTERNAL, // like VAR, but not user-visible (may or may not |
544 // be in a context) | 546 // be in a context) |
545 | 547 |
546 TEMPORARY // temporary variables (not user-visible), never | 548 TEMPORARY // temporary variables (not user-visible), never |
547 // in a context | 549 // in a context |
548 }; | 550 }; |
549 | 551 |
550 } } // namespace v8::internal | 552 } } // namespace v8::internal |
551 | 553 |
552 #endif // V8_V8GLOBALS_H_ | 554 #endif // V8_V8GLOBALS_H_ |
OLD | NEW |