Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(156)

Side by Side Diff: src/background-parsing-task.h

Issue 366153002: Add script streaming API (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: added tests + fixed compilation flags (!) Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698