deps: patch V8 to 6.5.254.41
PR-URL: https://github.com/nodejs/node/pull/19432 Refs: https://github.com/v8/v8/compare/6.5.254.40...6.5.254.41 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
parent
3662934b5a
commit
41193bcf2f
2
deps/v8/include/v8-version.h
vendored
2
deps/v8/include/v8-version.h
vendored
@ -11,7 +11,7 @@
|
||||
#define V8_MAJOR_VERSION 6
|
||||
#define V8_MINOR_VERSION 5
|
||||
#define V8_BUILD_NUMBER 254
|
||||
#define V8_PATCH_LEVEL 40
|
||||
#define V8_PATCH_LEVEL 41
|
||||
|
||||
// Use 1 for candidates and 0 otherwise.
|
||||
// (Boolean macro values are not supported by all preprocessors.)
|
||||
|
4
deps/v8/src/compiler/escape-analysis.cc
vendored
4
deps/v8/src/compiler/escape-analysis.cc
vendored
@ -623,9 +623,7 @@ void ReduceNode(const Operator* op, EscapeAnalysisTracker::Scope* current,
|
||||
break;
|
||||
}
|
||||
case IrOpcode::kTypeGuard: {
|
||||
// The type-guard is re-introduced in the final reducer if the types
|
||||
// don't match.
|
||||
current->SetReplacement(current->ValueInput(0));
|
||||
current->SetVirtualObject(current->ValueInput(0));
|
||||
break;
|
||||
}
|
||||
case IrOpcode::kReferenceEqual: {
|
||||
|
23
deps/v8/test/mjsunit/compiler/escape-analysis-18.js
vendored
Normal file
23
deps/v8/test/mjsunit/compiler/escape-analysis-18.js
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
// Copyright 2017 the V8 project authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
// Flags: --allow-natives-syntax --turbo-escape
|
||||
|
||||
function bar(arr) {
|
||||
var x = 0;
|
||||
arr.forEach(function(el) {
|
||||
x = el;
|
||||
});
|
||||
return x;
|
||||
}
|
||||
|
||||
function foo(array) {
|
||||
return bar(array);
|
||||
}
|
||||
|
||||
let array = [,.5,];
|
||||
foo(array);
|
||||
foo(array);
|
||||
%OptimizeFunctionOnNextCall(foo);
|
||||
foo(array);
|
Loading…
x
Reference in New Issue
Block a user