summaryrefslogtreecommitdiff
path: root/chromium/v8/src/objects/script.tq
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2020-10-12 14:27:29 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2020-10-13 09:35:20 +0000
commitc30a6232df03e1efbd9f3b226777b07e087a1122 (patch)
treee992f45784689f373bcc38d1b79a239ebe17ee23 /chromium/v8/src/objects/script.tq
parent7b5b123ac58f58ffde0f4f6e488bcd09aa4decd3 (diff)
downloadqtwebengine-chromium-85-based.tar.gz
BASELINE: Update Chromium to 85.0.4183.14085-based
Change-Id: Iaa42f4680837c57725b1344f108c0196741f6057 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/v8/src/objects/script.tq')
-rw-r--r--chromium/v8/src/objects/script.tq52
1 files changed, 44 insertions, 8 deletions
diff --git a/chromium/v8/src/objects/script.tq b/chromium/v8/src/objects/script.tq
index 5e68c870239..cac5ceb3ba4 100644
--- a/chromium/v8/src/objects/script.tq
+++ b/chromium/v8/src/objects/script.tq
@@ -2,20 +2,56 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+type CompilationType extends int32 constexpr 'Script::CompilationType';
+type CompilationState extends int32 constexpr 'Script::CompilationState';
+
+bitfield struct ScriptFlags extends uint31 {
+ compilation_type: CompilationType: 1 bit;
+ compilation_state: CompilationState: 1 bit;
+ is_repl_mode: bool: 1 bit;
+ origin_options: int32: 4 bit;
+}
+
+@generateCppClass
extern class Script extends Struct {
- source: Object;
+ // [source]: the script source.
+ source: String|Undefined;
+
+ // [name]: the script name.
name: Object;
+
+ // [line_offset]: script line offset in resource from where it was extracted.
line_offset: Smi;
+
+ // [column_offset]: script column offset in resource from where it was
+ // extracted.
column_offset: Smi;
- context: Object;
+
+ // [context_data]: context data for the context this script was compiled in.
+ context_data: Smi|Undefined|Symbol;
+
script_type: Smi;
- line_ends: Object;
+
+ // [line_ends]: FixedArray of line ends positions.
+ line_ends: FixedArray|Undefined;
+
+ // [id]: the script id.
id: Smi;
- eval_from_shared_or_wrapped_arguments: Object;
+
+ eval_from_shared_or_wrapped_arguments: SharedFunctionInfo|FixedArray|
+ Undefined;
eval_from_position: Smi|Foreign; // Smi or Managed<wasm::NativeModule>
- shared_function_infos: Object;
- flags: Smi;
- source_url: Object;
+ shared_function_infos: WeakFixedArray|WeakArrayList;
+
+ // [flags]: Holds an exciting bitfield.
+ flags: SmiTagged<ScriptFlags>;
+
+ // [source_url]: sourceURL from magic comment
+ source_url: String|Undefined;
+
+ // [source_mapping_url]: sourceMappingURL magic comment
source_mapping_url: Object;
- host_defined_options: Object;
+
+ // [host_defined_options]: Options defined by the embedder.
+ host_defined_options: FixedArray;
}