| 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 412 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 423   } | 423   } | 
| 424 | 424 | 
| 425   // It's very important that recompiles do not alter the structure of the type | 425   // It's very important that recompiles do not alter the structure of the type | 
| 426   // feedback vector. Verify that the structure fits the function literal. | 426   // feedback vector. Verify that the structure fits the function literal. | 
| 427   CHECK(!info->shared_info()->feedback_vector()->metadata()->SpecDiffersFrom( | 427   CHECK(!info->shared_info()->feedback_vector()->metadata()->SpecDiffersFrom( | 
| 428       info->literal()->feedback_vector_spec())); | 428       info->literal()->feedback_vector_spec())); | 
| 429 } | 429 } | 
| 430 | 430 | 
| 431 bool UseIgnition(CompilationInfo* info) { | 431 bool UseIgnition(CompilationInfo* info) { | 
| 432   if (info->is_debug()) return false; | 432   if (info->is_debug()) return false; | 
| 433   if (info->shared_info()->is_generator() && !FLAG_ignition_generators) { | 433   if (info->shared_info()->is_resumable() && !FLAG_ignition_generators) { | 
| 434     return false; | 434     return false; | 
| 435   } | 435   } | 
| 436 | 436 | 
| 437   // Checks whether top level functions should be passed by the filter. | 437   // Checks whether top level functions should be passed by the filter. | 
| 438   if (info->shared_info()->is_toplevel()) { | 438   if (info->shared_info()->is_toplevel()) { | 
| 439     Vector<const char> filter = CStrVector(FLAG_ignition_filter); | 439     Vector<const char> filter = CStrVector(FLAG_ignition_filter); | 
| 440     return (filter.length() == 0) || (filter.length() == 1 && filter[0] == '*'); | 440     return (filter.length() == 0) || (filter.length() == 1 && filter[0] == '*'); | 
| 441   } | 441   } | 
| 442 | 442 | 
| 443   // Finally respect the filter. | 443   // Finally respect the filter. | 
| (...skipping 1316 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 | 
|---|