Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1210)

Side by Side Diff: src/globals.h

Issue 422923004: Track usage of "this" and "arguments" in Scope (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Do not propagate inner_uses_$foo out of normal functions, more tests Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_GLOBALS_H_ 5 #ifndef V8_GLOBALS_H_
6 #define V8_GLOBALS_H_ 6 #define V8_GLOBALS_H_
7 7
8 #include "include/v8stdint.h" 8 #include "include/v8stdint.h"
9 9
10 #include "src/base/build_config.h" 10 #include "src/base/build_config.h"
(...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after
641 }; 641 };
642 642
643 643
644 enum ScopeType { 644 enum ScopeType {
645 EVAL_SCOPE, // The top-level scope for an eval source. 645 EVAL_SCOPE, // The top-level scope for an eval source.
646 FUNCTION_SCOPE, // The top-level scope for a function. 646 FUNCTION_SCOPE, // The top-level scope for a function.
647 MODULE_SCOPE, // The scope introduced by a module literal 647 MODULE_SCOPE, // The scope introduced by a module literal
648 GLOBAL_SCOPE, // The top-level scope for a program or a top-level eval. 648 GLOBAL_SCOPE, // The top-level scope for a program or a top-level eval.
649 CATCH_SCOPE, // The scope introduced by catch. 649 CATCH_SCOPE, // The scope introduced by catch.
650 BLOCK_SCOPE, // The scope introduced by a new block. 650 BLOCK_SCOPE, // The scope introduced by a new block.
651 WITH_SCOPE // The scope introduced by with. 651 WITH_SCOPE, // The scope introduced by with.
652 ARROW_SCOPE // The top-level scope for an arrow function literal.
652 }; 653 };
653 654
654 655
655 const uint32_t kHoleNanUpper32 = 0x7FFFFFFF; 656 const uint32_t kHoleNanUpper32 = 0x7FFFFFFF;
656 const uint32_t kHoleNanLower32 = 0xFFFFFFFF; 657 const uint32_t kHoleNanLower32 = 0xFFFFFFFF;
657 const uint32_t kNaNOrInfinityLowerBoundUpper32 = 0x7FF00000; 658 const uint32_t kNaNOrInfinityLowerBoundUpper32 = 0x7FF00000;
658 659
659 const uint64_t kHoleNanInt64 = 660 const uint64_t kHoleNanInt64 =
660 (static_cast<uint64_t>(kHoleNanUpper32) << 32) | kHoleNanLower32; 661 (static_cast<uint64_t>(kHoleNanUpper32) << 32) | kHoleNanLower32;
661 const uint64_t kLastNonNaNInt64 = 662 const uint64_t kLastNonNaNInt64 =
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
803 804
804 inline bool IsConciseMethod(FunctionKind kind) { 805 inline bool IsConciseMethod(FunctionKind kind) {
805 DCHECK(IsValidFunctionKind(kind)); 806 DCHECK(IsValidFunctionKind(kind));
806 return kind & FunctionKind::kConciseMethod; 807 return kind & FunctionKind::kConciseMethod;
807 } 808 }
808 } } // namespace v8::internal 809 } } // namespace v8::internal
809 810
810 namespace i = v8::internal; 811 namespace i = v8::internal;
811 812
812 #endif // V8_GLOBALS_H_ 813 #endif // V8_GLOBALS_H_
OLDNEW
« no previous file with comments | « src/ast-value-factory.h ('k') | src/objects.h » ('j') | src/objects.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698