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

Issue 2549753002: Store OSR'd optimized code on the native context. (Closed)

Created:
4 years ago by mvstanton
Modified:
4 years ago
Reviewers:
ulan, *Michael Starzinger
CC:
v8-reviews_googlegroups.com, Toon Verwaest
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Store OSR'd optimized code on the native context. Since we OSR code rarely, it makes sense to store it and look for it on the native context rather than the SharedFunctionInfo. This makes the OptimizedCodeMap data structure more space efficient, as it doesn't have to store an ast ID for the OSR entry point. BUG= Committed: https://crrev.com/378b6b22fb7925ac5b672335a54599f5739e7758 Cr-Commit-Position: refs/heads/master@{#41554}

Patch Set 1 #

Patch Set 2 : Fixed tests. #

Patch Set 3 : REBASE+ports #

Patch Set 4 : Flag/contextf #

Patch Set 5 : REBASE. #

Patch Set 6 : Rebase on flag removal. #

Patch Set 7 : Improvements. #

Total comments: 7

Patch Set 8 : Comment response. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+272 lines, -91 lines) Patch
M src/bootstrapper.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M src/builtins/arm/builtins-arm.cc View 1 2 1 chunk +0 lines, -6 lines 0 comments Download
M src/builtins/arm64/builtins-arm64.cc View 1 2 1 chunk +0 lines, -6 lines 0 comments Download
M src/builtins/ia32/builtins-ia32.cc View 1 1 chunk +0 lines, -6 lines 0 comments Download
M src/builtins/mips/builtins-mips.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -5 lines 0 comments Download
M src/builtins/mips64/builtins-mips64.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -5 lines 0 comments Download
M src/builtins/x64/builtins-x64.cc View 1 2 1 chunk +0 lines, -7 lines 0 comments Download
M src/contexts.h View 1 2 3 4 5 6 7 2 chunks +22 lines, -0 lines 0 comments Download
M src/contexts.cc View 1 2 3 4 5 6 7 1 chunk +176 lines, -0 lines 0 comments Download
M src/contexts-inl.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M src/debug/debug.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M src/isolate.h View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download
M src/isolate.cc View 1 2 3 4 5 6 7 1 chunk +20 lines, -0 lines 0 comments Download
M src/objects.h View 1 2 3 4 5 6 7 3 chunks +3 lines, -7 lines 0 comments Download
M src/objects.cc View 1 2 3 4 5 6 7 6 chunks +33 lines, -45 lines 0 comments Download
M test/cctest/interpreter/bytecode_expectations/CallRuntime.golden View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/interpreter/bytecode_expectations/SuperCallAndSpread.golden View 1 2 3 4 5 6 7 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 30 (20 generated)
mvstanton
Hi Michi, hi Ulan, Can you guys have a look at this fellow? Thanks! --Michael
4 years ago (2016-12-05 13:42:42 UTC) #10
mvstanton
Hi guys, I addressed an issue where I could leave optimized code laying around in ...
4 years ago (2016-12-05 22:01:36 UTC) #12
Michael Starzinger
LGTM. Not entierly happy with the duplicated code from objects.cc in contexts.cc. Also I didn't ...
4 years ago (2016-12-07 09:26:32 UTC) #17
Michael Starzinger
One other high-level thought: Currently we clear the entire optimized code map in {CodeFlusher::ProcessSharedFunctionInfoCandidates} when ...
4 years ago (2016-12-07 11:08:33 UTC) #18
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/2549753002/140001
4 years ago (2016-12-07 14:41:12 UTC) #22
mvstanton
Thanks! The code duplication should diminish as the OptimizedCodeMap gets smaller and (soon) disappears. I'll ...
4 years ago (2016-12-07 14:42:32 UTC) #23
ulan
https://codereview.chromium.org/2549753002/diff/120001/src/contexts.cc File src/contexts.cc (right): https://codereview.chromium.org/2549753002/diff/120001/src/contexts.cc#newcode481 src/contexts.cc:481: Handle<WeakCell> code_cell = isolate->factory()->NewWeakCell(code); Since the code is optimized, ...
4 years ago (2016-12-07 14:54:57 UTC) #24
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years ago (2016-12-07 15:10:54 UTC) #27
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/378b6b22fb7925ac5b672335a54599f5739e7758 Cr-Commit-Position: refs/heads/master@{#41554}
4 years ago (2016-12-07 15:11:16 UTC) #29
Benedikt Meurer
4 years ago (2016-12-08 06:12:51 UTC) #30
Message was sent while issue was closed.
A revert of this CL (patchset #8 id:140001) has been created in
https://codereview.chromium.org/2561633003/ by bmeurer@chromium.org.

The reason for reverting is: Speculative revert WebGL breakage reported in
https://bugs.chromium.org/p/chromium/issues/detail?id=672367.

Powered by Google App Engine
This is Rietveld 408576698