OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |