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

Issue 2697063002: Fix typeof optimization for undetectable (Closed)

Created:
3 years, 10 months ago by vabr (Chromium)
Modified:
3 years, 10 months ago
Reviewers:
Benedikt Meurer
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Fix typeof optimization for undetectable Currently, typeof o, where o is an undetectable callable object (such as document.all), returns 'function' if optimised. It should, however, return 'undefined'. This CL excludes undetectable objects from the optimization resulting in type 'function' and renames the related code to reflect that. BUG=v8:5972 R=bmeurer@chromium.org Review-Url: https://codereview.chromium.org/2697063002 Cr-Commit-Position: refs/heads/master@{#43298} Committed: https://chromium.googlesource.com/v8/v8/+/6302753e2fb224156d0ca407fd4922653e98652b

Patch Set 1 #

Patch Set 2 : Add clean-up #

Patch Set 3 : Use Benedikt's test and introduce TypeOfIsFunction #

Patch Set 4 : Add TypeOfIsFunction to EscapeStatusAnalysis #

Total comments: 4

Patch Set 5 : Change typing rule (TODO: rename) #

Patch Set 6 : Change typing rule (TODO: rename) #

Patch Set 7 : DetectableCallable TODO: renaming #

Total comments: 2

Patch Set 8 : Rename + format fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -21 lines) Patch
M src/compiler/effect-control-linearizer.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M src/compiler/effect-control-linearizer.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -3 lines 0 comments Download
M src/compiler/escape-analysis.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M src/compiler/js-typed-lowering.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M src/compiler/opcodes.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M src/compiler/simplified-lowering.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M src/compiler/simplified-operator.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M src/compiler/simplified-operator.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M src/compiler/typer.cc View 1 2 3 4 5 6 7 3 chunks +6 lines, -6 lines 0 comments Download
M src/compiler/types.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -3 lines 0 comments Download
M src/compiler/verifier.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
A test/mjsunit/regress/regress-5972.js View 1 2 1 chunk +17 lines, -0 lines 0 comments Download

Messages

Total messages: 41 (31 generated)
vabr (Chromium)
Hi Benedikt, Could you please check whether this test looks like doing what it should ...
3 years, 10 months ago (2017-02-15 19:05:17 UTC) #3
Benedikt Meurer
On 2017/02/15 19:05:17, vabr (OOO until late Feb) wrote: > Hi Benedikt, > > Could ...
3 years, 10 months ago (2017-02-15 19:17:14 UTC) #6
vabr (Chromium)
Thanks, Benedikt! Your trick for producing a value suspected from both being callable and undetectable ...
3 years, 10 months ago (2017-02-15 23:36:41 UTC) #14
Benedikt Meurer
Thanks for digging into this Vaclav. As described in the comments, the bug is really ...
3 years, 10 months ago (2017-02-16 04:01:19 UTC) #15
vabr (Chromium)
Thanks, Benedikt, For all your online and off-line support, and for delviering everything for this ...
3 years, 10 months ago (2017-02-17 14:00:09 UTC) #28
Benedikt Meurer
Thanks Vaclav. Just a bit and the operator renaming, but otherwise LGTM! :-) https://codereview.chromium.org/2697063002/diff/120001/src/compiler/types.h File ...
3 years, 10 months ago (2017-02-17 14:08:42 UTC) #29
vabr (Chromium)
Thanks, Benedikt! I added "Detectable" in front of "Callable" as we discussed offline. I renamed ...
3 years, 10 months ago (2017-02-17 23:36:24 UTC) #32
Benedikt Meurer
Thanks a lot. LGTM!
3 years, 10 months ago (2017-02-18 08:04:28 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2697063002/140001
3 years, 10 months ago (2017-02-18 12:41:59 UTC) #38
commit-bot: I haz the power
3 years, 10 months ago (2017-02-18 12:43:47 UTC) #41
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/v8/v8/+/6302753e2fb224156d0ca407fd4922653e9...

Powered by Google App Engine
This is Rietveld 408576698