Commit 03b1c31
deps: cherry-pick 08377af from v8 upstream
Orignial commit message:
[crankshaft] No need to rely on the @@hasInstance protector.
In Crankshaft we can actually do an abstract interpretation of the
@@hasInstance lookup when optimizing instanceof and then use the
normal machinery to protect the result instead of relying on the
global @@hasInstance protector cell for optimizations.
This recovers the 100x performance drop in Node.js v7 reported in
#9634. This patch should be
easily back-mergable to Node.js v7.
BUG=v8:5640
R=yangguo@chromium.org,franzih@chromium.org
Committed: https://crrev.com/08377af957b1602396ebf3e11ae000f15ed09333
Cr-Commit-Position: refs/heads/master@{#41059}
PR-URL: #9730
Fixes: #9634
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>1 parent f76bb2a commit 03b1c31Copy full SHA for 03b1c31
File tree
Expand file treeCollapse file tree
4 files changed
+34
-19
lines changedOpen diff view settings
Filter options
- deps/v8
- include
- src
- crankshaft
Expand file treeCollapse file tree
4 files changed
+34
-19
lines changedOpen diff view settings
Collapse file
deps/v8/include/v8-version.h
Copy file name to clipboardExpand all lines: deps/v8/include/v8-version.h+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
11 | 11 | |
12 | 12 | |
13 | 13 | |
14 | | - |
| 14 | + |
15 | 15 | |
16 | 16 | |
17 | 17 | |
|
Collapse file
deps/v8/src/bootstrapper.cc
Copy file name to clipboardExpand all lines: deps/v8/src/bootstrapper.cc+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1206 | 1206 | |
1207 | 1207 | |
1208 | 1208 | |
| 1209 | + |
1209 | 1210 | |
1210 | 1211 | |
1211 | 1212 | |
|
Collapse file
+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
78 | 78 | |
79 | 79 | |
80 | 80 | |
| 81 | + |
81 | 82 | |
82 | 83 | |
83 | 84 | |
|
Collapse file
deps/v8/src/crankshaft/hydrogen.cc
Copy file name to clipboardExpand all lines: deps/v8/src/crankshaft/hydrogen.cc+31-18Lines changed: 31 additions & 18 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
11563 | 11563 | |
11564 | 11564 | |
11565 | 11565 | |
11566 | | - |
11567 | | - |
11568 | | - |
11569 | | - |
11570 | | - |
11571 | | - |
11572 | | - |
11573 | | - |
11574 | | - |
11575 | | - |
11576 | | - |
11577 | | - |
11578 | | - |
11579 | | - |
11580 | | - |
11581 | | - |
11582 | | - |
11583 | | - |
| 11566 | + |
| 11567 | + |
| 11568 | + |
| 11569 | + |
| 11570 | + |
| 11571 | + |
| 11572 | + |
| 11573 | + |
| 11574 | + |
| 11575 | + |
| 11576 | + |
| 11577 | + |
| 11578 | + |
| 11579 | + |
| 11580 | + |
| 11581 | + |
| 11582 | + |
| 11583 | + |
| 11584 | + |
| 11585 | + |
| 11586 | + |
| 11587 | + |
| 11588 | + |
| 11589 | + |
| 11590 | + |
| 11591 | + |
| 11592 | + |
| 11593 | + |
| 11594 | + |
| 11595 | + |
| 11596 | + |
11584 | 11597 | |
11585 | 11598 | |
11586 | 11599 | |
|
0 commit comments