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

Unified Diff: src/compilation-cache.h

Issue 8104: Regexp caching (Closed)
Patch Set: Created 12 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/compilation-cache.cc » ('j') | src/compilation-cache.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compilation-cache.h
diff --git a/src/compilation-cache.h b/src/compilation-cache.h
index a87c4958c6fdaa735d67b60d5c45fb44c3995a49..5a63d930ecad8fc4b85eb285f5c270fcdef98750 100644
--- a/src/compilation-cache.h
+++ b/src/compilation-cache.h
@@ -42,7 +42,9 @@ class CompilationCache {
enum Entry {
SCRIPT,
EVAL_GLOBAL,
- EVAL_CONTEXTUAL
+ EVAL_CONTEXTUAL,
+ REGEXP,
+ _LAST_ENTRY
Kasper Lund 2008/10/24 06:42:50 I would change _LAST_ENTRY to LAST_ENTRY and let i
};
// Finds the script function boilerplate for a source
@@ -59,6 +61,13 @@ class CompilationCache {
static Handle<JSFunction> LookupEval(Handle<String> source,
Entry entry);
+ static Handle<Object> LookupRegExp(Handle<String> source,
Kasper Lund 2008/10/24 06:42:50 Maybe you should explain return value in case of a
+ int flags);
+
+ static void PutRegExp(Handle<String> source,
Kasper Lund 2008/10/24 06:42:50 Maybe you should rename the Associate method to Pu
+ int flags,
+ Handle<FixedArray> data);
+
// Associate the (source, kind) pair to the boilerplate. This may
// overwrite an existing mapping.
static void Associate(Handle<String> source,
« 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