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

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

Issue 1481613002: Create ast/ and parsing/ subdirectories and move appropriate files (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 5 years 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
« no previous file with comments | « src/ast/variables.cc ('k') | src/bit-vector.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 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 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 #ifndef V8_BACKGROUND_PARSING_TASK_H_ 5 #ifndef V8_BACKGROUND_PARSING_TASK_H_
6 #define V8_BACKGROUND_PARSING_TASK_H_ 6 #define V8_BACKGROUND_PARSING_TASK_H_
7 7
8 #include "src/base/platform/platform.h" 8 #include "src/base/platform/platform.h"
9 #include "src/base/platform/semaphore.h" 9 #include "src/base/platform/semaphore.h"
10 #include "src/base/smart-pointers.h" 10 #include "src/base/smart-pointers.h"
11 #include "src/compiler.h" 11 #include "src/compiler.h"
12 #include "src/parser.h" 12 #include "src/parsing/parser.h"
13 13
14 namespace v8 { 14 namespace v8 {
15 namespace internal { 15 namespace internal {
16 16
17 // Internal representation of v8::ScriptCompiler::StreamedSource. Contains all 17 // Internal representation of v8::ScriptCompiler::StreamedSource. Contains all
18 // data which needs to be transmitted between threads for background parsing, 18 // data which needs to be transmitted between threads for background parsing,
19 // finalizing it on the main thread, and compiling on the main thread. 19 // finalizing it on the main thread, and compiling on the main thread.
20 struct StreamedSource { 20 struct StreamedSource {
21 StreamedSource(ScriptCompiler::ExternalSourceStream* source_stream, 21 StreamedSource(ScriptCompiler::ExternalSourceStream* source_stream,
22 ScriptCompiler::StreamedSource::Encoding encoding) 22 ScriptCompiler::StreamedSource::Encoding encoding)
(...skipping 28 matching lines...) Expand all
51 virtual void Run(); 51 virtual void Run();
52 52
53 private: 53 private:
54 StreamedSource* source_; // Not owned. 54 StreamedSource* source_; // Not owned.
55 int stack_size_; 55 int stack_size_;
56 }; 56 };
57 } // namespace internal 57 } // namespace internal
58 } // namespace v8 58 } // namespace v8
59 59
60 #endif // V8_BACKGROUND_PARSING_TASK_H_ 60 #endif // V8_BACKGROUND_PARSING_TASK_H_
OLDNEW
« no previous file with comments | « src/ast/variables.cc ('k') | src/bit-vector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698