Skip to content

Commit ddfc3b0

Browse files
committed
deps: patch V8 to 7.8.279.10
Refs: v8/v8@7.8.279.9...7.8.279.10 PR-URL: #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>
1 parent 8d05991 commit ddfc3b0

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

deps/v8/include/v8-version.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#define V8_MAJOR_VERSION 7
1212
#define V8_MINOR_VERSION 8
1313
#define V8_BUILD_NUMBER 279
14-
#define V8_PATCH_LEVEL 9
14+
#define V8_PATCH_LEVEL 10
1515

1616
// Use 1 for candidates and 0 otherwise.
1717
// (Boolean macro values are not supported by all preprocessors.)

deps/v8/src/codegen/compiler.cc

+10-6
Original file line numberDiff line numberDiff line change
@@ -2234,18 +2234,22 @@ Handle<SharedFunctionInfo> Compiler::GetSharedFunctionInfo(
22342234
// this function, replace the uncompiled data with one that includes it.
22352235
if (literal->produced_preparse_data() != nullptr &&
22362236
existing->HasUncompiledDataWithoutPreparseData()) {
2237-
DCHECK(literal->inferred_name()->Equals(
2238-
existing->uncompiled_data().inferred_name()));
2237+
Handle<UncompiledData> existing_uncompiled_data =
2238+
handle(existing->uncompiled_data(), isolate);
22392239
DCHECK_EQ(literal->start_position(),
2240-
existing->uncompiled_data().start_position());
2240+
existing_uncompiled_data->start_position());
22412241
DCHECK_EQ(literal->end_position(),
2242-
existing->uncompiled_data().end_position());
2242+
existing_uncompiled_data->end_position());
2243+
// Use existing uncompiled data's inferred name as it may be more
2244+
// accurate than the literal we preparsed.
2245+
Handle<String> inferred_name =
2246+
handle(existing_uncompiled_data->inferred_name(), isolate);
22432247
Handle<PreparseData> preparse_data =
22442248
literal->produced_preparse_data()->Serialize(isolate);
22452249
Handle<UncompiledData> new_uncompiled_data =
22462250
isolate->factory()->NewUncompiledDataWithPreparseData(
2247-
literal->inferred_name(), literal->start_position(),
2248-
literal->end_position(), preparse_data);
2251+
inferred_name, existing_uncompiled_data->start_position(),
2252+
existing_uncompiled_data->end_position(), preparse_data);
22492253
existing->set_uncompiled_data(*new_uncompiled_data);
22502254
}
22512255
return existing;

0 commit comments

Comments
 (0)