| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 class V8_EXPORT_PRIVATE CompilerDispatcherJob { | 45 class V8_EXPORT_PRIVATE CompilerDispatcherJob { |
| 46 public: | 46 public: |
| 47 // Creates a CompilerDispatcherJob in the initial state. | 47 // Creates a CompilerDispatcherJob in the initial state. |
| 48 CompilerDispatcherJob(Isolate* isolate, CompilerDispatcherTracer* tracer, | 48 CompilerDispatcherJob(Isolate* isolate, CompilerDispatcherTracer* tracer, |
| 49 Handle<SharedFunctionInfo> shared, | 49 Handle<SharedFunctionInfo> shared, |
| 50 size_t max_stack_size); | 50 size_t max_stack_size); |
| 51 // Creates a CompilerDispatcherJob in the analyzed state. | 51 // Creates a CompilerDispatcherJob in the analyzed state. |
| 52 CompilerDispatcherJob(Isolate* isolate, CompilerDispatcherTracer* tracer, | 52 CompilerDispatcherJob(Isolate* isolate, CompilerDispatcherTracer* tracer, |
| 53 Handle<Script> script, |
| 53 Handle<SharedFunctionInfo> shared, | 54 Handle<SharedFunctionInfo> shared, |
| 54 FunctionLiteral* literal, | 55 FunctionLiteral* literal, |
| 55 std::shared_ptr<Zone> parse_zone, | 56 std::shared_ptr<Zone> parse_zone, |
| 56 std::shared_ptr<DeferredHandles> parse_handles, | 57 std::shared_ptr<DeferredHandles> parse_handles, |
| 57 std::shared_ptr<DeferredHandles> compile_handles, | 58 std::shared_ptr<DeferredHandles> compile_handles, |
| 58 size_t max_stack_size); | 59 size_t max_stack_size); |
| 59 ~CompilerDispatcherJob(); | 60 ~CompilerDispatcherJob(); |
| 60 | 61 |
| 61 CompileJobStatus status() const { return status_; } | 62 CompileJobStatus status() const { return status_; } |
| 62 | 63 |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 | 130 |
| 130 bool trace_compiler_dispatcher_jobs_; | 131 bool trace_compiler_dispatcher_jobs_; |
| 131 | 132 |
| 132 DISALLOW_COPY_AND_ASSIGN(CompilerDispatcherJob); | 133 DISALLOW_COPY_AND_ASSIGN(CompilerDispatcherJob); |
| 133 }; | 134 }; |
| 134 | 135 |
| 135 } // namespace internal | 136 } // namespace internal |
| 136 } // namespace v8 | 137 } // namespace v8 |
| 137 | 138 |
| 138 #endif // V8_COMPILER_DISPATCHER_COMPILER_DISPATCHER_JOB_H_ | 139 #endif // V8_COMPILER_DISPATCHER_COMPILER_DISPATCHER_JOB_H_ |
| OLD | NEW |