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 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 // provided to a call. | 454 // provided to a call. |
455 enum CallKind { | 455 enum CallKind { |
456 CALL_AS_METHOD, | 456 CALL_AS_METHOD, |
457 CALL_AS_FUNCTION | 457 CALL_AS_FUNCTION |
458 }; | 458 }; |
459 | 459 |
460 | 460 |
461 enum ScopeType { | 461 enum ScopeType { |
462 EVAL_SCOPE, // The top-level scope for an eval source. | 462 EVAL_SCOPE, // The top-level scope for an eval source. |
463 FUNCTION_SCOPE, // The top-level scope for a function. | 463 FUNCTION_SCOPE, // The top-level scope for a function. |
| 464 MODULE_SCOPE, // The scope introduced by a module literal |
464 GLOBAL_SCOPE, // The top-level scope for a program or a top-level eval. | 465 GLOBAL_SCOPE, // The top-level scope for a program or a top-level eval. |
465 CATCH_SCOPE, // The scope introduced by catch. | 466 CATCH_SCOPE, // The scope introduced by catch. |
466 BLOCK_SCOPE, // The scope introduced by a new block. | 467 BLOCK_SCOPE, // The scope introduced by a new block. |
467 WITH_SCOPE // The scope introduced by with. | 468 WITH_SCOPE // The scope introduced by with. |
468 }; | 469 }; |
469 | 470 |
470 | 471 |
471 const uint32_t kHoleNanUpper32 = 0x7FFFFFFF; | 472 const uint32_t kHoleNanUpper32 = 0x7FFFFFFF; |
472 const uint32_t kHoleNanLower32 = 0xFFFFFFFF; | 473 const uint32_t kHoleNanLower32 = 0xFFFFFFFF; |
473 const uint32_t kNaNOrInfinityLowerBoundUpper32 = 0x7FF00000; | 474 const uint32_t kNaNOrInfinityLowerBoundUpper32 = 0x7FF00000; |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
548 | 549 |
549 enum ClearExceptionFlag { | 550 enum ClearExceptionFlag { |
550 KEEP_EXCEPTION, | 551 KEEP_EXCEPTION, |
551 CLEAR_EXCEPTION | 552 CLEAR_EXCEPTION |
552 }; | 553 }; |
553 | 554 |
554 | 555 |
555 } } // namespace v8::internal | 556 } } // namespace v8::internal |
556 | 557 |
557 #endif // V8_V8GLOBALS_H_ | 558 #endif // V8_V8GLOBALS_H_ |
OLD | NEW |