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

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

Issue 2305883002: Remove unnessary includes of parser.h (Closed)
Patch Set: More fixes in asm-js.h Created 4 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
« no previous file with comments | « src/background-parsing-task.h ('k') | src/code-stubs.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 #include "src/background-parsing-task.h" 5 #include "src/background-parsing-task.h"
6
6 #include "src/debug/debug.h" 7 #include "src/debug/debug.h"
8 #include "src/parsing/parser.h"
7 9
8 namespace v8 { 10 namespace v8 {
9 namespace internal { 11 namespace internal {
10 12
13 void StreamedSource::Release() {
14 parser.reset();
15 info.reset();
16 zone.reset();
17 }
18
11 BackgroundParsingTask::BackgroundParsingTask( 19 BackgroundParsingTask::BackgroundParsingTask(
12 StreamedSource* source, ScriptCompiler::CompileOptions options, 20 StreamedSource* source, ScriptCompiler::CompileOptions options,
13 int stack_size, Isolate* isolate) 21 int stack_size, Isolate* isolate)
14 : source_(source), stack_size_(stack_size), script_data_(nullptr) { 22 : source_(source), stack_size_(stack_size), script_data_(nullptr) {
15 // We don't set the context to the CompilationInfo yet, because the background 23 // We don't set the context to the CompilationInfo yet, because the background
16 // thread cannot do anything with it anyway. We set it just before compilation 24 // thread cannot do anything with it anyway. We set it just before compilation
17 // on the foreground thread. 25 // on the foreground thread.
18 DCHECK(options == ScriptCompiler::kProduceParserCache || 26 DCHECK(options == ScriptCompiler::kProduceParserCache ||
19 options == ScriptCompiler::kProduceCodeCache || 27 options == ScriptCompiler::kProduceCodeCache ||
20 options == ScriptCompiler::kNoCompileOptions); 28 options == ScriptCompiler::kNoCompileOptions);
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 script_data_->data(), script_data_->length(), 79 script_data_->data(), script_data_->length(),
72 ScriptCompiler::CachedData::BufferOwned)); 80 ScriptCompiler::CachedData::BufferOwned));
73 script_data_->ReleaseDataOwnership(); 81 script_data_->ReleaseDataOwnership();
74 delete script_data_; 82 delete script_data_;
75 script_data_ = nullptr; 83 script_data_ = nullptr;
76 } 84 }
77 source_->info->set_isolate(isolate); 85 source_->info->set_isolate(isolate);
78 } 86 }
79 } // namespace internal 87 } // namespace internal
80 } // namespace v8 88 } // namespace v8
OLDNEW
« no previous file with comments | « src/background-parsing-task.h ('k') | src/code-stubs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698