diff options
author | Myles Borins <mylesborins@google.com> | 2019-09-27 14:48:05 -0400 |
---|---|---|
committer | Myles Borins <myles.borins@gmail.com> | 2019-10-07 03:20:25 -0400 |
commit | ddfc3b0a764620515bb4c5c66445f75e865611f7 (patch) | |
tree | fc30e2ecba736d2c6f214abdb1d23a67f8fd7573 /deps/v8 | |
parent | 8d05991d1089563d0073628951fbf44afada0d68 (diff) | |
download | android-node-v8-ddfc3b0a764620515bb4c5c66445f75e865611f7.tar.gz android-node-v8-ddfc3b0a764620515bb4c5c66445f75e865611f7.tar.bz2 android-node-v8-ddfc3b0a764620515bb4c5c66445f75e865611f7.zip |
deps: patch V8 to 7.8.279.10
Refs: https://github.com/v8/v8/compare/7.8.279.9...7.8.279.10
PR-URL: https://github.com/nodejs/node/pull/29694
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
Diffstat (limited to 'deps/v8')
-rw-r--r-- | deps/v8/include/v8-version.h | 2 | ||||
-rw-r--r-- | deps/v8/src/codegen/compiler.cc | 16 |
2 files changed, 11 insertions, 7 deletions
diff --git a/deps/v8/include/v8-version.h b/deps/v8/include/v8-version.h index 6e61e2af99..2d1765b431 100644 --- a/deps/v8/include/v8-version.h +++ b/deps/v8/include/v8-version.h @@ -11,7 +11,7 @@ #define V8_MAJOR_VERSION 7 #define V8_MINOR_VERSION 8 #define V8_BUILD_NUMBER 279 -#define V8_PATCH_LEVEL 9 +#define V8_PATCH_LEVEL 10 // Use 1 for candidates and 0 otherwise. // (Boolean macro values are not supported by all preprocessors.) diff --git a/deps/v8/src/codegen/compiler.cc b/deps/v8/src/codegen/compiler.cc index 3a8ab3398a..fbd181f5c8 100644 --- a/deps/v8/src/codegen/compiler.cc +++ b/deps/v8/src/codegen/compiler.cc @@ -2234,18 +2234,22 @@ Handle<SharedFunctionInfo> Compiler::GetSharedFunctionInfo( // this function, replace the uncompiled data with one that includes it. if (literal->produced_preparse_data() != nullptr && existing->HasUncompiledDataWithoutPreparseData()) { - DCHECK(literal->inferred_name()->Equals( - existing->uncompiled_data().inferred_name())); + Handle<UncompiledData> existing_uncompiled_data = + handle(existing->uncompiled_data(), isolate); DCHECK_EQ(literal->start_position(), - existing->uncompiled_data().start_position()); + existing_uncompiled_data->start_position()); DCHECK_EQ(literal->end_position(), - existing->uncompiled_data().end_position()); + existing_uncompiled_data->end_position()); + // Use existing uncompiled data's inferred name as it may be more + // accurate than the literal we preparsed. + Handle<String> inferred_name = + handle(existing_uncompiled_data->inferred_name(), isolate); Handle<PreparseData> preparse_data = literal->produced_preparse_data()->Serialize(isolate); Handle<UncompiledData> new_uncompiled_data = isolate->factory()->NewUncompiledDataWithPreparseData( - literal->inferred_name(), literal->start_position(), - literal->end_position(), preparse_data); + inferred_name, existing_uncompiled_data->start_position(), + existing_uncompiled_data->end_position(), preparse_data); existing->set_uncompiled_data(*new_uncompiled_data); } return existing; |