| 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 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 504 !(EnsureFeedbackVector(info), FullCodeGenerator::MakeCode(info))) { | 504 !(EnsureFeedbackVector(info), FullCodeGenerator::MakeCode(info))) { |
| 505 Isolate* isolate = info->isolate(); | 505 Isolate* isolate = info->isolate(); |
| 506 if (!isolate->has_pending_exception()) isolate->StackOverflow(); | 506 if (!isolate->has_pending_exception()) isolate->StackOverflow(); |
| 507 return false; | 507 return false; |
| 508 } | 508 } |
| 509 return true; | 509 return true; |
| 510 } | 510 } |
| 511 | 511 |
| 512 bool UseIgnition(CompilationInfo* info) { | 512 bool UseIgnition(CompilationInfo* info) { |
| 513 // TODO(4681): Generator functions are not yet supported. | 513 // TODO(4681): Generator functions are not yet supported. |
| 514 if (info->shared_info()->is_generator()) { | 514 if (info->shared_info()->is_generator() || info->shared_info()->is_async()) { |
| 515 return false; | 515 return false; |
| 516 } | 516 } |
| 517 | 517 |
| 518 // Checks whether top level functions should be passed by the filter. | 518 // Checks whether top level functions should be passed by the filter. |
| 519 if (info->shared_info()->is_toplevel()) { | 519 if (info->shared_info()->is_toplevel()) { |
| 520 Vector<const char> filter = CStrVector(FLAG_ignition_filter); | 520 Vector<const char> filter = CStrVector(FLAG_ignition_filter); |
| 521 return (filter.length() == 0) || (filter.length() == 1 && filter[0] == '*'); | 521 return (filter.length() == 0) || (filter.length() == 1 && filter[0] == '*'); |
| 522 } | 522 } |
| 523 | 523 |
| 524 // Finally respect the filter. | 524 // Finally respect the filter. |
| (...skipping 1138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1663 MaybeHandle<Code> code; | 1663 MaybeHandle<Code> code; |
| 1664 if (cached.code != nullptr) code = handle(cached.code); | 1664 if (cached.code != nullptr) code = handle(cached.code); |
| 1665 Handle<Context> native_context(function->context()->native_context()); | 1665 Handle<Context> native_context(function->context()->native_context()); |
| 1666 SharedFunctionInfo::AddToOptimizedCodeMap(shared, native_context, code, | 1666 SharedFunctionInfo::AddToOptimizedCodeMap(shared, native_context, code, |
| 1667 literals, BailoutId::None()); | 1667 literals, BailoutId::None()); |
| 1668 } | 1668 } |
| 1669 } | 1669 } |
| 1670 | 1670 |
| 1671 } // namespace internal | 1671 } // namespace internal |
| 1672 } // namespace v8 | 1672 } // namespace v8 |
| OLD | NEW |