diff options
Diffstat (limited to 'deps/v8/src/compilation-cache.h')
-rw-r--r-- | deps/v8/src/compilation-cache.h | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/deps/v8/src/compilation-cache.h b/deps/v8/src/compilation-cache.h index a7c84b7b5d..1a2608e3aa 100644 --- a/deps/v8/src/compilation-cache.h +++ b/deps/v8/src/compilation-cache.h @@ -72,22 +72,21 @@ class CompilationCacheScript : public CompilationSubCache { public: CompilationCacheScript(Isolate* isolate, int generations); - Handle<SharedFunctionInfo> Lookup(Handle<String> source, - Handle<Object> name, - int line_offset, - int column_offset, + Handle<SharedFunctionInfo> Lookup(Handle<String> source, Handle<Object> name, + int line_offset, int column_offset, + bool is_embedder_debug_script, bool is_shared_cross_origin, - Handle<Context> context); + Handle<Context> context, + LanguageMode language_mode); void Put(Handle<String> source, Handle<Context> context, + LanguageMode language_mode, Handle<SharedFunctionInfo> function_info); private: - bool HasOrigin(Handle<SharedFunctionInfo> function_info, - Handle<Object> name, - int line_offset, - int column_offset, - bool is_shared_cross_origin); + bool HasOrigin(Handle<SharedFunctionInfo> function_info, Handle<Object> name, + int line_offset, int column_offset, + bool is_embedder_debug_script, bool is_shared_cross_origin); DISALLOW_IMPLICIT_CONSTRUCTORS(CompilationCacheScript); }; @@ -112,7 +111,7 @@ class CompilationCacheEval: public CompilationSubCache { MaybeHandle<SharedFunctionInfo> Lookup(Handle<String> source, Handle<SharedFunctionInfo> outer_info, - StrictMode strict_mode, + LanguageMode language_mode, int scope_position); void Put(Handle<String> source, Handle<SharedFunctionInfo> outer_info, @@ -150,14 +149,16 @@ class CompilationCache { // script for the given source string with the right origin. MaybeHandle<SharedFunctionInfo> LookupScript( Handle<String> source, Handle<Object> name, int line_offset, - int column_offset, bool is_shared_cross_origin, Handle<Context> context); + int column_offset, bool is_embedder_debug_script, + bool is_shared_cross_origin, Handle<Context> context, + LanguageMode language_mode); // Finds the shared function info for a source string for eval in a // given context. Returns an empty handle if the cache doesn't // contain a script for the given source string. MaybeHandle<SharedFunctionInfo> LookupEval( Handle<String> source, Handle<SharedFunctionInfo> outer_info, - Handle<Context> context, StrictMode strict_mode, int scope_position); + Handle<Context> context, LanguageMode language_mode, int scope_position); // Returns the regexp data associated with the given regexp if it // is in cache, otherwise an empty handle. @@ -168,6 +169,7 @@ class CompilationCache { // info. This may overwrite an existing mapping. void PutScript(Handle<String> source, Handle<Context> context, + LanguageMode language_mode, Handle<SharedFunctionInfo> function_info); // Associate the (source, context->closure()->shared(), kind) triple |