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

Side by Side Diff: src/ast/context-slot-cache.h

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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2016 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_AST_SCOPEINFO_H_ 5 #ifndef V8_AST_CONTEXT_SLOT_CACHE_H_
6 #define V8_AST_SCOPEINFO_H_ 6 #define V8_AST_CONTEXT_SLOT_CACHE_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/ast/modules.h" 9 #include "src/ast/modules.h"
10 #include "src/ast/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.
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 uint32_t value_; 100 uint32_t value_;
101 }; 101 };
102 102
103 Key keys_[kLength]; 103 Key keys_[kLength];
104 uint32_t values_[kLength]; 104 uint32_t values_[kLength];
105 105
106 friend class Isolate; 106 friend class Isolate;
107 DISALLOW_COPY_AND_ASSIGN(ContextSlotCache); 107 DISALLOW_COPY_AND_ASSIGN(ContextSlotCache);
108 }; 108 };
109 109
110
111 } // namespace internal 110 } // namespace internal
112 } // namespace v8 111 } // namespace v8
113 112
114 #endif // V8_AST_SCOPEINFO_H_ 113 #endif // V8_AST_CONTEXT_SLOT_CACHE_H_
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | src/ast/context-slot-cache.cc » ('j') | src/ast/scopeinfo.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698