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

Issue 19776006: Fix %NeverOptimizeFunction runtime call. (Closed)

Created:
7 years, 5 months ago by Michael Starzinger
Modified:
7 years, 5 months ago
Reviewers:
titzer
CC:
v8-dev
Visibility:
Public.

Description

Fix %NeverOptimizeFunction runtime call. The current usage of this runtime function is broken as it does not prevent inlining of the affected function but rather bails out from the whole unit of compilation after trying to inline affected functions. This simplifies said runtime function to avoid accidental misuse. R=titzer@chromium.org TEST=mjsunit/never-optimize Committed: http://code.google.com/p/v8/source/detail?r=15762

Patch Set 1 #

Patch Set 2 : Add assert for safety. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+204 lines, -222 lines) Patch
M src/hydrogen.cc View 1 chunk +0 lines, -8 lines 0 comments Download
M src/runtime.h View 1 chunk +1 line, -1 line 0 comments Download
M src/runtime.cc View 1 1 chunk +5 lines, -16 lines 0 comments Download
M test/mjsunit/compiler/inline-arguments.js View 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/elements-kind.js View 4 chunks +6 lines, -6 lines 0 comments Download
M test/mjsunit/elide-double-hole-check-9.js View 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/generated-transition-stub.js View 1 chunk +172 lines, -168 lines 0 comments Download
M test/mjsunit/never-optimize.js View 2 chunks +6 lines, -8 lines 0 comments Download
M test/mjsunit/opt-elements-kind.js View 1 chunk +3 lines, -3 lines 0 comments Download
M test/mjsunit/osr-elements-kind.js View 2 chunks +3 lines, -3 lines 0 comments Download
M test/mjsunit/regress/regress-1713b.js View 2 chunks +1 line, -2 lines 0 comments Download
M test/mjsunit/regress/regress-97116b.js View 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/regress/regress-crbug-173907b.js View 1 chunk +1 line, -1 line 0 comments Download
M test/mjsunit/regress/regress-deopt-gcb.js View 1 chunk +2 lines, -2 lines 0 comments Download
M test/mjsunit/regress/regress-mul-canoverflowb.js View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
Michael Starzinger
7 years, 5 months ago (2013-07-18 17:22:40 UTC) #1
titzer
lgtm
7 years, 5 months ago (2013-07-18 17:40:12 UTC) #2
Michael Starzinger
7 years, 5 months ago (2013-07-19 08:25:58 UTC) #3
Message was sent while issue was closed.
Committed patchset #2 manually as r15762 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698