diff options
Diffstat (limited to 'deps/v8/src/compiler/turboshaft/assembler.cc')
-rw-r--r-- | deps/v8/src/compiler/turboshaft/assembler.cc | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/deps/v8/src/compiler/turboshaft/assembler.cc b/deps/v8/src/compiler/turboshaft/assembler.cc new file mode 100644 index 0000000000..5462a48f3a --- /dev/null +++ b/deps/v8/src/compiler/turboshaft/assembler.cc @@ -0,0 +1,16 @@ +// Copyright 2022 the V8 project authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "src/compiler/turboshaft/assembler.h" + +#include "src/builtins/builtins.h" +#include "src/execution/isolate.h" + +namespace v8::internal::compiler::turboshaft { + +Handle<Code> BuiltinCodeHandle(Builtin builtin, Isolate* isolate) { + return isolate->builtins()->code_handle(builtin); +} + +} // namespace v8::internal::compiler::turboshaft |