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

Issue 1883603002: OptimizeFunctionOnNextCall and DeoptimizeFunction ignore calls on non-JSFunction objects. (Closed)

Created:
4 years, 8 months ago by mythria
Modified:
4 years, 8 months ago
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

OptimizeFunctionOnNextCall and DeoptimizeFunction ignores calls on non-JSFunction objects. Runtime_OptimizeFunctionOnNextCall and Runtime_DeoptimizeFunction asserts that the argument is a JSFunction object.These are used by fuzzers to get coverage of optimizations in compiler. Having an assert causes a fuzzer test to fail when OptimizeFunctionOnNextCall is called on objects that are not functions. We can instead, silently return on such calls. BUG=chromium:601391 LOG=N Committed: https://crrev.com/62801ee3a11d77b95b9ea110875a78e7afc11f7d Cr-Commit-Position: refs/heads/master@{#35539}

Patch Set 1 #

Patch Set 2 : Also fixes DeoptimizeFunction. #

Total comments: 4

Patch Set 3 : fixes nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -2 lines) Patch
M src/runtime/runtime-test.cc View 1 2 2 chunks +20 lines, -2 lines 0 comments Download

Messages

Total messages: 36 (19 generated)
mythria
This cl is to fix a clusterfuzz bug: https://bugs.chromium.org/p/chromium/issues/detail?id=601391. %OptimizeFunctionOnNextCall is called on a variable ...
4 years, 8 months ago (2016-04-12 16:15:39 UTC) #2
Benedikt Meurer
Hey Mythri, Sorry missed this one yesterday. I think Michi is the better reviewer here. ...
4 years, 8 months ago (2016-04-13 07:01:19 UTC) #5
Michael Starzinger
LGTM. Yes, you are absolutely right, there are more runtime functions that suffer from the ...
4 years, 8 months ago (2016-04-13 10:35:40 UTC) #7
Michael Starzinger
Ooops, wrong username, adding Dan for realz this time.
4 years, 8 months ago (2016-04-13 10:36:40 UTC) #9
Dan Ehrenberg
I'm not sure why we're going in this direction. My suggestion would be to not ...
4 years, 8 months ago (2016-04-13 17:18:28 UTC) #10
Michael Starzinger
On 2016/04/13 17:18:28, Dan Ehrenberg wrote: > I'm not sure why we're going in this ...
4 years, 8 months ago (2016-04-13 17:26:20 UTC) #11
Dan Ehrenberg
On 2016/04/13 at 17:26:20, mstarzinger wrote: > On 2016/04/13 17:18:28, Dan Ehrenberg wrote: > > ...
4 years, 8 months ago (2016-04-13 17:35:27 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1883603002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1883603002/20001
4 years, 8 months ago (2016-04-15 13:13:41 UTC) #19
mythria
Michi, PTAL I also added the check for DeoptimizeFunction.
4 years, 8 months ago (2016-04-15 13:34:11 UTC) #20
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-15 13:42:04 UTC) #22
Michael Starzinger
Yep. Still LGTM with nits. https://codereview.chromium.org/1883603002/diff/20001/src/runtime/runtime-test.cc File src/runtime/runtime-test.cc (right): https://codereview.chromium.org/1883603002/diff/20001/src/runtime/runtime-test.cc#newcode20 src/runtime/runtime-test.cc:20: // This function is ...
4 years, 8 months ago (2016-04-15 13:51:35 UTC) #23
mythria
Thanks, updated the comment. I will land it once the bots are happy. https://codereview.chromium.org/1883603002/diff/20001/src/runtime/runtime-test.cc File ...
4 years, 8 months ago (2016-04-15 14:10:06 UTC) #25
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1883603002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1883603002/40001
4 years, 8 months ago (2016-04-15 14:10:25 UTC) #27
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-15 14:46:47 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1883603002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1883603002/40001
4 years, 8 months ago (2016-04-15 14:47:35 UTC) #32
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 8 months ago (2016-04-15 14:49:36 UTC) #34
commit-bot: I haz the power
4 years, 8 months ago (2016-04-15 14:51:20 UTC) #36
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/62801ee3a11d77b95b9ea110875a78e7afc11f7d
Cr-Commit-Position: refs/heads/master@{#35539}

Powered by Google App Engine
This is Rietveld 408576698