Commit 71d1f5e3 authored by Simon Zünd's avatar Simon Zünd Committed by Commit Bot

[cleanup] Narrow types for StackFrameInfo and StackTraceFrame

This CL changes the types of some fields on StackFrameInfo and
StackTraceFrame from the generic 'tagged' value, to more specific
types. This improves the auto-generated object verifiers.

Bug: v8:8742
Change-Id: Ica7f34a61798fb7ab0655ffa269ba86afe8a52fb
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1649788
Auto-Submit: Simon Zünd <szuend@chromium.org>
Reviewed-by: 's avatarJakob Gruber <jgruber@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
Cr-Commit-Position: refs/heads/master@{#62086}
parent da654310
......@@ -876,20 +876,22 @@ extern class StackFrameInfo extends Struct {
column_number: Smi;
promise_all_index: Smi;
script_id: Smi;
script_name: Object;
script_name_or_source_url: Object;
function_name: Object;
method_name: Object;
type_name: Object;
eval_origin: Object;
wasm_module_name: Object;
script_name: String | Null | Undefined;
script_name_or_source_url: String | Null | Undefined;
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;
flag: Smi;
}
type FrameArray extends FixedArray;
extern class StackTraceFrame extends Struct {
frame_array: Object;
frame_array: FrameArray | Undefined;
frame_index: Smi;
frame_info: Object;
frame_info: StackFrameInfo | Undefined;
id: Smi;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment