Skip to content

Commit da93046

Browse files
targosaddaleax
authored andcommitted
deps: update V8 to 5.9.211.37
PR-URL: #13790 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
1 parent 55a1231 commit da93046

File tree

3 files changed

+35
-1
lines changed

3 files changed

+35
-1
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
#defineV8_MAJOR_VERSION 5
1212
#defineV8_MINOR_VERSION 9
1313
#defineV8_BUILD_NUMBER 211
14-
#defineV8_PATCH_LEVEL35
14+
#defineV8_PATCH_LEVEL37
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: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -853,6 +853,13 @@ bool EscapeStatusAnalysis::CheckUsesForEscape(Node* uses, Node* rep,
853853
case IrOpcode::kObjectIsString:
854854
case IrOpcode::kObjectIsSymbol:
855855
case IrOpcode::kObjectIsUndetectable:
856+
case IrOpcode::kNumberLessThan:
857+
case IrOpcode::kNumberLessThanOrEqual:
858+
case IrOpcode::kNumberEqual:
859+
#defineCASE(opcode) case IrOpcode::k##opcode:
860+
SIMPLIFIED_NUMBER_BINOP_LIST(CASE)
861+
SIMPLIFIED_NUMBER_UNOP_LIST(CASE)
862+
#undef CASE
856863
if (SetEscaped(rep)){
857864
TRACE("Setting #%d (%s) to escaped because of use by #%d (%s)\n",
858865
rep->id(), rep->op()->mnemonic(), use->id(),
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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+
functionfoo(){
8+
vara={x:1};
9+
varb={x:1.5,y: 1};
10+
varx=0;
11+
for(vari=0;i<1;i={}){
12+
// The second iteration of this loop is dead code, leading to a
13+
// contradiction between dynamic and static information.
14+
x+=a.x+0.5;
15+
x+=a.x%0.5;
16+
x+=Math.abs(a.x);
17+
x+=a.x<6;
18+
x+=a.x===7;
19+
x+=a.x<=8;
20+
a=b;
21+
}
22+
returnx;
23+
}
24+
foo();
25+
foo();
26+
%OptimizeFunctionOnNextCall(foo);
27+
foo();

0 commit comments

Comments
(0)