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

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

Issue 2331323006: Store whether a with scope is actually a debug-eval scope in the scope info (Closed)
Patch Set: Created 4 years, 3 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 | « src/ast/scopeinfo.cc ('k') | src/debug/debug-evaluate.cc » ('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/base/hashmap.h" 8 #include "src/base/hashmap.h"
9 #include "src/globals.h" 9 #include "src/globals.h"
10 #include "src/objects.h" 10 #include "src/objects.h"
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 // Check that the scope has positions assigned. 402 // Check that the scope has positions assigned.
403 void CheckScopePositions(); 403 void CheckScopePositions();
404 404
405 // Check that all Scopes in the scope tree use the same Zone. 405 // Check that all Scopes in the scope tree use the same Zone.
406 void CheckZones(); 406 void CheckZones();
407 #endif 407 #endif
408 408
409 // Retrieve `IsSimpleParameterList` of current or outer function. 409 // Retrieve `IsSimpleParameterList` of current or outer function.
410 bool HasSimpleParameters(); 410 bool HasSimpleParameters();
411 void set_is_debug_evaluate_scope() { is_debug_evaluate_scope_ = true; } 411 void set_is_debug_evaluate_scope() { is_debug_evaluate_scope_ = true; }
412 bool is_debug_evaluate_scope() const { return is_debug_evaluate_scope_; }
412 413
413 protected: 414 protected:
414 explicit Scope(Zone* zone); 415 explicit Scope(Zone* zone);
415 416
416 void set_language_mode(LanguageMode language_mode) { 417 void set_language_mode(LanguageMode language_mode) {
417 is_strict_ = is_strict(language_mode); 418 is_strict_ = is_strict(language_mode);
418 } 419 }
419 420
420 private: 421 private:
421 Variable* Declare(Zone* zone, Scope* scope, const AstRawString* name, 422 Variable* Declare(Zone* zone, Scope* scope, const AstRawString* name,
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
858 void AllocateModuleVariables(); 859 void AllocateModuleVariables();
859 860
860 private: 861 private:
861 ModuleDescriptor* module_descriptor_; 862 ModuleDescriptor* module_descriptor_;
862 }; 863 };
863 864
864 } // namespace internal 865 } // namespace internal
865 } // namespace v8 866 } // namespace v8
866 867
867 #endif // V8_AST_SCOPES_H_ 868 #endif // V8_AST_SCOPES_H_
OLDNEW
« no previous file with comments | « src/ast/scopeinfo.cc ('k') | src/debug/debug-evaluate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698