v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
utils.cc
Go to the documentation of this file.
1// Copyright 2022 the V8 project authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
6
8#include "src/flags/flags.h"
9
11
12#ifdef DEBUG
14 static std::atomic<uint64_t> counter{0};
15 uint64_t current = counter++;
16 if (current == v8_flags.turboshaft_opt_bisect_break) {
18 }
19 if (current >= v8_flags.turboshaft_opt_bisect_limit) {
20 return true;
21 }
22 return false;
23}
24#endif // DEBUG
25
26} // namespace v8::internal::compiler::turboshaft
static void DebugBreak()
V8_EXPORT_PRIVATE bool ShouldSkipOptimizationStep()
Definition utils.h:84
V8_EXPORT_PRIVATE FlagValues v8_flags