proxy.tq 1.2 KB
Newer Older
1 2 3 4 5 6 7 8
// Copyright 2019 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/builtins/builtins-proxy-gen.h'

namespace proxy {

9 10
extern macro ProxiesCodeStubAssembler::AllocateProxy(implicit context: Context)(
    JSReceiver, JSReceiver): JSProxy;
11

12 13
extern transitioning macro ProxiesCodeStubAssembler::CheckGetSetTrapResult(
    implicit context: Context)(
14
    JSReceiver, JSProxy, Name, Object, constexpr int31): void;
15

16
extern transitioning macro ProxiesCodeStubAssembler::CheckDeleteTrapResult(
17
    implicit context: Context)(JSReceiver, JSProxy, Name): void;
18

19
extern transitioning macro ProxiesCodeStubAssembler::CheckHasTrapResult(
20
    implicit context: Context)(JSReceiver, JSProxy, Name): void;
21

22 23 24 25
const kProxyGet: constexpr int31
    generates 'JSProxy::AccessKind::kGet';
const kProxySet: constexpr int31
    generates 'JSProxy::AccessKind::kSet';
26 27 28 29 30 31 32

type ProxyRevokeFunctionContext extends FunctionContext;
extern enum ProxyRevokeFunctionContextSlot extends intptr
constexpr 'ProxiesCodeStubAssembler::ProxyRevokeFunctionContextSlot' {
  kProxySlot: Slot<ProxyRevokeFunctionContext, JSProxy|Null>,
  kProxyContextLength
}
33
}