OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |