OLD | NEW |
1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_COMPILER_DISPATCHER_COMPILER_DISPATCHER_JOB_H_ | 5 #ifndef V8_COMPILER_DISPATCHER_COMPILER_DISPATCHER_JOB_H_ |
6 #define V8_COMPILER_DISPATCHER_COMPILER_DISPATCHER_JOB_H_ | 6 #define V8_COMPILER_DISPATCHER_COMPILER_DISPATCHER_JOB_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "include/v8.h" | 10 #include "include/v8.h" |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 Isolate* isolate_; | 102 Isolate* isolate_; |
103 CompilerDispatcherTracer* tracer_; | 103 CompilerDispatcherTracer* tracer_; |
104 Handle<SharedFunctionInfo> shared_; // Global handle. | 104 Handle<SharedFunctionInfo> shared_; // Global handle. |
105 Handle<String> source_; // Global handle. | 105 Handle<String> source_; // Global handle. |
106 Handle<String> wrapper_; // Global handle. | 106 Handle<String> wrapper_; // Global handle. |
107 std::unique_ptr<v8::String::ExternalStringResourceBase> source_wrapper_; | 107 std::unique_ptr<v8::String::ExternalStringResourceBase> source_wrapper_; |
108 size_t max_stack_size_; | 108 size_t max_stack_size_; |
109 | 109 |
110 // Members required for parsing. | 110 // Members required for parsing. |
111 std::unique_ptr<UnicodeCache> unicode_cache_; | 111 std::unique_ptr<UnicodeCache> unicode_cache_; |
| 112 std::unique_ptr<Zone> zone_; |
112 std::unique_ptr<Utf16CharacterStream> character_stream_; | 113 std::unique_ptr<Utf16CharacterStream> character_stream_; |
113 std::unique_ptr<ParseInfo> parse_info_; | 114 std::unique_ptr<ParseInfo> parse_info_; |
114 std::unique_ptr<Parser> parser_; | 115 std::unique_ptr<Parser> parser_; |
115 std::unique_ptr<DeferredHandles> handles_from_parsing_; | 116 std::unique_ptr<DeferredHandles> handles_from_parsing_; |
116 | 117 |
117 // Members required for compiling. | 118 // Members required for compiling. |
118 std::unique_ptr<CompilationInfo> compile_info_; | 119 std::unique_ptr<CompilationInfo> compile_info_; |
119 std::unique_ptr<CompilationJob> compile_job_; | 120 std::unique_ptr<CompilationJob> compile_job_; |
120 | 121 |
121 bool trace_compiler_dispatcher_jobs_; | 122 bool trace_compiler_dispatcher_jobs_; |
122 | 123 |
123 DISALLOW_COPY_AND_ASSIGN(CompilerDispatcherJob); | 124 DISALLOW_COPY_AND_ASSIGN(CompilerDispatcherJob); |
124 }; | 125 }; |
125 | 126 |
126 } // namespace internal | 127 } // namespace internal |
127 } // namespace v8 | 128 } // namespace v8 |
128 | 129 |
129 #endif // V8_COMPILER_DISPATCHER_COMPILER_DISPATCHER_JOB_H_ | 130 #endif // V8_COMPILER_DISPATCHER_COMPILER_DISPATCHER_JOB_H_ |
OLD | NEW |