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

Issue 8611003: Always create deopt data when using full-codegen if the function is optimizable (Closed)

Created:
9 years, 1 month ago by Rico
Modified:
9 years, 1 month ago
CC:
v8-dev
Visibility:
Public.

Description

Always create deopt data when using full-codegen if the function is optimizable Committed: http://code.google.com/p/v8/source/detail?r=10040

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -1 line) Patch
M src/compiler.cc View 1 chunk +5 lines, -1 line 2 comments Download

Messages

Total messages: 4 (0 generated)
Rico
9 years, 1 month ago (2011-11-21 10:40:50 UTC) #1
Rico
9 years, 1 month ago (2011-11-21 11:42:33 UTC) #2
Kevin Millikin (Chromium)
LGTM. The AllowOptimize/IsOptimizing/IsOptimizable/HasDeoptimizationSupport seems pretty complicated. I have the feeling that one of them is ...
9 years, 1 month ago (2011-11-21 13:47:25 UTC) #3
Rico
9 years, 1 month ago (2011-11-21 14:00:12 UTC) #4
I totally agree, the
AllowOptimize/IsOptimizing/IsOptimizable/HasDeoptimizationSupport is really
confusing. I just took the flag that is used to decide if to optimize in the
runtime profiler.

http://codereview.chromium.org/8611003/diff/1/src/compiler.cc
File src/compiler.cc (right):

http://codereview.chromium.org/8611003/diff/1/src/compiler.cc#newcode248
src/compiler.cc:248: bool should_recompile =
!info->shared_info()->has_deoptimization_support();
On 2011/11/21 13:47:25, Kevin Millikin wrote:
> So is all this dead code now?  Can we just assert that the unoptimized code
has
> deoptimization support?
I think that we can get in here if we had a function that had the
CompilingForDebugging set, in that case we only generate deopt data if the
function already has optimized code. I could change that to also always generate
deopt data - in all the cases where we could potentially later optimize.

Powered by Google App Engine
This is Rietveld 408576698