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
10
11namespace v8 {
12namespace internal {
13
14BUILTIN(Illegal) {
16}
17
18// TODO(ishell): remove this unused builtin.
19BUILTIN(DummyBuiltin) { UNREACHABLE(); }
20
21BUILTIN(IllegalInvocationThrower) {
22 HandleScope scope(isolate);
24 isolate, NewTypeError(MessageTemplate::kIllegalInvocation));
25}
26
27BUILTIN(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.
32BUILTIN(EmptyFunction1) { return ReadOnlyRoots(isolate).undefined_value(); }
33
34BUILTIN(UnsupportedThrower) {
35 HandleScope scope(isolate);
37 NewError(MessageTemplate::kUnsupported));
38}
39
40BUILTIN(StrictPoisonPillThrower) {
41 HandleScope scope(isolate);
43 isolate, NewTypeError(MessageTemplate::kStrictPoisonPill));
44}
45
46} // namespace internal
47} // namespace v8
#define BUILTIN(name)
#define THROW_NEW_ERROR_RETURN_FAILURE(isolate, call)
Definition isolate.h:294