summaryrefslogtreecommitdiff
path: root/deps/v8/src/objects/script.h
diff options
context:
space:
mode:
authorMichaël Zasso <targos@protonmail.com>2020-07-13 10:39:42 +0200
committerMichaël Zasso <targos@protonmail.com>2020-07-13 14:41:41 +0200
commit12478684aab233942e0d5dc24f195930c8a5e59d (patch)
tree97dbee955ab91d4df480bcb82274d710a2195e64 /deps/v8/src/objects/script.h
parent913d36d97da187a3804f6cfa96b4d24a8b7be78a (diff)
downloadnode-new-12478684aab233942e0d5dc24f195930c8a5e59d.tar.gz
deps: update V8 to 8.4.371.19
PR-URL: https://github.com/nodejs/node/pull/33579 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Shelley Vohr <codebytere@gmail.com>
Diffstat (limited to 'deps/v8/src/objects/script.h')
-rw-r--r--deps/v8/src/objects/script.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/deps/v8/src/objects/script.h b/deps/v8/src/objects/script.h
index b9fb7ea4f9..d5876de2e0 100644
--- a/deps/v8/src/objects/script.h
+++ b/deps/v8/src/objects/script.h
@@ -22,6 +22,10 @@ namespace internal {
// Script describes a script which has been added to the VM.
class Script : public Struct {
public:
+ // Script ID used for temporary scripts, which shouldn't be added to the
+ // script list.
+ static constexpr int kTemporaryScriptId = -2;
+
NEVER_READ_ONLY_SPACE
// Script types.
enum Type {
@@ -197,7 +201,7 @@ class Script : public Struct {
// that matches the function literal. Return empty handle if not found.
template <typename LocalIsolate>
MaybeHandle<SharedFunctionInfo> FindSharedFunctionInfo(
- LocalIsolate* isolate, const FunctionLiteral* fun);
+ LocalIsolate* isolate, int function_literal_id);
// Iterate over all script objects on the heap.
class V8_EXPORT_PRIVATE Iterator {