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

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

Issue 1265923002: Debugger: move implementation to a separate folder. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase Created 5 years, 4 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/assert-scope.cc ('k') | src/codegen.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 #include "src/debug.h" 6 #include "src/debug/debug.h"
7 7
8 namespace v8 { 8 namespace v8 {
9 namespace internal { 9 namespace internal {
10 10
11 BackgroundParsingTask::BackgroundParsingTask( 11 BackgroundParsingTask::BackgroundParsingTask(
12 StreamedSource* source, ScriptCompiler::CompileOptions options, 12 StreamedSource* source, ScriptCompiler::CompileOptions options,
13 int stack_size, Isolate* isolate) 13 int stack_size, Isolate* isolate)
14 : source_(source), stack_size_(stack_size) { 14 : source_(source), stack_size_(stack_size) {
15 // We don't set the context to the CompilationInfo yet, because the background 15 // 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 16 // thread cannot do anything with it anyway. We set it just before compilation
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 if (script_data != NULL) { 60 if (script_data != NULL) {
61 source_->cached_data.Reset(new ScriptCompiler::CachedData( 61 source_->cached_data.Reset(new ScriptCompiler::CachedData(
62 script_data->data(), script_data->length(), 62 script_data->data(), script_data->length(),
63 ScriptCompiler::CachedData::BufferOwned)); 63 ScriptCompiler::CachedData::BufferOwned));
64 script_data->ReleaseDataOwnership(); 64 script_data->ReleaseDataOwnership();
65 delete script_data; 65 delete script_data;
66 } 66 }
67 } 67 }
68 } // namespace internal 68 } // namespace internal
69 } // namespace v8 69 } // namespace v8
OLDNEW
« no previous file with comments | « src/assert-scope.cc ('k') | src/codegen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698