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 #include "src/compiler-dispatcher/compiler-dispatcher-job.h" | 5 #include "src/compiler-dispatcher/compiler-dispatcher-job.h" |
6 | 6 |
7 #include "src/assert-scope.h" | 7 #include "src/assert-scope.h" |
8 #include "src/compilation-info.h" | 8 #include "src/compilation-info.h" |
9 #include "src/compiler.h" | 9 #include "src/compiler.h" |
10 #include "src/global-handles.h" | 10 #include "src/global-handles.h" |
11 #include "src/isolate.h" | 11 #include "src/isolate.h" |
12 #include "src/objects-inl.h" | 12 #include "src/objects-inl.h" |
13 #include "src/parsing/parse-info.h" | 13 #include "src/parsing/parse-info.h" |
14 #include "src/parsing/parser.h" | 14 #include "src/parsing/parser.h" |
15 #include "src/parsing/scanner-character-streams.h" | 15 #include "src/parsing/scanner-character-streams.h" |
16 #include "src/unicode-cache.h" | 16 #include "src/unicode-cache.h" |
17 #include "src/zone.h" | 17 #include "src/zone/zone.h" |
18 | 18 |
19 namespace v8 { | 19 namespace v8 { |
20 namespace internal { | 20 namespace internal { |
21 | 21 |
22 CompilerDispatcherJob::CompilerDispatcherJob(Isolate* isolate, | 22 CompilerDispatcherJob::CompilerDispatcherJob(Isolate* isolate, |
23 Handle<JSFunction> function, | 23 Handle<JSFunction> function, |
24 size_t max_stack_size) | 24 size_t max_stack_size) |
25 : isolate_(isolate), | 25 : isolate_(isolate), |
26 function_(Handle<JSFunction>::cast( | 26 function_(Handle<JSFunction>::cast( |
27 isolate_->global_handles()->Create(*function))), | 27 isolate_->global_handles()->Create(*function))), |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
249 if (!source_.is_null()) { | 249 if (!source_.is_null()) { |
250 i::GlobalHandles::Destroy(Handle<Object>::cast(source_).location()); | 250 i::GlobalHandles::Destroy(Handle<Object>::cast(source_).location()); |
251 source_ = Handle<String>::null(); | 251 source_ = Handle<String>::null(); |
252 } | 252 } |
253 | 253 |
254 status_ = CompileJobStatus::kInitial; | 254 status_ = CompileJobStatus::kInitial; |
255 } | 255 } |
256 | 256 |
257 } // namespace internal | 257 } // namespace internal |
258 } // namespace v8 | 258 } // namespace v8 |
OLD | NEW |