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

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

Issue 2304853002: Revert of Allow lexically declared "arguments" in function scope in sloppy mode. (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 | « no previous file | src/ast/scopes.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/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 608 matching lines...) Expand 10 before | Expand all | Expand 10 after
619 DCHECK(scope_info_.is_null()); 619 DCHECK(scope_info_.is_null());
620 scope_info_ = scope_info; 620 scope_info_ = scope_info;
621 } 621 }
622 622
623 bool asm_module() const { return asm_module_; } 623 bool asm_module() const { return asm_module_; }
624 void set_asm_module(); 624 void set_asm_module();
625 bool asm_function() const { return asm_function_; } 625 bool asm_function() const { return asm_function_; }
626 void set_asm_function() { asm_module_ = true; } 626 void set_asm_function() { asm_module_ = true; }
627 627
628 void DeclareThis(AstValueFactory* ast_value_factory); 628 void DeclareThis(AstValueFactory* ast_value_factory);
629 void DeclareArguments(AstValueFactory* ast_value_factory);
630 void DeclareDefaultFunctionVariables(AstValueFactory* ast_value_factory); 629 void DeclareDefaultFunctionVariables(AstValueFactory* ast_value_factory);
631 630
632 // This lookup corresponds to a lookup in the "intermediate" scope sitting 631 // This lookup corresponds to a lookup in the "intermediate" scope sitting
633 // between this scope and the outer scope. (ECMA-262, 3rd., requires that 632 // between this scope and the outer scope. (ECMA-262, 3rd., requires that
634 // the name of named function literal is kept in an intermediate scope 633 // the name of named function literal is kept in an intermediate scope
635 // in between this scope and the next outer scope.) 634 // in between this scope and the next outer scope.)
636 Variable* LookupFunctionVar(const AstRawString* name); 635 Variable* LookupFunctionVar(const AstRawString* name);
637 636
638 // Declare the function variable for a function literal. This variable 637 // Declare the function variable for a function literal. This variable
639 // is in an intermediate scope between this function scope and the the 638 // is in an intermediate scope between this function scope and the the
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
853 void AllocateModuleVariables(); 852 void AllocateModuleVariables();
854 853
855 private: 854 private:
856 ModuleDescriptor* module_descriptor_; 855 ModuleDescriptor* module_descriptor_;
857 }; 856 };
858 857
859 } // namespace internal 858 } // namespace internal
860 } // namespace v8 859 } // namespace v8
861 860
862 #endif // V8_AST_SCOPES_H_ 861 #endif // V8_AST_SCOPES_H_
OLDNEW
« no previous file with comments | « no previous file | src/ast/scopes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698