blob: b977128b3ecd1af3922d65b3e58d0bde6c9362f2 [file] [log] [blame]
// 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.
bitfield struct StackFrameInfoFlags extends uint31 {
is_eval: bool: 1 bit;
is_constructor: bool: 1 bit;
is_wasm: bool: 1 bit;
is_asm_js_wasm: bool: 1 bit;
is_user_java_script: bool: 1 bit;
is_toplevel: bool: 1 bit;
is_async: bool: 1 bit;
is_promise_all: bool: 1 bit;
is_promise_any: bool: 1 bit;
}
@generateCppClass
extern class StackFrameInfo extends Struct {
line_number: Smi;
column_number: Smi;
promise_combinator_index: Smi;
script_id: Smi;
wasm_function_index: Smi;
script_name: Object;
script_name_or_source_url: Object;
function_name: String|Null|Undefined;
method_name: String|Null|Undefined;
type_name: String|Null|Undefined;
eval_origin: String|Null|Undefined;
wasm_module_name: String|Null|Undefined;
wasm_instance: WasmInstanceObject|Null|Undefined;
flag: SmiTagged<StackFrameInfoFlags>;
}
@generateCppClass
extern class StackTraceFrame extends Struct {
frame_array: FrameArray|Undefined;
frame_index: Smi;
frame_info: StackFrameInfo|Undefined;
}