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 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
422 } | 422 } |
423 | 423 |
424 // It's very important that recompiles do not alter the structure of the type | 424 // It's very important that recompiles do not alter the structure of the type |
425 // feedback vector. Verify that the structure fits the function literal. | 425 // feedback vector. Verify that the structure fits the function literal. |
426 CHECK(!info->shared_info()->feedback_vector()->metadata()->SpecDiffersFrom( | 426 CHECK(!info->shared_info()->feedback_vector()->metadata()->SpecDiffersFrom( |
427 info->literal()->feedback_vector_spec())); | 427 info->literal()->feedback_vector_spec())); |
428 } | 428 } |
429 | 429 |
430 bool UseIgnition(CompilationInfo* info) { | 430 bool UseIgnition(CompilationInfo* info) { |
431 if (info->is_debug()) return false; | 431 if (info->is_debug()) return false; |
432 if (info->shared_info()->is_generator() && !FLAG_ignition_generators) { | 432 if (info->shared_info()->is_resumable()) { |
433 return false; | 433 return FLAG_ignition_generators; |
434 } | 434 } |
neis
2016/05/11 09:45:16
This looks wrong, it's not the same as
if (info->
| |
435 | 435 |
436 // Checks whether top level functions should be passed by the filter. | 436 // Checks whether top level functions should be passed by the filter. |
437 if (info->shared_info()->is_toplevel()) { | 437 if (info->shared_info()->is_toplevel()) { |
438 Vector<const char> filter = CStrVector(FLAG_ignition_filter); | 438 Vector<const char> filter = CStrVector(FLAG_ignition_filter); |
439 return (filter.length() == 0) || (filter.length() == 1 && filter[0] == '*'); | 439 return (filter.length() == 0) || (filter.length() == 1 && filter[0] == '*'); |
440 } | 440 } |
441 | 441 |
442 // Finally respect the filter. | 442 // Finally respect the filter. |
443 return info->shared_info()->PassesFilter(FLAG_ignition_filter); | 443 return info->shared_info()->PassesFilter(FLAG_ignition_filter); |
444 } | 444 } |
(...skipping 1315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1760 MaybeHandle<Code> code; | 1760 MaybeHandle<Code> code; |
1761 if (cached.code != nullptr) code = handle(cached.code); | 1761 if (cached.code != nullptr) code = handle(cached.code); |
1762 Handle<Context> native_context(function->context()->native_context()); | 1762 Handle<Context> native_context(function->context()->native_context()); |
1763 SharedFunctionInfo::AddToOptimizedCodeMap(shared, native_context, code, | 1763 SharedFunctionInfo::AddToOptimizedCodeMap(shared, native_context, code, |
1764 literals, BailoutId::None()); | 1764 literals, BailoutId::None()); |
1765 } | 1765 } |
1766 } | 1766 } |
1767 | 1767 |
1768 } // namespace internal | 1768 } // namespace internal |
1769 } // namespace v8 | 1769 } // namespace v8 |
OLD | NEW |