Index: src/compiler-dispatcher/compiler-dispatcher-job.cc |
diff --git a/src/compiler-dispatcher/compiler-dispatcher-job.cc b/src/compiler-dispatcher/compiler-dispatcher-job.cc |
index 40ea26fb8e9f1485eb2a118f1713533ee8f811f3..b9e956caadde172d2c0db335d683f4a7f4c0f521 100644 |
--- a/src/compiler-dispatcher/compiler-dispatcher-job.cc |
+++ b/src/compiler-dispatcher/compiler-dispatcher-job.cc |
@@ -21,10 +21,11 @@ namespace v8 { |
namespace internal { |
CompilerDispatcherJob::CompilerDispatcherJob(Isolate* isolate, |
+ CompilerDispatcherTracer* tracer, |
Handle<SharedFunctionInfo> shared, |
size_t max_stack_size) |
: isolate_(isolate), |
- tracer_(isolate_->compiler_dispatcher_tracer()), |
+ tracer_(tracer), |
shared_(Handle<SharedFunctionInfo>::cast( |
isolate_->global_handles()->Create(*shared))), |
max_stack_size_(max_stack_size), |
@@ -44,6 +45,11 @@ CompilerDispatcherJob::~CompilerDispatcherJob() { |
i::GlobalHandles::Destroy(Handle<Object>::cast(shared_).location()); |
} |
+bool CompilerDispatcherJob::IsAssociatedWith( |
+ Handle<SharedFunctionInfo> shared) const { |
+ return *shared_ == *shared; |
+} |
+ |
void CompilerDispatcherJob::PrepareToParseOnMainThread() { |
DCHECK(ThreadId::Current().Equals(isolate_->thread_id())); |
DCHECK(status() == CompileJobStatus::kInitial); |