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

Side by Side Diff: src/compiler.cc

Issue 2658803002: [Compiler] Put background compilation of eager inner functions behind a flag. (Closed)
Patch Set: Created 3 years, 11 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 | « no previous file | src/flag-definitions.h » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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/compiler.h" 5 #include "src/compiler.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <memory> 8 #include <memory>
9 9
10 #include "src/asmjs/asm-js.h" 10 #include "src/asmjs/asm-js.h"
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 bool UseAsmWasm(DeclarationScope* scope, Handle<SharedFunctionInfo> shared_info, 379 bool UseAsmWasm(DeclarationScope* scope, Handle<SharedFunctionInfo> shared_info,
380 bool is_debug) { 380 bool is_debug) {
381 return FLAG_validate_asm && scope->asm_module() && 381 return FLAG_validate_asm && scope->asm_module() &&
382 !shared_info->is_asm_wasm_broken() && !is_debug; 382 !shared_info->is_asm_wasm_broken() && !is_debug;
383 } 383 }
384 384
385 bool UseCompilerDispatcher(CompilerDispatcher* dispatcher, 385 bool UseCompilerDispatcher(CompilerDispatcher* dispatcher,
386 DeclarationScope* scope, 386 DeclarationScope* scope,
387 Handle<SharedFunctionInfo> shared_info, 387 Handle<SharedFunctionInfo> shared_info,
388 bool is_debug, bool will_serialize) { 388 bool is_debug, bool will_serialize) {
389 return dispatcher->IsEnabled() && !is_debug && !will_serialize && 389 return FLAG_compiler_dispatcher_eager_inner && dispatcher->IsEnabled() &&
390 !is_debug && !will_serialize &&
390 !UseAsmWasm(scope, shared_info, is_debug); 391 !UseAsmWasm(scope, shared_info, is_debug);
391 } 392 }
392 393
393 CompilationJob* GetUnoptimizedCompilationJob(CompilationInfo* info) { 394 CompilationJob* GetUnoptimizedCompilationJob(CompilationInfo* info) {
394 // Function should have been parsed and analyzed before creating a compilation 395 // Function should have been parsed and analyzed before creating a compilation
395 // job. 396 // job.
396 DCHECK_NOT_NULL(info->literal()); 397 DCHECK_NOT_NULL(info->literal());
397 DCHECK_NOT_NULL(info->scope()); 398 DCHECK_NOT_NULL(info->scope());
398 399
399 if (ShouldUseIgnition(info)) { 400 if (ShouldUseIgnition(info)) {
(...skipping 1399 matching lines...) Expand 10 before | Expand all | Expand 10 after
1799 DCHECK(shared->is_compiled()); 1800 DCHECK(shared->is_compiled());
1800 function->set_literals(cached.literals); 1801 function->set_literals(cached.literals);
1801 } else if (shared->is_compiled()) { 1802 } else if (shared->is_compiled()) {
1802 // TODO(mvstanton): pass pretenure flag to EnsureLiterals. 1803 // TODO(mvstanton): pass pretenure flag to EnsureLiterals.
1803 JSFunction::EnsureLiterals(function); 1804 JSFunction::EnsureLiterals(function);
1804 } 1805 }
1805 } 1806 }
1806 1807
1807 } // namespace internal 1808 } // namespace internal
1808 } // namespace v8 1809 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/flag-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698