Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(281)

Issue 1611933003: [crankshaft] Remove for-in slow mode deopt loop. (Closed)

Created:
4 years, 11 months ago by Benedikt Meurer
Modified:
4 years, 10 months ago
Reviewers:
Jarin, adamk, Jakob Kummerow
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@ForIn
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[crankshaft] Remove for-in slow mode deopt loop. When a slow mode for-in loop is compiled with Crankshaft we unconditionally deoptimize when we hit an object with a usable enum-cache (which is currently hidden by another CL), and obviously we don't learn anything from that. R=jarin@chromium.org BUG=v8:3650 LOG=n Committed: https://crrev.com/1c6a818efb0be7bc00f6ccd6bfb66fde8d7d3657 Cr-Commit-Position: refs/heads/master@{#33427}

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -9 lines) Patch
M src/crankshaft/hydrogen.cc View 2 chunks +30 lines, -9 lines 1 comment Download

Depends on Patchset:

Messages

Total messages: 12 (3 generated)
Benedikt Meurer
4 years, 11 months ago (2016-01-21 08:33:50 UTC) #1
Benedikt Meurer
Hey Jaro, Here's the fix for the deopt loop for slow-mode for-in. Please take a ...
4 years, 11 months ago (2016-01-21 08:34:40 UTC) #2
Jarin
lgtm
4 years, 11 months ago (2016-01-21 08:47:10 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1611933003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1611933003/1
4 years, 11 months ago (2016-01-21 08:47:27 UTC) #5
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 11 months ago (2016-01-21 08:55:58 UTC) #6
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/1c6a818efb0be7bc00f6ccd6bfb66fde8d7d3657 Cr-Commit-Position: refs/heads/master@{#33427}
4 years, 11 months ago (2016-01-21 08:56:36 UTC) #8
adamk
The buildbot history suggests that this patch, with cbruni's revert of his "Do not use ...
4 years, 11 months ago (2016-01-21 22:13:24 UTC) #9
Benedikt Meurer
Thanks for the hint, will investigate. Camillo's patch essentially disabled the enum cache in many ...
4 years, 11 months ago (2016-01-22 04:56:20 UTC) #10
Jakob Kummerow
4 years, 10 months ago (2016-01-28 21:34:38 UTC) #12
Message was sent while issue was closed.
This CL introduced https://bugs.chromium.org/p/v8/issues/detail?id=4715 .

https://codereview.chromium.org/1611933003/diff/1/src/crankshaft/hydrogen.cc
File src/crankshaft/hydrogen.cc (right):

https://codereview.chromium.org/1611933003/diff/1/src/crankshaft/hydrogen.cc#...
src/crankshaft/hydrogen.cc:5354: Push(cache_map);
Pushing the map here has no effect, as we're in the fast==false case (see lines
5322/5337 above), whereas the map check that would consume it is only emitted in
the fast==true case (see line 5412 below).

Powered by Google App Engine
This is Rietveld 408576698