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

Side by Side Diff: src/ast/scopes.h

Issue 2257703003: Replace LANGUAGE_END with LAST_LANGUAGE_MODE (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 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
« no previous file with comments | « no previous file | src/code-stubs.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_AST_SCOPES_H_ 5 #ifndef V8_AST_SCOPES_H_
6 #define V8_AST_SCOPES_H_ 6 #define V8_AST_SCOPES_H_
7 7
8 #include "src/ast/ast.h" 8 #include "src/ast/ast.h"
9 #include "src/base/hashmap.h" 9 #include "src/base/hashmap.h"
10 #include "src/globals.h" 10 #include "src/globals.h"
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 int num_stack_slots_; 489 int num_stack_slots_;
490 int num_heap_slots_; 490 int num_heap_slots_;
491 int num_global_slots_; 491 int num_global_slots_;
492 492
493 // The scope type. 493 // The scope type.
494 const ScopeType scope_type_; 494 const ScopeType scope_type_;
495 495
496 // Scope-specific information computed during parsing. 496 // Scope-specific information computed during parsing.
497 // 497 //
498 // The language mode of this scope. 498 // The language mode of this scope.
499 STATIC_ASSERT(LANGUAGE_END == 2); 499 STATIC_ASSERT(LAST_LANGUAGE_MODE == 1);
500 LanguageMode language_mode_ : 1; 500 LanguageMode language_mode_ : 1;
501 // This scope is inside a 'with' of some outer scope. 501 // This scope is inside a 'with' of some outer scope.
502 bool scope_inside_with_ : 1; 502 bool scope_inside_with_ : 1;
503 // This scope or a nested catch scope or with scope contain an 'eval' call. At 503 // This scope or a nested catch scope or with scope contain an 'eval' call. At
504 // the 'eval' call site this scope is the declaration scope. 504 // the 'eval' call site this scope is the declaration scope.
505 bool scope_calls_eval_ : 1; 505 bool scope_calls_eval_ : 1;
506 // This scope uses "super" property ('super.foo'). 506 // This scope uses "super" property ('super.foo').
507 bool scope_uses_super_property_ : 1; 507 bool scope_uses_super_property_ : 1;
508 // This scope has a parameter called "arguments". 508 // This scope has a parameter called "arguments".
509 bool has_arguments_parameter_ : 1; 509 bool has_arguments_parameter_ : 1;
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
891 void AllocateModuleVariables(); 891 void AllocateModuleVariables();
892 892
893 private: 893 private:
894 ModuleDescriptor* module_descriptor_; 894 ModuleDescriptor* module_descriptor_;
895 }; 895 };
896 896
897 } // namespace internal 897 } // namespace internal
898 } // namespace v8 898 } // namespace v8
899 899
900 #endif // V8_AST_SCOPES_H_ 900 #endif // V8_AST_SCOPES_H_
OLDNEW
« no previous file with comments | « no previous file | src/code-stubs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698