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

Side by Side Diff: src/crankshaft/typing.cc

Issue 2275943005: [modules] Minor refactorings in scopes and scopeinfos. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@modules-serialize-entry
Patch Set: Rebase. 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/scopes.cc ('k') | src/debug/liveedit.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 #include "src/crankshaft/typing.h" 5 #include "src/crankshaft/typing.h"
6 6
7 #include "src/ast/scopes.h" 7 #include "src/ast/scopes.h"
8 #include "src/frames.h" 8 #include "src/frames.h"
9 #include "src/frames-inl.h" 9 #include "src/frames-inl.h"
10 #include "src/ostreams.h" 10 #include "src/ostreams.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 store_.LookupBounds(parameter_index(-1)).lower); 80 store_.LookupBounds(parameter_index(-1)).lower);
81 81
82 for (int i = 0; i < params; i++) { 82 for (int i = 0; i < params; i++) {
83 PrintObserved(scope_->parameter(i), frame->GetParameter(i), 83 PrintObserved(scope_->parameter(i), frame->GetParameter(i),
84 store_.LookupBounds(parameter_index(i)).lower); 84 store_.LookupBounds(parameter_index(i)).lower);
85 } 85 }
86 86
87 ZoneList<Variable*> local_vars(locals, zone()); 87 ZoneList<Variable*> local_vars(locals, zone());
88 ZoneList<Variable*> context_vars(scope_->ContextLocalCount(), zone()); 88 ZoneList<Variable*> context_vars(scope_->ContextLocalCount(), zone());
89 ZoneList<Variable*> global_vars(scope_->ContextGlobalCount(), zone()); 89 ZoneList<Variable*> global_vars(scope_->ContextGlobalCount(), zone());
90 scope_->CollectStackAndContextLocals(&local_vars, &context_vars, 90 scope_->CollectVariables(&local_vars, &context_vars, &global_vars);
91 &global_vars);
92 for (int i = 0; i < locals; i++) { 91 for (int i = 0; i < locals; i++) {
93 PrintObserved(local_vars.at(i), 92 PrintObserved(local_vars.at(i),
94 frame->GetExpression(i), 93 frame->GetExpression(i),
95 store_.LookupBounds(stack_local_index(i)).lower); 94 store_.LookupBounds(stack_local_index(i)).lower);
96 } 95 }
97 } 96 }
98 #endif // OBJECT_PRINT 97 #endif // OBJECT_PRINT
99 } 98 }
100 99
101 100
(...skipping 678 matching lines...) Expand 10 before | Expand all | Expand 10 after
780 } 779 }
781 780
782 781
783 void AstTyper::VisitFunctionDeclaration(FunctionDeclaration* declaration) { 782 void AstTyper::VisitFunctionDeclaration(FunctionDeclaration* declaration) {
784 RECURSE(Visit(declaration->fun())); 783 RECURSE(Visit(declaration->fun()));
785 } 784 }
786 785
787 786
788 } // namespace internal 787 } // namespace internal
789 } // namespace v8 788 } // namespace v8
OLDNEW
« no previous file with comments | « src/ast/scopes.cc ('k') | src/debug/liveedit.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698