diff options
Diffstat (limited to 'chromium/v8/src/compiler/globals.h')
| -rw-r--r-- | chromium/v8/src/compiler/globals.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/chromium/v8/src/compiler/globals.h b/chromium/v8/src/compiler/globals.h index a8d8a47c59c..fe96783c23d 100644 --- a/chromium/v8/src/compiler/globals.h +++ b/chromium/v8/src/compiler/globals.h @@ -6,11 +6,24 @@ #define V8_COMPILER_GLOBALS_H_ #include "src/common/globals.h" +#include "src/flags/flags.h" namespace v8 { namespace internal { namespace compiler { +// The nci flag is currently used to experiment with feedback collection in +// optimized code produced by generic lowering. +// Considerations: +// - Should we increment the call count? https://crbug.com/v8/10524 +// - Is feedback already megamorphic in all these cases? +// +// TODO(jgruber): Remove once we've made a decision whether to collect feedback +// unconditionally. +inline bool CollectFeedbackInGenericLowering() { + return FLAG_turbo_collect_feedback_in_generic_lowering; +} + enum class StackCheckKind { kJSFunctionEntry = 0, kJSIterationBody, |
