OLD | NEW |
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 #include "src/ast/scopes.h" | 5 #include "src/ast/scopes.h" |
6 | 6 |
7 #include "src/accessors.h" | 7 #include "src/accessors.h" |
8 #include "src/ast/scopeinfo.h" | |
9 #include "src/bootstrapper.h" | 8 #include "src/bootstrapper.h" |
10 #include "src/messages.h" | 9 #include "src/messages.h" |
11 #include "src/parsing/parser.h" // for ParseInfo | 10 #include "src/parsing/parser.h" // for ParseInfo |
12 | 11 |
13 namespace v8 { | 12 namespace v8 { |
14 namespace internal { | 13 namespace internal { |
15 | 14 |
16 // ---------------------------------------------------------------------------- | 15 // ---------------------------------------------------------------------------- |
17 // Implementation of LocalsMap | 16 // Implementation of LocalsMap |
18 // | 17 // |
(...skipping 1558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1577 function_ != NULL && function_->proxy()->var()->IsContextSlot(); | 1576 function_ != NULL && function_->proxy()->var()->IsContextSlot(); |
1578 return num_heap_slots() - Context::MIN_CONTEXT_SLOTS - num_global_slots() - | 1577 return num_heap_slots() - Context::MIN_CONTEXT_SLOTS - num_global_slots() - |
1579 (is_function_var_in_context ? 1 : 0); | 1578 (is_function_var_in_context ? 1 : 0); |
1580 } | 1579 } |
1581 | 1580 |
1582 | 1581 |
1583 int Scope::ContextGlobalCount() const { return num_global_slots(); } | 1582 int Scope::ContextGlobalCount() const { return num_global_slots(); } |
1584 | 1583 |
1585 } // namespace internal | 1584 } // namespace internal |
1586 } // namespace v8 | 1585 } // namespace v8 |
OLD | NEW |