v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
builtins-internal.cc
Go to the documentation of this file.
1
// Copyright 2016 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
#include "
src/builtins/builtins-utils.h
"
6
#include "
src/builtins/builtins.h
"
7
#include "
src/codegen/interface-descriptors.h
"
8
#include "
src/logging/counters.h
"
9
#include "
src/objects/objects-inl.h
"
10
11
namespace
v8
{
12
namespace
internal
{
13
14
BUILTIN
(Illegal) {
15
UNREACHABLE
();
16
}
17
18
// TODO(ishell): remove this unused builtin.
19
BUILTIN
(DummyBuiltin) {
UNREACHABLE
(); }
20
21
BUILTIN
(IllegalInvocationThrower) {
22
HandleScope
scope(isolate);
23
THROW_NEW_ERROR_RETURN_FAILURE
(
24
isolate, NewTypeError(MessageTemplate::kIllegalInvocation));
25
}
26
27
BUILTIN
(EmptyFunction) {
return
ReadOnlyRoots
(isolate).undefined_value(); }
28
29
// TODO(366374966): remove this second version of EmptyFunction once the
30
// CPP macro becomes the source of truth for the builtin's formal parameter
31
// count.
32
BUILTIN
(EmptyFunction1) {
return
ReadOnlyRoots
(isolate).undefined_value(); }
33
34
BUILTIN
(UnsupportedThrower) {
35
HandleScope
scope(isolate);
36
THROW_NEW_ERROR_RETURN_FAILURE
(isolate,
37
NewError(MessageTemplate::kUnsupported));
38
}
39
40
BUILTIN
(StrictPoisonPillThrower) {
41
HandleScope
scope(isolate);
42
THROW_NEW_ERROR_RETURN_FAILURE
(
43
isolate, NewTypeError(MessageTemplate::kStrictPoisonPill));
44
}
45
46
}
// namespace internal
47
}
// namespace v8
builtins-utils.h
BUILTIN
#define BUILTIN(name)
Definition
builtins-utils.h:152
builtins.h
v8::internal::HandleScope
Definition
handles.h:262
v8::internal::ReadOnlyRoots
Definition
roots.h:709
counters.h
THROW_NEW_ERROR_RETURN_FAILURE
#define THROW_NEW_ERROR_RETURN_FAILURE(isolate, call)
Definition
isolate.h:294
interface-descriptors.h
v8::internal::internal
internal
Definition
wasm-objects-inl.h:458
v8::internal::UNREACHABLE
UNREACHABLE()
v8
Definition
api-arguments-inl.h:19
objects-inl.h
src
builtins
builtins-internal.cc
Generated on Sun Apr 6 2025 21:08:50 for v8 by
1.12.0