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

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

Issue 2507063004: [ast] Fix typo in {Scope::set_asm_function} method. (Closed)
Patch Set: Created 4 years, 1 month 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 | test/cctest/test-parsing.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/compiler-specific.h" 8 #include "src/base/compiler-specific.h"
9 #include "src/base/hashmap.h" 9 #include "src/base/hashmap.h"
10 #include "src/globals.h" 10 #include "src/globals.h"
(...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after
617 617
618 void SetScriptScopeInfo(Handle<ScopeInfo> scope_info) { 618 void SetScriptScopeInfo(Handle<ScopeInfo> scope_info) {
619 DCHECK(is_script_scope()); 619 DCHECK(is_script_scope());
620 DCHECK(scope_info_.is_null()); 620 DCHECK(scope_info_.is_null());
621 scope_info_ = scope_info; 621 scope_info_ = scope_info;
622 } 622 }
623 623
624 bool asm_module() const { return asm_module_; } 624 bool asm_module() const { return asm_module_; }
625 void set_asm_module(); 625 void set_asm_module();
626 bool asm_function() const { return asm_function_; } 626 bool asm_function() const { return asm_function_; }
627 void set_asm_function() { asm_module_ = true; } 627 void set_asm_function() { asm_function_ = true; }
628 628
629 void DeclareThis(AstValueFactory* ast_value_factory); 629 void DeclareThis(AstValueFactory* ast_value_factory);
630 void DeclareArguments(AstValueFactory* ast_value_factory); 630 void DeclareArguments(AstValueFactory* ast_value_factory);
631 void DeclareDefaultFunctionVariables(AstValueFactory* ast_value_factory); 631 void DeclareDefaultFunctionVariables(AstValueFactory* ast_value_factory);
632 632
633 // Declare the function variable for a function literal. This variable 633 // Declare the function variable for a function literal. This variable
634 // is in an intermediate scope between this function scope and the the 634 // is in an intermediate scope between this function scope and the the
635 // outer scope. Only possible for function scopes; at most one variable. 635 // outer scope. Only possible for function scopes; at most one variable.
636 // 636 //
637 // This function needs to be called after all other variables have been 637 // This function needs to be called after all other variables have been
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
854 void AllocateModuleVariables(); 854 void AllocateModuleVariables();
855 855
856 private: 856 private:
857 ModuleDescriptor* module_descriptor_; 857 ModuleDescriptor* module_descriptor_;
858 }; 858 };
859 859
860 } // namespace internal 860 } // namespace internal
861 } // namespace v8 861 } // namespace v8
862 862
863 #endif // V8_AST_SCOPES_H_ 863 #endif // V8_AST_SCOPES_H_
OLDNEW
« no previous file with comments | « no previous file | test/cctest/test-parsing.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698