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

Side by Side Diff: src/ast/scopeinfo.h

Issue 1481613002: Create ast/ and parsing/ subdirectories and move appropriate files (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 5 years 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/prettyprinter.cc ('k') | src/ast/scopeinfo.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 #ifndef V8_SCOPEINFO_H_ 5 #ifndef V8_AST_SCOPEINFO_H_
6 #define V8_SCOPEINFO_H_ 6 #define V8_AST_SCOPEINFO_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/modules.h" 9 #include "src/ast/modules.h"
10 #include "src/variables.h" 10 #include "src/ast/variables.h"
11 11
12 namespace v8 { 12 namespace v8 {
13 namespace internal { 13 namespace internal {
14 14
15 // Cache for mapping (data, property name) into context slot index. 15 // Cache for mapping (data, property name) into context slot index.
16 // The cache contains both positive and negative results. 16 // The cache contains both positive and negative results.
17 // Slot index equals -1 means the property is absent. 17 // Slot index equals -1 means the property is absent.
18 // Cleared at startup and prior to mark sweep collection. 18 // Cleared at startup and prior to mark sweep collection.
19 class ContextSlotCache { 19 class ContextSlotCache {
20 public: 20 public:
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 } 165 }
166 void set_index(int i, int index) { 166 void set_index(int i, int index) {
167 set(index_offset(i), Smi::FromInt(index)); 167 set(index_offset(i), Smi::FromInt(index));
168 } 168 }
169 }; 169 };
170 170
171 171
172 } // namespace internal 172 } // namespace internal
173 } // namespace v8 173 } // namespace v8
174 174
175 #endif // V8_SCOPEINFO_H_ 175 #endif // V8_AST_SCOPEINFO_H_
OLDNEW
« no previous file with comments | « src/ast/prettyprinter.cc ('k') | src/ast/scopeinfo.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698