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

Issue 2278543002: [compiler] Make Compiler::EnsureBytecode not switch tiers. (Closed)

Created:
4 years, 4 months ago by Michael Starzinger
Modified:
4 years, 4 months ago
Reviewers:
rmcilroy
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

[compiler] Make Compiler::EnsureBytecode not switch tiers. This preserves the original shared code of the underlying function when bytecode is provided. The method in question should only ensure bytecode is present, but should avoid switching compilation tiers of the given function. It might be that the function was fast-tracked to baseline by inlining without going through the interpreted tier first. R=rmcilroy@chromium.org TEST=mjsunit/regress/regress-crbug-635923 BUG=chromium:635923 Committed: https://crrev.com/b52aecac7e1f05ec3a23c9732ae936a6e50252fc Cr-Commit-Position: refs/heads/master@{#38866}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Addressed comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -1 line) Patch
M src/compiler.cc View 1 1 chunk +8 lines, -1 line 0 comments Download
A test/mjsunit/regress/regress-crbug-635923.js View 1 1 chunk +21 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (11 generated)
Michael Starzinger
4 years, 4 months ago (2016-08-24 12:52:33 UTC) #3
rmcilroy
LGTM, thanks. https://codereview.chromium.org/2278543002/diff/1/src/compiler.cc File src/compiler.cc (right): https://codereview.chromium.org/2278543002/diff/1/src/compiler.cc#newcode1398 src/compiler.cc:1398: if (original_code->kind() == Code::FUNCTION) { A comment ...
4 years, 4 months ago (2016-08-24 13:31:34 UTC) #6
Michael Starzinger
Thanks! Addressed comments. Landing. https://codereview.chromium.org/2278543002/diff/1/src/compiler.cc File src/compiler.cc (right): https://codereview.chromium.org/2278543002/diff/1/src/compiler.cc#newcode1398 src/compiler.cc:1398: if (original_code->kind() == Code::FUNCTION) { ...
4 years, 4 months ago (2016-08-24 13:42:35 UTC) #9
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/2278543002/20001
4 years, 4 months ago (2016-08-24 14:07:19 UTC) #14
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 4 months ago (2016-08-24 14:09:40 UTC) #15
commit-bot: I haz the power
4 years, 4 months ago (2016-08-24 14:10:10 UTC) #17
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/b52aecac7e1f05ec3a23c9732ae936a6e50252fc
Cr-Commit-Position: refs/heads/master@{#38866}

Powered by Google App Engine
This is Rietveld 408576698