call-site-info.tq 792 Bytes
Newer Older
Tobias Tebbi's avatar
Tobias Tebbi committed
1 2 3 4
// 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.

5
bitfield struct CallSiteInfoFlags extends uint31 {
6 7 8 9 10 11
  is_wasm: bool: 1 bit;
  is_asm_js_wasm: bool: 1 bit;  // Implies that is_wasm bit is set.
  is_strict: bool: 1 bit;
  is_constructor: bool: 1 bit;
  is_asm_js_at_number_conversion: bool: 1 bit;
  is_async: bool: 1 bit;
12 13 14

  // whether offset_or_source_position contains the source position.
  is_source_position_computed: bool: 1 bit;
15 16
}

17
extern class CallSiteInfo extends Struct {
18 19
  receiver_or_instance: JSAny;
  function: JSFunction|Smi;
20 21
  code_object: HeapObject;
  code_offset_or_source_position: Smi;
22
  flags: SmiTagged<CallSiteInfoFlags>;
23
  parameters: FixedArray;
Tobias Tebbi's avatar
Tobias Tebbi committed
24
}