diff options
Diffstat (limited to 'deps/v8/src/compiler.h')
-rw-r--r-- | deps/v8/src/compiler.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/deps/v8/src/compiler.h b/deps/v8/src/compiler.h index f32d771266..e33d9fdf04 100644 --- a/deps/v8/src/compiler.h +++ b/deps/v8/src/compiler.h @@ -13,7 +13,6 @@ #include "src/code-events.h" #include "src/contexts.h" #include "src/isolate.h" -#include "src/unicode-cache.h" #include "src/zone/zone.h" namespace v8 { @@ -22,6 +21,7 @@ namespace internal { // Forward declarations. class AstRawString; class BackgroundCompileTask; +class IsCompiledScope; class JavaScriptFrame; class OptimizedCompilationInfo; class OptimizedCompilationJob; @@ -58,8 +58,10 @@ class V8_EXPORT_PRIVATE Compiler : public AllStatic { // given function holds (except for live-edit, which compiles the world). static bool Compile(Handle<SharedFunctionInfo> shared, - ClearExceptionFlag flag); - static bool Compile(Handle<JSFunction> function, ClearExceptionFlag flag); + ClearExceptionFlag flag, + IsCompiledScope* is_compiled_scope); + static bool Compile(Handle<JSFunction> function, ClearExceptionFlag flag, + IsCompiledScope* is_compiled_scope); static bool CompileOptimized(Handle<JSFunction> function, ConcurrencyMode); V8_WARN_UNUSED_RESULT static MaybeHandle<SharedFunctionInfo> @@ -316,13 +318,14 @@ class OptimizedCompilationJob : public CompilationJob { const char* compiler_name_; }; -class BackgroundCompileTask { +class V8_EXPORT_PRIVATE BackgroundCompileTask { public: // Creates a new task that when run will parse and compile the streamed // script associated with |data| and can be finalized with // Compiler::GetSharedFunctionInfoForStreamedScript. // Note: does not take ownership of |data|. BackgroundCompileTask(ScriptStreamingData* data, Isolate* isolate); + ~BackgroundCompileTask(); // Creates a new task that when run will parse and compile the // |function_literal| and can be finalized with @@ -351,9 +354,6 @@ class BackgroundCompileTask { // compilation starts. std::unique_ptr<ParseInfo> info_; std::unique_ptr<Parser> parser_; - // TODO(rmcilroy): Consider having thread-local unicode-caches rather than - // creating a new one each time. - UnicodeCache unicode_cache_; // Data needed for finalizing compilation after background compilation. std::unique_ptr<UnoptimizedCompilationJob> outer_function_job_; |