Skip to content

Commit 135b79a

Browse files
targosrefack
authored andcommitted
deps: patch V8 to 7.4.288.18
Refs: v8/v8@7.4.288.17...7.4.288.18 PR-URL: #27066 Refs: v8/v8@7.4.288.13...7.4.288.17 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Refael Ackermann <[email protected]>
1 parent c1d61f2 commit 135b79a

File tree

3 files changed

+27
-4
lines changed

3 files changed

+27
-4
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 4
1313
#define V8_BUILD_NUMBER 288
14-
#define V8_PATCH_LEVEL 17
14+
#define V8_PATCH_LEVEL 18
1515

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

deps/v8/src/compiler/typed-optimization.cc

+3-3
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,7 @@ Reduction TypedOptimization::ReduceSpeculativeNumberAdd(Node* node) {
727727
Node* const value =
728728
graph()->NewNode(simplified()->NumberAdd(), toNum_lhs, toNum_rhs);
729729
ReplaceWithValue(node, value);
730-
return Replace(node);
730+
return Replace(value);
731731
}
732732
return NoChange();
733733
}
@@ -796,7 +796,7 @@ Reduction TypedOptimization::ReduceSpeculativeNumberBinop(Node* node) {
796796
NumberOpFromSpeculativeNumberOp(simplified(), node->op()), toNum_lhs,
797797
toNum_rhs);
798798
ReplaceWithValue(node, value);
799-
return Replace(node);
799+
return Replace(value);
800800
}
801801
return NoChange();
802802
}
@@ -811,7 +811,7 @@ Reduction TypedOptimization::ReduceSpeculativeNumberComparison(Node* node) {
811811
Node* const value = graph()->NewNode(
812812
NumberOpFromSpeculativeNumberOp(simplified(), node->op()), lhs, rhs);
813813
ReplaceWithValue(node, value);
814-
return Replace(node);
814+
return Replace(value);
815815
}
816816
return NoChange();
817817
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// Copyright 2019 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
6+
7+
function f(v5,v6) {
8+
const v16 = [1337,1337,-765470.5051836492];
9+
let v19 = 0;
10+
do {
11+
const v20 = v19 + 1;
12+
const v22 = Math.fround(v20);
13+
v19 = v22;
14+
const v23 = [v20, v22];
15+
function v24() { v20; v22; }
16+
const v33 = v16.indexOf(v19);
17+
} while (v19 < 6);
18+
}
19+
20+
f();
21+
Array.prototype.push(8);
22+
%OptimizeFunctionOnNextCall(f);
23+
f();

0 commit comments

Comments
 (0)