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

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

Issue 2632003: Flushing of code from functions that we expect not to use again.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/compilation-cache.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 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 72
73 // Associate the (source, flags) pair to the given regexp data. 73 // Associate the (source, flags) pair to the given regexp data.
74 // This may overwrite an existing mapping. 74 // This may overwrite an existing mapping.
75 static void PutRegExp(Handle<String> source, 75 static void PutRegExp(Handle<String> source,
76 JSRegExp::Flags flags, 76 JSRegExp::Flags flags,
77 Handle<FixedArray> data); 77 Handle<FixedArray> data);
78 78
79 // Clear the cache - also used to initialize the cache at startup. 79 // Clear the cache - also used to initialize the cache at startup.
80 static void Clear(); 80 static void Clear();
81 81
82
83 static bool HasFunction(SharedFunctionInfo* function_info);
84
82 // GC support. 85 // GC support.
83 static void Iterate(ObjectVisitor* v); 86 static void Iterate(ObjectVisitor* v);
84 87
85 // Notify the cache that a mark-sweep garbage collection is about to 88 // Notify the cache that a mark-sweep garbage collection is about to
86 // take place. This is used to retire entries from the cache to 89 // take place. This is used to retire entries from the cache to
87 // avoid keeping them alive too long without using them. 90 // avoid keeping them alive too long without using them.
88 static void MarkCompactPrologue(); 91 static void MarkCompactPrologue();
89 92
90 // Enable/disable compilation cache. Used by debugger to disable compilation 93 // Enable/disable compilation cache. Used by debugger to disable compilation
91 // cache during debugging to make sure new scripts are always compiled. 94 // cache during debugging to make sure new scripts are always compiled.
92 static void Enable(); 95 static void Enable();
93 static void Disable(); 96 static void Disable();
94 }; 97 };
95 98
96 99
97 } } // namespace v8::internal 100 } } // namespace v8::internal
98 101
99 #endif // V8_COMPILATION_CACHE_H_ 102 #endif // V8_COMPILATION_CACHE_H_
OLDNEW
« no previous file with comments | « no previous file | src/compilation-cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698