patches: bump to 18.3.0
This commit is contained in:
parent
9b7221aa5c
commit
ca37139b2c
@ -24,7 +24,7 @@
|
||||
|
||||
--- node/deps/v8/src/api/api.cc
|
||||
+++ node/deps/v8/src/api/api.cc
|
||||
@@ -710,6 +710,29 @@ void V8::SetFlagsFromCommandLine(int* argc, char** argv, bool remove_flags) {
|
||||
@@ -706,6 +706,29 @@ void V8::SetFlagsFromCommandLine(int* argc, char** argv, bool remove_flags) {
|
||||
HelpOptions(HelpOptions::kDontExit));
|
||||
}
|
||||
|
||||
@ -56,7 +56,7 @@
|
||||
RegisteredExtension::RegisteredExtension(std::unique_ptr<Extension> extension)
|
||||
--- node/deps/v8/src/codegen/compiler.cc
|
||||
+++ node/deps/v8/src/codegen/compiler.cc
|
||||
@@ -2962,7 +2962,7 @@ MaybeHandle<SharedFunctionInfo> GetSharedFunctionInfoForScriptImpl(
|
||||
@@ -3026,7 +3026,7 @@ MaybeHandle<SharedFunctionInfo> GetSharedFunctionInfoForScriptImpl(
|
||||
// First check per-isolate compilation cache.
|
||||
maybe_result =
|
||||
compilation_cache->LookupScript(source, script_details, language_mode);
|
||||
@ -67,7 +67,7 @@
|
||||
compile_timer.set_consuming_code_cache();
|
||||
--- node/deps/v8/src/objects/js-function.cc
|
||||
+++ node/deps/v8/src/objects/js-function.cc
|
||||
@@ -1016,6 +1016,9 @@ Handle<String> JSFunction::ToString(Handle<JSFunction> function) {
|
||||
@@ -1207,6 +1207,9 @@ Handle<String> JSFunction::ToString(Handle<JSFunction> function) {
|
||||
Handle<Object> maybe_class_positions = JSReceiver::GetDataProperty(
|
||||
isolate, function, isolate->factory()->class_positions_symbol());
|
||||
if (maybe_class_positions->IsClassPositions()) {
|
||||
@ -79,7 +79,7 @@
|
||||
int start_position = class_positions.start();
|
||||
--- node/deps/v8/src/objects/shared-function-info-inl.h
|
||||
+++ node/deps/v8/src/objects/shared-function-info-inl.h
|
||||
@@ -633,6 +633,14 @@ bool SharedFunctionInfo::ShouldFlushCode(
|
||||
@@ -636,6 +636,14 @@ bool SharedFunctionInfo::ShouldFlushCode(
|
||||
}
|
||||
if (!data.IsBytecodeArray()) return false;
|
||||
|
||||
@ -114,7 +114,7 @@
|
||||
std::unique_ptr<Utf16CharacterStream> stream(
|
||||
--- node/deps/v8/src/snapshot/code-serializer.cc
|
||||
+++ node/deps/v8/src/snapshot/code-serializer.cc
|
||||
@@ -590,11 +590,7 @@ SerializedCodeSanityCheckResult SerializedCodeData::SanityCheck(
|
||||
@@ -615,11 +615,7 @@ SerializedCodeSanityCheckResult SerializedCodeData::SanityCheck(
|
||||
}
|
||||
|
||||
SerializedCodeSanityCheckResult SerializedCodeData::SanityCheckJustSource(
|
||||
@ -127,7 +127,7 @@
|
||||
return SerializedCodeSanityCheckResult::kSuccess;
|
||||
}
|
||||
|
||||
@@ -611,10 +607,6 @@ SerializedCodeSanityCheckResult SerializedCodeData::SanityCheckWithoutSource()
|
||||
@@ -636,10 +632,6 @@ SerializedCodeSanityCheckResult SerializedCodeData::SanityCheckWithoutSource()
|
||||
if (version_hash != Version::Hash()) {
|
||||
return SerializedCodeSanityCheckResult::kVersionMismatch;
|
||||
}
|
||||
@ -149,7 +149,7 @@
|
||||
}
|
||||
|
||||
function _forkChild(fd, serializationMode) {
|
||||
index 0000000000..fb2d47f52b
|
||||
index 00000000000..fb2d47f52b6
|
||||
--- /dev/null
|
||||
+++ node/lib/internal/bootstrap/pkg.js
|
||||
@@ -0,0 +1,44 @@
|
||||
@ -352,7 +352,7 @@ index 0000000000..fb2d47f52b
|
||||
}
|
||||
|
||||
ContextifyScript* contextify_script =
|
||||
@@ -776,6 +779,10 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
|
||||
@@ -775,6 +778,10 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
|
||||
ShouldNotAbortOnUncaughtScope no_abort_scope(env);
|
||||
Context::Scope scope(parsing_context);
|
||||
|
||||
@ -363,8 +363,8 @@ index 0000000000..fb2d47f52b
|
||||
MaybeLocal<UnboundScript> v8_script = ScriptCompiler::CompileUnboundScript(
|
||||
isolate,
|
||||
&source,
|
||||
@@ -792,6 +799,13 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
|
||||
contextify_script);
|
||||
@@ -789,6 +796,13 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
|
||||
"ContextifyScript::New");
|
||||
return;
|
||||
}
|
||||
+
|
||||
@ -377,7 +377,7 @@ index 0000000000..fb2d47f52b
|
||||
contextify_script->script_.Reset(isolate, v8_script.ToLocalChecked());
|
||||
|
||||
Local<Context> env_context = env->context();
|
||||
@@ -818,6 +832,11 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
|
||||
@@ -815,6 +829,11 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
|
||||
env->cached_data_produced_string(),
|
||||
Boolean::New(isolate, cached_data_produced)).Check();
|
||||
}
|
||||
@ -386,9 +386,9 @@ index 0000000000..fb2d47f52b
|
||||
+ V8::DisableCompilationForSourcelessUse();
|
||||
+ }
|
||||
+
|
||||
TRACE_EVENT_NESTABLE_ASYNC_END0(
|
||||
TRACING_CATEGORY_NODE2(vm, script),
|
||||
"ContextifyScript::New",
|
||||
TRACE_EVENT_END0(TRACING_CATEGORY_NODE2(vm, script), "ContextifyScript::New");
|
||||
}
|
||||
|
||||
--- node/src/node_main.cc
|
||||
+++ node/src/node_main.cc
|
||||
@@ -22,6 +22,8 @@
|
||||
@ -1,5 +1,5 @@
|
||||
{
|
||||
"v18.2.0": ["node.v18.2.0.cpp.patch"],
|
||||
"v18.3.0": ["node.v18.3.0.cpp.patch"],
|
||||
"v16.15.1": ["node.v16.15.1.cpp.patch"],
|
||||
"v14.19.3": ["node.v14.19.3.cpp.patch"],
|
||||
"v12.22.11": ["node.v12.22.11.cpp.patch"],
|
||||
|
||||
Loading…
Reference in New Issue
Block a user