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

Side by Side Diff: src/isolate.h

Issue 2867013: [Isolates] CompilationCache was moved to Isolate. (Closed) Base URL: git@github.com:v8isolate/v8isolates.git
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 21 matching lines...) Expand all
32 32
33 #include "apiutils.h" 33 #include "apiutils.h"
34 #include "heap.h" 34 #include "heap.h"
35 #include "execution.h" 35 #include "execution.h"
36 #include "zone.h" 36 #include "zone.h"
37 37
38 namespace v8 { 38 namespace v8 {
39 namespace internal { 39 namespace internal {
40 40
41 class Bootstrapper; 41 class Bootstrapper;
42 class CompilationCache;
42 class ContextSlotCache; 43 class ContextSlotCache;
43 class CpuFeatures; 44 class CpuFeatures;
44 class Deserializer; 45 class Deserializer;
45 class HandleScopeImplementer; 46 class HandleScopeImplementer;
46 class SaveContext; 47 class SaveContext;
47 class StubCache; 48 class StubCache;
48 class ScannerCharacterClasses; 49 class ScannerCharacterClasses;
49 50
50 class ThreadLocalTop BASE_EMBEDDED { 51 class ThreadLocalTop BASE_EMBEDDED {
51 public: 52 public:
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 ISOLATE_INIT_ARRAY_LIST(GLOBAL_ARRAY_ACCESSOR) 189 ISOLATE_INIT_ARRAY_LIST(GLOBAL_ARRAY_ACCESSOR)
189 #undef GLOBAL_ARRAY_ACCESSOR 190 #undef GLOBAL_ARRAY_ACCESSOR
190 191
191 // Debug. 192 // Debug.
192 // Mutex for serializing access to break control structures. 193 // Mutex for serializing access to break control structures.
193 Mutex* break_access() { return break_access_; } 194 Mutex* break_access() { return break_access_; }
194 195
195 // Accessors. 196 // Accessors.
196 Bootstrapper* bootstrapper() { return bootstrapper_; } 197 Bootstrapper* bootstrapper() { return bootstrapper_; }
197 CpuFeatures* cpu_features() { return cpu_features_; } 198 CpuFeatures* cpu_features() { return cpu_features_; }
199 CompilationCache* compilation_cache() { return compilation_cache_; }
198 StackGuard* stack_guard() { return &stack_guard_; } 200 StackGuard* stack_guard() { return &stack_guard_; }
199 Heap* heap() { return &heap_; } 201 Heap* heap() { return &heap_; }
200 StubCache* stub_cache() { return stub_cache_; } 202 StubCache* stub_cache() { return stub_cache_; }
201 ThreadLocalTop* thread_local_top() { return &thread_local_top_; } 203 ThreadLocalTop* thread_local_top() { return &thread_local_top_; }
202 204
203 TranscendentalCache* transcendental_cache() const { 205 TranscendentalCache* transcendental_cache() const {
204 return transcendental_cache_; 206 return transcendental_cache_;
205 } 207 }
206 208
207 KeyedLookupCache* keyed_lookup_cache() { 209 KeyedLookupCache* keyed_lookup_cache() {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 256
255 enum State { 257 enum State {
256 UNINITIALIZED, // Some components may not have been allocated. 258 UNINITIALIZED, // Some components may not have been allocated.
257 PREINITIALIZED, // Components have been allocated but not initialized. 259 PREINITIALIZED, // Components have been allocated but not initialized.
258 INITIALIZED // All components are fully initialized. 260 INITIALIZED // All components are fully initialized.
259 }; 261 };
260 262
261 State state_; 263 State state_;
262 264
263 Bootstrapper* bootstrapper_; 265 Bootstrapper* bootstrapper_;
266 CompilationCache* compilation_cache_;
264 CpuFeatures* cpu_features_; 267 CpuFeatures* cpu_features_;
265 Mutex* break_access_; 268 Mutex* break_access_;
266 Heap heap_; 269 Heap heap_;
267 StackGuard stack_guard_; 270 StackGuard stack_guard_;
268 StubCache* stub_cache_; 271 StubCache* stub_cache_;
269 ThreadLocalTop thread_local_top_; 272 ThreadLocalTop thread_local_top_;
270 TranscendentalCache* transcendental_cache_; 273 TranscendentalCache* transcendental_cache_;
271 KeyedLookupCache* keyed_lookup_cache_; 274 KeyedLookupCache* keyed_lookup_cache_;
272 ContextSlotCache* context_slot_cache_; 275 ContextSlotCache* context_slot_cache_;
273 DescriptorLookupCache* descriptor_lookup_cache_; 276 DescriptorLookupCache* descriptor_lookup_cache_;
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 347
345 348
346 // Temporary macro to be used to flag classes that are completely converted 349 // Temporary macro to be used to flag classes that are completely converted
347 // to be isolate-friendly. Their mix of static/nonstatic methods/fields is 350 // to be isolate-friendly. Their mix of static/nonstatic methods/fields is
348 // correct. 351 // correct.
349 #define ISOLATED_CLASS class 352 #define ISOLATED_CLASS class
350 353
351 } } // namespace v8::internal 354 } } // namespace v8::internal
352 355
353 #endif // V8_ISOLATE_H_ 356 #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