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

Side by Side Diff: src/isolate.h

Issue 2816006: [Isolates] KeyedLookupCache / DescriptorLookupCache / ContextSlotCache moved to Isolate. (Closed)
Patch Set: Created 10 years, 6 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/heap.cc ('k') | src/isolate.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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 19 matching lines...) Expand all
30 30
31 #include "apiutils.h" 31 #include "apiutils.h"
32 #include "heap.h" 32 #include "heap.h"
33 #include "execution.h" 33 #include "execution.h"
34 #include "zone.h" 34 #include "zone.h"
35 35
36 namespace v8 { 36 namespace v8 {
37 namespace internal { 37 namespace internal {
38 38
39 class Bootstrapper; 39 class Bootstrapper;
40 class ContextSlotCache;
40 class Deserializer; 41 class Deserializer;
41 class HandleScopeImplementer; 42 class HandleScopeImplementer;
42 class SaveContext; 43 class SaveContext;
43 class StubCache; 44 class StubCache;
44 45
45 class ThreadLocalTop BASE_EMBEDDED { 46 class ThreadLocalTop BASE_EMBEDDED {
46 public: 47 public:
47 // Initialize the thread data. 48 // Initialize the thread data.
48 void Initialize(); 49 void Initialize();
49 50
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 // Mutex for serializing access to break control structures. 158 // Mutex for serializing access to break control structures.
158 Mutex* break_access() { return break_access_; } 159 Mutex* break_access() { return break_access_; }
159 160
160 // Accessors. 161 // Accessors.
161 Bootstrapper* bootstrapper() { return bootstrapper_; } 162 Bootstrapper* bootstrapper() { return bootstrapper_; }
162 StackGuard* stack_guard() { return &stack_guard_; } 163 StackGuard* stack_guard() { return &stack_guard_; }
163 Heap* heap() { return &heap_; } 164 Heap* heap() { return &heap_; }
164 StubCache* stub_cache() { return stub_cache_; } 165 StubCache* stub_cache() { return stub_cache_; }
165 ThreadLocalTop* thread_local_top() { return &thread_local_top_; } 166 ThreadLocalTop* thread_local_top() { return &thread_local_top_; }
166 167
167 TranscendentalCache* transcendental_cache() const { 168 TranscendentalCache* transcendental_cache() {
168 return transcendental_cache_; 169 return transcendental_cache_;
169 } 170 }
170 171
172 KeyedLookupCache* keyed_lookup_cache() {
173 return keyed_lookup_cache_;
174 }
175
176 ContextSlotCache* context_slot_cache() {
177 return context_slot_cache_;
178 }
179
180 DescriptorLookupCache* descriptor_lookup_cache() {
181 return descriptor_lookup_cache_;
182 }
183
171 v8::ImplementationUtilities::HandleScopeData* handle_scope_data() { 184 v8::ImplementationUtilities::HandleScopeData* handle_scope_data() {
172 return &handle_scope_data_; 185 return &handle_scope_data_;
173 } 186 }
174 HandleScopeImplementer* handle_scope_implementer() { 187 HandleScopeImplementer* handle_scope_implementer() {
175 ASSERT(handle_scope_implementer_); 188 ASSERT(handle_scope_implementer_);
176 return handle_scope_implementer_; 189 return handle_scope_implementer_;
177 } 190 }
178 Zone* zone() { return &zone_; } 191 Zone* zone() { return &zone_; }
179 192
180 // SerializerDeserializer state. 193 // SerializerDeserializer state.
(...skipping 23 matching lines...) Expand all
204 217
205 State state_; 218 State state_;
206 219
207 Bootstrapper* bootstrapper_; 220 Bootstrapper* bootstrapper_;
208 Mutex* break_access_; 221 Mutex* break_access_;
209 Heap heap_; 222 Heap heap_;
210 StackGuard stack_guard_; 223 StackGuard stack_guard_;
211 StubCache* stub_cache_; 224 StubCache* stub_cache_;
212 ThreadLocalTop thread_local_top_; 225 ThreadLocalTop thread_local_top_;
213 TranscendentalCache* transcendental_cache_; 226 TranscendentalCache* transcendental_cache_;
227 KeyedLookupCache* keyed_lookup_cache_;
228 ContextSlotCache* context_slot_cache_;
229 DescriptorLookupCache* descriptor_lookup_cache_;
214 v8::ImplementationUtilities::HandleScopeData handle_scope_data_; 230 v8::ImplementationUtilities::HandleScopeData handle_scope_data_;
215 HandleScopeImplementer* handle_scope_implementer_; 231 HandleScopeImplementer* handle_scope_implementer_;
216 Zone zone_; 232 Zone zone_;
217 233
218 #define GLOBAL_BACKING_STORE(type, name, initialvalue) \ 234 #define GLOBAL_BACKING_STORE(type, name, initialvalue) \
219 type name##_; 235 type name##_;
220 ISOLATE_INIT_LIST(GLOBAL_BACKING_STORE) 236 ISOLATE_INIT_LIST(GLOBAL_BACKING_STORE)
221 #undef GLOBAL_BACKING_STORE 237 #undef GLOBAL_BACKING_STORE
222 238
223 #define GLOBAL_ARRAY_BACKING_STORE(type, name, length) \ 239 #define GLOBAL_ARRAY_BACKING_STORE(type, name, length) \
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 299
284 300
285 // Temporary macro to be used to flag classes that are completely converted 301 // Temporary macro to be used to flag classes that are completely converted
286 // to be isolate-friendly. Their mix of static/nonstatic methods/fields is 302 // to be isolate-friendly. Their mix of static/nonstatic methods/fields is
287 // correct. 303 // correct.
288 #define ISOLATED_CLASS class 304 #define ISOLATED_CLASS class
289 305
290 } } // namespace v8::internal 306 } } // namespace v8::internal
291 307
292 #endif // V8_ISOLATE_H_ 308 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698