Chromium Code Reviews

Issue 1218873005: [turbofan] Context specialization is the job of the JSContextSpecialization. (Closed)

Created:
5 years, 5 months ago by Benedikt Meurer
Modified:
5 years, 5 months ago
Reviewers:
Michael Starzinger
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[turbofan] Context specialization is the job of the JSContextSpecialization. Remove the context specialization hack from the AstGraphBuilder, and properly specialize to the function context in the context specialization. And replace the correct context in the JSInliner. R=mstarzinger@chromium.org BUG=v8:4273 LOG=n Committed: https://crrev.com/069a47f6e5ed00d0f63fc845b62ad325f13b2c37 Cr-Commit-Position: refs/heads/master@{#29493}

Patch Set 1 #

Total comments: 1

Patch Set 2 : REBASE. Remove the OSR hacks completely. #

Total comments: 2

Patch Set 3 : Fix mini-nit. #

Unified diffs Side-by-side diffs Stats (+104 lines, -89 lines)
M src/compiler/ast-graph-builder.h View 3 chunks +4 lines, -6 lines 0 comments
M src/compiler/ast-graph-builder.cc View 7 chunks +25 lines, -37 lines 0 comments
M src/compiler/js-context-specialization.h View 1 chunk +10 lines, -7 lines 0 comments
M src/compiler/js-context-specialization.cc View 3 chunks +33 lines, -9 lines 0 comments
M src/compiler/js-inlining.h View 1 chunk +2 lines, -1 line 0 comments
M src/compiler/js-inlining.cc View 4 chunks +9 lines, -10 lines 0 comments
M src/compiler/pipeline.cc View 5 chunks +8 lines, -7 lines 0 comments
M test/cctest/compiler/test-js-context-specialization.cc View 11 chunks +13 lines, -12 lines 0 comments

Messages

Total messages: 20 (8 generated)
Benedikt Meurer
5 years, 5 months ago (2015-06-30 12:42:22 UTC) #1
Benedikt Meurer
Hey Michi, Here's the CL you're asking for. Please take a look. Thanks, Benedikt
5 years, 5 months ago (2015-06-30 12:42:48 UTC) #2
Michael Starzinger
LGTM. I love it. Thank you! https://codereview.chromium.org/1218873005/diff/1/src/compiler/ast-graph-builder.h File src/compiler/ast-graph-builder.h (right): https://codereview.chromium.org/1218873005/diff/1/src/compiler/ast-graph-builder.h#newcode38 src/compiler/ast-graph-builder.h:38: bool CreateGraph(bool stack_check ...
5 years, 5 months ago (2015-06-30 12:48:44 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1218873005/1
5 years, 5 months ago (2015-06-30 12:48:52 UTC) #5
commit-bot: I haz the power
Try jobs failed on following builders: v8_linux_arm64_rel on tryserver.v8 (JOB_FAILED, http://build.chromium.org/p/tryserver.v8/builders/v8_linux_arm64_rel/builds/7191)
5 years, 5 months ago (2015-06-30 13:42:27 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1218873005/1
5 years, 5 months ago (2015-07-01 04:11:11 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1218873005/1
5 years, 5 months ago (2015-07-01 04:17:00 UTC) #12
Michael Starzinger
Still LGTM. Still love it. https://codereview.chromium.org/1218873005/diff/20001/src/compiler/ast-graph-builder.cc File src/compiler/ast-graph-builder.cc (right): https://codereview.chromium.org/1218873005/diff/20001/src/compiler/ast-graph-builder.cc#newcode534 src/compiler/ast-graph-builder.cc:534: Node* inner_context = BuildLocalFunctionContext(function_context_.get()); ...
5 years, 5 months ago (2015-07-06 12:30:45 UTC) #14
Benedikt Meurer
https://codereview.chromium.org/1218873005/diff/20001/src/compiler/ast-graph-builder.cc File src/compiler/ast-graph-builder.cc (right): https://codereview.chromium.org/1218873005/diff/20001/src/compiler/ast-graph-builder.cc#newcode534 src/compiler/ast-graph-builder.cc:534: Node* inner_context = BuildLocalFunctionContext(function_context_.get()); On 2015/07/06 12:30:45, Michael Starzinger ...
5 years, 5 months ago (2015-07-06 12:33:38 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1218873005/40001
5 years, 5 months ago (2015-07-06 12:33:51 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 5 months ago (2015-07-06 12:56:09 UTC) #19
commit-bot: I haz the power
5 years, 5 months ago (2015-07-06 12:56:38 UTC) #20
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/069a47f6e5ed00d0f63fc845b62ad325f13b2c37
Cr-Commit-Position: refs/heads/master@{#29493}

Powered by Google App Engine