v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
turbofan-disabled.cc
Go to the documentation of this file.
1// Copyright 2023 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//
5// This file stubs out the Turbofan API when TF is disabled.
6// See also v8_enable_turbofan in BUILD.gn.
7
10
11namespace v8 {
12namespace internal {
13namespace compiler {
14
15std::unique_ptr<TurbofanCompilationJob> NewCompilationJob(
16 Isolate* isolate, Handle<JSFunction> function, IsScriptAvailable has_script,
17 BytecodeOffset osr_offset) {
18 FATAL(
19 "compiler::NewCompilationJob must not be called when Turbofan is "
20 "disabled (`v8_enable_turbofan = false`)");
21}
22
23} // namespace compiler
24} // namespace internal
25} // namespace v8
std::unique_ptr< TurbofanCompilationJob > NewCompilationJob(Isolate *isolate, Handle< JSFunction > function, IsScriptAvailable has_script, BytecodeOffset osr_offset)
#define FATAL(...)
Definition logging.h:47