1// Copyright 2019 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 5extern class JSProxy extends JSReceiver { 6 target: JSReceiver|Null; 7 handler: JSReceiver|Null; 8} 9 10extern shape JSProxyRevocableResult extends JSObject { 11 proxy: JSAny; 12 revoke: JSAny; 13} 14 15macro NewJSProxyRevocableResult(implicit context: Context)( 16 proxy: JSProxy, revoke: JSFunction): JSProxyRevocableResult { 17 return new JSProxyRevocableResult{ 18 map: GetProxyRevocableResultMap(), 19 properties_or_hash: kEmptyFixedArray, 20 elements: kEmptyFixedArray, 21 proxy, 22 revoke 23 }; 24} 25