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 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
479 CHECK(!info->shared_info()->feedback_vector()->metadata()->SpecDiffersFrom( | 479 CHECK(!info->shared_info()->feedback_vector()->metadata()->SpecDiffersFrom( |
480 info->literal()->feedback_vector_spec())); | 480 info->literal()->feedback_vector_spec())); |
481 } | 481 } |
482 | 482 |
483 bool UseIgnition(CompilationInfo* info) { | 483 bool UseIgnition(CompilationInfo* info) { |
484 if (info->is_debug()) return false; | 484 if (info->is_debug()) return false; |
485 if (info->shared_info()->is_generator() && !FLAG_ignition_generators) { | 485 if (info->shared_info()->is_generator() && !FLAG_ignition_generators) { |
486 return false; | 486 return false; |
487 } | 487 } |
488 | 488 |
489 if (info->shared_info()->is_async()) { | |
490 // TODO(caitp): plug this into ignition generators | |
491 return false; | |
492 } | |
Dan Ehrenberg
2016/05/04 22:52:36
Could you move this into the above conditional, es
| |
493 | |
489 // Checks whether top level functions should be passed by the filter. | 494 // Checks whether top level functions should be passed by the filter. |
490 if (info->shared_info()->is_toplevel()) { | 495 if (info->shared_info()->is_toplevel()) { |
491 Vector<const char> filter = CStrVector(FLAG_ignition_filter); | 496 Vector<const char> filter = CStrVector(FLAG_ignition_filter); |
492 return (filter.length() == 0) || (filter.length() == 1 && filter[0] == '*'); | 497 return (filter.length() == 0) || (filter.length() == 1 && filter[0] == '*'); |
493 } | 498 } |
494 | 499 |
495 // Finally respect the filter. | 500 // Finally respect the filter. |
496 return info->shared_info()->PassesFilter(FLAG_ignition_filter); | 501 return info->shared_info()->PassesFilter(FLAG_ignition_filter); |
497 } | 502 } |
498 | 503 |
(...skipping 1314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1813 MaybeHandle<Code> code; | 1818 MaybeHandle<Code> code; |
1814 if (cached.code != nullptr) code = handle(cached.code); | 1819 if (cached.code != nullptr) code = handle(cached.code); |
1815 Handle<Context> native_context(function->context()->native_context()); | 1820 Handle<Context> native_context(function->context()->native_context()); |
1816 SharedFunctionInfo::AddToOptimizedCodeMap(shared, native_context, code, | 1821 SharedFunctionInfo::AddToOptimizedCodeMap(shared, native_context, code, |
1817 literals, BailoutId::None()); | 1822 literals, BailoutId::None()); |
1818 } | 1823 } |
1819 } | 1824 } |
1820 | 1825 |
1821 } // namespace internal | 1826 } // namespace internal |
1822 } // namespace v8 | 1827 } // namespace v8 |
OLD | NEW |