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

Side by Side Diff: src/compilation-cache.h

Issue 7274024: Suspend runtime profiler as soon as we exit JS. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/compilation-cache.cc » ('j') | src/compilation-cache.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2008 the V8 project authors. All rights reserved. 1 // Copyright 2008 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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 Handle<Context> context, 216 Handle<Context> context,
217 bool is_global, 217 bool is_global,
218 Handle<SharedFunctionInfo> function_info); 218 Handle<SharedFunctionInfo> function_info);
219 219
220 // Associate the (source, flags) pair to the given regexp data. 220 // Associate the (source, flags) pair to the given regexp data.
221 // This may overwrite an existing mapping. 221 // This may overwrite an existing mapping.
222 void PutRegExp(Handle<String> source, 222 void PutRegExp(Handle<String> source,
223 JSRegExp::Flags flags, 223 JSRegExp::Flags flags,
224 Handle<FixedArray> data); 224 Handle<FixedArray> data);
225 225
226 // Support for eager optimization tracking.
227 bool ShouldOptimizeEagerly(Handle<JSFunction> function);
228 void MarkForEagerOptimizing(Handle<JSFunction> function);
229 void MarkForLazyOptimizing(Handle<JSFunction> function);
230
231 // Reset the eager optimization tracking data.
232 void ResetEagerOptimizingData();
233
234 // Clear the cache - also used to initialize the cache at startup. 226 // Clear the cache - also used to initialize the cache at startup.
235 void Clear(); 227 void Clear();
236 228
237 // Remove given shared function info from all caches. 229 // Remove given shared function info from all caches.
238 void Remove(Handle<SharedFunctionInfo> function_info); 230 void Remove(Handle<SharedFunctionInfo> function_info);
239 231
240 // GC support. 232 // GC support.
241 void Iterate(ObjectVisitor* v); 233 void Iterate(ObjectVisitor* v);
242 void IterateFunctions(ObjectVisitor* v); 234 void IterateFunctions(ObjectVisitor* v);
243 235
(...skipping 23 matching lines...) Expand all
267 259
268 CompilationCacheScript script_; 260 CompilationCacheScript script_;
269 CompilationCacheEval eval_global_; 261 CompilationCacheEval eval_global_;
270 CompilationCacheEval eval_contextual_; 262 CompilationCacheEval eval_contextual_;
271 CompilationCacheRegExp reg_exp_; 263 CompilationCacheRegExp reg_exp_;
272 CompilationSubCache* subcaches_[kSubCacheCount]; 264 CompilationSubCache* subcaches_[kSubCacheCount];
273 265
274 // Current enable state of the compilation cache. 266 // Current enable state of the compilation cache.
275 bool enabled_; 267 bool enabled_;
276 268
277 HashMap* eager_optimizing_set_;
278
279 friend class Isolate; 269 friend class Isolate;
280 270
281 DISALLOW_COPY_AND_ASSIGN(CompilationCache); 271 DISALLOW_COPY_AND_ASSIGN(CompilationCache);
282 }; 272 };
283 273
284 274
285 } } // namespace v8::internal 275 } } // namespace v8::internal
286 276
287 #endif // V8_COMPILATION_CACHE_H_ 277 #endif // V8_COMPILATION_CACHE_H_
OLDNEW
« no previous file with comments | « no previous file | src/compilation-cache.cc » ('j') | src/compilation-cache.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698