Skip to content

Commit 41193bc

Browse files
committed
deps: patch V8 to 6.5.254.41
PR-URL: #19432 Refs: v8/v8@6.5.254.40...6.5.254.41 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent 3662934 commit 41193bc

File tree

3 files changed

+25
-4
lines changed

3 files changed

+25
-4
lines changed

deps/v8/include/v8-version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#define V8_MAJOR_VERSION 6
1212
#define V8_MINOR_VERSION 5
1313
#define V8_BUILD_NUMBER 254
14-
#define V8_PATCH_LEVEL 40
14+
#define V8_PATCH_LEVEL 41
1515

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

deps/v8/src/compiler/escape-analysis.cc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -623,9 +623,7 @@ void ReduceNode(const Operator* op, EscapeAnalysisTracker::Scope* current,
623623
break;
624624
}
625625
case IrOpcode::kTypeGuard: {
626-
// The type-guard is re-introduced in the final reducer if the types
627-
// don't match.
628-
current->SetReplacement(current->ValueInput(0));
626+
current->SetVirtualObject(current->ValueInput(0));
629627
break;
630628
}
631629
case IrOpcode::kReferenceEqual: {
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// Copyright 2017 the V8 project authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style license that can be
3+
// found in the LICENSE file.
4+
5+
// Flags: --allow-natives-syntax --turbo-escape
6+
7+
function bar(arr) {
8+
var x = 0;
9+
arr.forEach(function(el) {
10+
x = el;
11+
});
12+
return x;
13+
}
14+
15+
function foo(array) {
16+
return bar(array);
17+
}
18+
19+
let array = [,.5,];
20+
foo(array);
21+
foo(array);
22+
%OptimizeFunctionOnNextCall(foo);
23+
foo(array);

0 commit comments

Comments
 (0)