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

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

Issue 2197973002: Move ContextSlotCache to its own file (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 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
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 #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
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
OLDNEW
« src/ast/scopeinfo.h ('K') | « src/ast/scopeinfo.cc ('k') | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698