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 5bitfield struct CallSiteInfoFlags extends uint31 { 6 is_wasm: bool: 1 bit; 7 is_asm_js_wasm: bool: 1 bit; // Implies that is_wasm bit is set. 8 is_strict: bool: 1 bit; 9 is_constructor: bool: 1 bit; 10 is_asm_js_at_number_conversion: bool: 1 bit; 11 is_async: bool: 1 bit; 12 13 // whether offset_or_source_position contains the source position. 14 is_source_position_computed: bool: 1 bit; 15} 16 17extern class CallSiteInfo extends Struct { 18 receiver_or_instance: JSAny; 19 function: JSFunction|Smi; 20 code_object: HeapObject; 21 code_offset_or_source_position: Smi; 22 flags: SmiTagged<CallSiteInfoFlags>; 23 parameters: FixedArray; 24} 25