[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: Jakob Gruber <jgruber@chromium.org>
Commit-Queue: Simon Zünd <szuend@chromium.org>
Cr-Commit-Position: refs/heads/master@{#62086}
This commit is contained in:
Simon Zünd 2019-06-11 09:02:16 +02:00 committed by Commit Bot
parent da6543108d
commit 71d1f5e33c

View File

@ -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;
}