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 | 8 |
9 #include "src/ast/ast-numbering.h" | 9 #include "src/ast/ast-numbering.h" |
10 #include "src/ast/prettyprinter.h" | 10 #include "src/ast/prettyprinter.h" |
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
498 // feedback vector. Verify that the structure fits the function literal. | 498 // feedback vector. Verify that the structure fits the function literal. |
499 CHECK(!info->shared_info()->feedback_vector()->metadata()->SpecDiffersFrom( | 499 CHECK(!info->shared_info()->feedback_vector()->metadata()->SpecDiffersFrom( |
500 info->literal()->feedback_vector_spec())); | 500 info->literal()->feedback_vector_spec())); |
501 } | 501 } |
502 | 502 |
503 bool UseIgnition(CompilationInfo* info) { | 503 bool UseIgnition(CompilationInfo* info) { |
504 if (info->shared_info()->is_generator() && !FLAG_ignition_generators) { | 504 if (info->shared_info()->is_generator() && !FLAG_ignition_generators) { |
505 return false; | 505 return false; |
506 } | 506 } |
507 | 507 |
| 508 if (info->shared_info()->is_async()) { |
| 509 // TODO(caitp): plug this into ignition generators |
| 510 return false; |
| 511 } |
| 512 |
508 // Checks whether top level functions should be passed by the filter. | 513 // Checks whether top level functions should be passed by the filter. |
509 if (info->shared_info()->is_toplevel()) { | 514 if (info->shared_info()->is_toplevel()) { |
510 Vector<const char> filter = CStrVector(FLAG_ignition_filter); | 515 Vector<const char> filter = CStrVector(FLAG_ignition_filter); |
511 return (filter.length() == 0) || (filter.length() == 1 && filter[0] == '*'); | 516 return (filter.length() == 0) || (filter.length() == 1 && filter[0] == '*'); |
512 } | 517 } |
513 | 518 |
514 // Finally respect the filter. | 519 // Finally respect the filter. |
515 return info->shared_info()->PassesFilter(FLAG_ignition_filter); | 520 return info->shared_info()->PassesFilter(FLAG_ignition_filter); |
516 } | 521 } |
517 | 522 |
(...skipping 1287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1805 MaybeHandle<Code> code; | 1810 MaybeHandle<Code> code; |
1806 if (cached.code != nullptr) code = handle(cached.code); | 1811 if (cached.code != nullptr) code = handle(cached.code); |
1807 Handle<Context> native_context(function->context()->native_context()); | 1812 Handle<Context> native_context(function->context()->native_context()); |
1808 SharedFunctionInfo::AddToOptimizedCodeMap(shared, native_context, code, | 1813 SharedFunctionInfo::AddToOptimizedCodeMap(shared, native_context, code, |
1809 literals, BailoutId::None()); | 1814 literals, BailoutId::None()); |
1810 } | 1815 } |
1811 } | 1816 } |
1812 | 1817 |
1813 } // namespace internal | 1818 } // namespace internal |
1814 } // namespace v8 | 1819 } // namespace v8 |
OLD | NEW |