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

Side by Side Diff: src/scopes.cc

Issue 1297583002: Remove grab-bag includes of v8.h from several files. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_cleanup-includes-heap-1
Patch Set: Fix Windows compilation. Created 5 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
« no previous file with comments | « src/safepoint-table.cc ('k') | src/strtod.h » ('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 #include "src/v8.h" 5 #include "src/scopes.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/bootstrapper.h" 8 #include "src/bootstrapper.h"
9 #include "src/messages.h" 9 #include "src/messages.h"
10 #include "src/parser.h" 10 #include "src/parser.h"
11 #include "src/scopeinfo.h" 11 #include "src/scopeinfo.h"
12 #include "src/scopes.h"
13 12
14 namespace v8 { 13 namespace v8 {
15 namespace internal { 14 namespace internal {
16 15
17 // ---------------------------------------------------------------------------- 16 // ----------------------------------------------------------------------------
18 // Implementation of LocalsMap 17 // Implementation of LocalsMap
19 // 18 //
20 // Note: We are storing the handle locations as key values in the hash map. 19 // Note: We are storing the handle locations as key values in the hash map.
21 // When inserting a new variable via Declare(), we rely on the fact that 20 // When inserting a new variable via Declare(), we rely on the fact that
22 // the handle location remains alive for the duration of that variable 21 // the handle location remains alive for the duration of that variable
(...skipping 1588 matching lines...) Expand 10 before | Expand all | Expand 10 after
1611 function_ != NULL && function_->proxy()->var()->IsContextSlot(); 1610 function_ != NULL && function_->proxy()->var()->IsContextSlot();
1612 return num_heap_slots() - Context::MIN_CONTEXT_SLOTS - num_global_slots() - 1611 return num_heap_slots() - Context::MIN_CONTEXT_SLOTS - num_global_slots() -
1613 (is_function_var_in_context ? 1 : 0); 1612 (is_function_var_in_context ? 1 : 0);
1614 } 1613 }
1615 1614
1616 1615
1617 int Scope::ContextGlobalCount() const { return num_global_slots(); } 1616 int Scope::ContextGlobalCount() const { return num_global_slots(); }
1618 1617
1619 } // namespace internal 1618 } // namespace internal
1620 } // namespace v8 1619 } // namespace v8
OLDNEW
« no previous file with comments | « src/safepoint-table.cc ('k') | src/strtod.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698