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

Issue 23444029: Add OptimizedCodeList and DeoptimizedCodeList to native contexts. Both lists are weak. This makes i… (Closed)

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

Description

Add OptimizedCodeList and DeoptimizedCodeList to native contexts. Both lists are weak. This makes it possible to find optimized code that is not referred to by any function, but still needs to be deoptimized. It obsoletes the weak deoptimizing code list in the deoptimizer data and generally simplifies the process of deoptimizing code. BUG= R=mstarzinger@chromium.org Committed: https://code.google.com/p/v8/source/detail?r=16530

Patch Set 1 #

Total comments: 15

Patch Set 2 : Addressed review comments. #

Patch Set 3 : Addressed review comments. #

Patch Set 4 : Rebase. #

Total comments: 1

Patch Set 5 : Addressed final comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+374 lines, -416 lines) Patch
M src/compiler.cc View 1 2 3 4 3 chunks +10 lines, -6 lines 0 comments Download
M src/contexts.h View 1 2 chunks +14 lines, -4 lines 0 comments Download
M src/contexts.cc View 1 1 chunk +36 lines, -2 lines 0 comments Download
M src/deoptimizer.h View 1 7 chunks +23 lines, -65 lines 0 comments Download
M src/deoptimizer.cc View 1 9 chunks +163 lines, -237 lines 0 comments Download
M src/heap.cc View 1 2 3 2 chunks +49 lines, -14 lines 0 comments Download
M src/ia32/macro-assembler-ia32.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/liveedit.cc View 1 2 3 1 chunk +31 lines, -17 lines 0 comments Download
M src/mark-compact.h View 1 chunk +1 line, -1 line 0 comments Download
src/mark-compact.cc View 1 5 chunks +10 lines, -34 lines 0 comments Download
M src/objects.h View 1 2 3 3 chunks +13 lines, -12 lines 0 comments Download
M src/objects.cc View 1 2 3 2 chunks +8 lines, -5 lines 0 comments Download
M src/objects-inl.h View 1 3 chunks +15 lines, -19 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
titzer
7 years, 3 months ago (2013-08-30 17:48:13 UTC) #1
titzer
Note that this CL solves the problem that the optimized code table (and OptimizedCodeEntry) was ...
7 years, 3 months ago (2013-08-30 17:50:00 UTC) #2
Michael Starzinger
Looking good. The only two issues are handlification in deoptimizer.cc and a different choke-point in ...
7 years, 3 months ago (2013-09-03 21:52:31 UTC) #3
Michael Starzinger
https://codereview.chromium.org/23444029/diff/1/src/deoptimizer.cc File src/deoptimizer.cc (right): https://codereview.chromium.org/23444029/diff/1/src/deoptimizer.cc#newcode398 src/deoptimizer.cc:398: // (This may actually cause a GC due to ...
7 years, 3 months ago (2013-09-03 22:03:47 UTC) #4
titzer
https://codereview.chromium.org/23444029/diff/1/src/compiler.cc File src/compiler.cc (right): https://codereview.chromium.org/23444029/diff/1/src/compiler.cc#newcode883 src/compiler.cc:883: info->context()->native_context()->AddOptimizedCode(*code); On 2013/09/03 21:52:31, Michael Starzinger wrote: > This ...
7 years, 3 months ago (2013-09-04 11:19:04 UTC) #5
Michael Starzinger
LGTM (with final nit). https://codereview.chromium.org/23444029/diff/23001/src/compiler.cc File src/compiler.cc (right): https://codereview.chromium.org/23444029/diff/23001/src/compiler.cc#newcode895 src/compiler.cc:895: if (FLAG_cache_optimized_code && nit: Can ...
7 years, 3 months ago (2013-09-04 12:17:48 UTC) #6
titzer
7 years, 3 months ago (2013-09-04 13:53:40 UTC) #7
Message was sent while issue was closed.
Committed patchset #5 manually as r16530 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698