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

Unified Diff: src/compilation-cache.h

Issue 2065453002: [module] Track script "module code" status Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Extend compilation cache to recognize module code Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/compilation-cache.cc » ('j') | src/objects.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 973673c524335a75e0c3d0cff60c3dba8603ebdf..e746459a1a0084dd717dcd29a3da134f4994e80f 100644
--- a/src/compilation-cache.h
+++ b/src/compilation-cache.h
@@ -80,10 +80,9 @@ class CompilationCacheScript : public CompilationSubCache {
int line_offset, int column_offset,
ScriptOriginOptions resource_options,
Handle<Context> context,
- LanguageMode language_mode);
- void Put(Handle<String> source,
- Handle<Context> context,
- LanguageMode language_mode,
+ LanguageMode language_mode, bool is_module);
+ void Put(Handle<String> source, Handle<Context> context,
+ LanguageMode language_mode, bool is_module,
Handle<SharedFunctionInfo> function_info);
private:
@@ -153,7 +152,7 @@ class CompilationCache {
MaybeHandle<SharedFunctionInfo> LookupScript(
Handle<String> source, Handle<Object> name, int line_offset,
int column_offset, ScriptOriginOptions resource_options,
- Handle<Context> context, LanguageMode language_mode);
+ Handle<Context> context, LanguageMode language_mode, bool is_module);
// Finds the shared function info for a source string for eval in a
// given context. Returns an empty handle if the cache doesn't
@@ -169,9 +168,8 @@ class CompilationCache {
// Associate the (source, kind) pair to the shared function
// info. This may overwrite an existing mapping.
- void PutScript(Handle<String> source,
- Handle<Context> context,
- LanguageMode language_mode,
+ void PutScript(Handle<String> source, Handle<Context> context,
+ LanguageMode language_mode, bool is_module,
Handle<SharedFunctionInfo> function_info);
// Associate the (source, context->closure()->shared(), kind) triple
« no previous file with comments | « no previous file | src/compilation-cache.cc » ('j') | src/objects.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698