v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
callable.h
Go to the documentation of this file.
1
// Copyright 2017 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
#ifndef V8_CODEGEN_CALLABLE_H_
6
#define V8_CODEGEN_CALLABLE_H_
7
8
#include "
src/codegen/interface-descriptors.h
"
9
#include "
src/utils/allocation.h
"
10
11
namespace
v8
{
12
namespace
internal
{
13
14
class
InstructionStream;
15
16
// Associates a body of code with an interface descriptor.
17
class
Callable
final {
18
public
:
19
Callable
(
Handle<Code>
code,
CallInterfaceDescriptor
descriptor
)
20
:
code_
(code),
descriptor_
(
descriptor
) {}
21
22
Handle<Code>
code
()
const
{
return
code_
; }
23
CallInterfaceDescriptor
descriptor
()
const
{
return
descriptor_
; }
24
25
private
:
26
const
Handle<Code>
code_
;
27
const
CallInterfaceDescriptor
descriptor_
;
28
};
29
30
}
// namespace internal
31
}
// namespace v8
32
33
#endif
// V8_CODEGEN_CALLABLE_H_
v8::internal::CallInterfaceDescriptor
Definition
interface-descriptors.h:354
v8::internal::Callable
Definition
callable.h:17
v8::internal::Callable::descriptor_
const CallInterfaceDescriptor descriptor_
Definition
callable.h:27
v8::internal::Callable::code
Handle< Code > code() const
Definition
callable.h:22
v8::internal::Callable::descriptor
CallInterfaceDescriptor descriptor() const
Definition
callable.h:23
v8::internal::Callable::code_
const Handle< Code > code_
Definition
callable.h:26
v8::internal::Callable::Callable
Callable(Handle< Code > code, CallInterfaceDescriptor descriptor)
Definition
callable.h:19
v8::internal::Handle
Definition
handles.h:149
interface-descriptors.h
v8::internal::internal
internal
Definition
wasm-objects-inl.h:458
v8
Definition
api-arguments-inl.h:19
allocation.h
src
codegen
callable.h
Generated on Sun Apr 6 2025 21:08:50 for v8 by
1.12.0