OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef V8_COMPILER_DISPATCHER_COMPILER_DISPATCHER_JOB_H_ |
| 6 #define V8_COMPILER_DISPATCHER_COMPILER_DISPATCHER_JOB_H_ |
| 7 |
| 8 #include "src/base/macros.h" |
| 9 |
| 10 #include "src/handles.h" |
| 11 |
| 12 namespace v8 { |
| 13 namespace internal { |
| 14 |
| 15 class CompilationInfo; |
| 16 class Isolate; |
| 17 class JSFunction; |
| 18 |
| 19 enum class CompileJobStatus { |
| 20 kInitial, |
| 21 }; |
| 22 |
| 23 class CompilerDispatcherJob { |
| 24 public: |
| 25 CompilerDispatcherJob(Isolate* isolate, Handle<JSFunction> function); |
| 26 ~CompilerDispatcherJob(); |
| 27 |
| 28 CompileJobStatus status() const { return status_; } |
| 29 |
| 30 private: |
| 31 CompileJobStatus status_ = CompileJobStatus::kInitial; |
| 32 Isolate* isolate_; |
| 33 Handle<JSFunction> function_; // Global handle. |
| 34 |
| 35 DISALLOW_COPY_AND_ASSIGN(CompilerDispatcherJob); |
| 36 }; |
| 37 |
| 38 } // namespace internal |
| 39 } // namespace v8 |
| 40 |
| 41 #endif // V8_COMPILER_DISPATCHER_COMPILER_DISPATCHER_JOB_H_ |
OLD | NEW |