Skip to content

Commit 8165657

Browse files
targosjasnell
authored andcommitted
deps: patch V8 to 7.0.276.25
PR-URL: #23290 Refs: v8/v8@7.0.276.24...7.0.276.25 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent 4fe6cfc commit 8165657

File tree

3 files changed

+33
-2
lines changed

3 files changed

+33
-2
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 0
1313
#define V8_BUILD_NUMBER 276
14-
#define V8_PATCH_LEVEL 24
14+
#define V8_PATCH_LEVEL 25
1515

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

deps/v8/src/compiler/js-operator.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ CompareOperationHint CompareOperationHintOf(const Operator* op) {
623623
V(CreateKeyValueArray, Operator::kEliminatable, 2, 1) \
624624
V(CreatePromise, Operator::kEliminatable, 0, 1) \
625625
V(CreateTypedArray, Operator::kNoProperties, 5, 1) \
626-
V(CreateObject, Operator::kNoWrite, 1, 1) \
626+
V(CreateObject, Operator::kNoProperties, 1, 1) \
627627
V(ObjectIsArray, Operator::kNoProperties, 1, 1) \
628628
V(HasProperty, Operator::kNoProperties, 2, 1) \
629629
V(HasInPrototypeChain, Operator::kNoProperties, 2, 1) \
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
// Copyright 2018 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() {
8+
function f(o) {
9+
o.x;
10+
Object.create(o);
11+
return o.y.a;
12+
}
13+
14+
f({ x : 0, y : { a : 1 } });
15+
f({ x : 0, y : { a : 2 } });
16+
%OptimizeFunctionOnNextCall(f);
17+
assertEquals(3, f({ x : 0, y : { a : 3 } }));
18+
})();
19+
20+
(function() {
21+
function f(o) {
22+
let a = o.y;
23+
Object.create(o);
24+
return o.x + a;
25+
}
26+
27+
f({ x : 42, y : 21 });
28+
f({ x : 42, y : 21 });
29+
%OptimizeFunctionOnNextCall(f);
30+
assertEquals(63, f({ x : 42, y : 21 }));
31+
})();

0 commit comments

Comments
 (0)