Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(147)

Unified Diff: src/compiler.cc

Issue 1895603002: [esnext] prototype runtime implementation for async functions (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@AsyncFunction
Patch Set: And rebased after cleaning those things up Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/code-stubs.h ('k') | src/contexts.h » ('j') | src/profiler/sampler.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler.cc
diff --git a/src/compiler.cc b/src/compiler.cc
index 8eb6ff577308015c0ec7ee0e7984d04d4e43ac81..82007361ee70a8a534211f4bab0b2c03a84935c1 100644
--- a/src/compiler.cc
+++ b/src/compiler.cc
@@ -429,8 +429,8 @@ void EnsureFeedbackVector(CompilationInfo* info) {
bool UseIgnition(CompilationInfo* info) {
if (info->is_debug()) return false;
- if (info->shared_info()->is_generator() && !FLAG_ignition_generators) {
- return false;
+ if (info->shared_info()->is_generator() || info->shared_info()->is_async()) {
+ return FLAG_ignition_generators;
}
// Checks whether top level functions should be passed by the filter.
« no previous file with comments | « src/code-stubs.h ('k') | src/contexts.h » ('j') | src/profiler/sampler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698