OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 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_BACKGROUND_PARSING_TASK_H_ | |
6 #define V8_BACKGROUND_PARSING_TASK_H_ | |
7 | |
8 #include "src/base/platform/platform.h" | |
9 #include "src/base/platform/semaphore.h" | |
10 #include "src/compiler.h" | |
11 | |
12 namespace v8 { | |
13 namespace internal { | |
14 | |
15 class BackgroundParsingTask : public ScriptCompiler::ScriptStreamingTask { | |
16 public: | |
17 BackgroundParsingTask(ScriptCompiler::StreamedSource* source, bool allow_lazy, | |
18 Isolate* isolate) | |
19 : source_(source), | |
20 script_data_(NULL), | |
21 hash_seed_(isolate->heap()->HashSeed()), | |
22 allow_lazy_(allow_lazy), | |
23 isolate_(isolate) {} | |
Sven Panne
2014/09/01 09:07:46
Why do we remember the Isolate? Just passing the h
marja
2014/09/01 11:58:17
Done.
| |
24 | |
25 virtual void Run(); | |
26 | |
27 private: | |
28 friend class v8::ScriptCompiler; | |
29 | |
30 ScriptCompiler::StreamedSource* source_; | |
31 ScriptData* script_data_; | |
32 uint32_t hash_seed_; | |
33 bool allow_lazy_; | |
34 Isolate* isolate_; | |
35 }; | |
36 } | |
37 } // namespace v8::internal | |
38 | |
39 #endif // V8_BACKGROUND_PARSING_TASK_H_ | |
OLD | NEW |