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

Issue 1220823004: [turbofan]: Add a context relaxation Reducer (Closed)

Created:
5 years, 5 months ago by danno
Modified:
5 years, 5 months ago
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]: Add a context relaxation Reducer Ensures that operations that only need to access the native context use the outer-most context rather than the specific context given by the AST graph builder. This makes it possible to use the operations with context specialization (e.g. for generating stubs) without forcing inner contexts to be embedded in generated code thus causing leaks. R=mstarzinger@chromium.org

Patch Set 1 #

Total comments: 8

Patch Set 2 : Review feedback #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+113 lines, -2 lines) Patch
M BUILD.gn View 1 1 chunk +2 lines, -0 lines 0 comments Download
M src/compiler/ast-graph-builder.h View 2 chunks +6 lines, -0 lines 1 comment Download
M src/compiler/ast-graph-builder.cc View 2 chunks +4 lines, -2 lines 0 comments Download
A src/compiler/js-context-relaxation.h View 1 1 chunk +40 lines, -0 lines 0 comments Download
A src/compiler/js-context-relaxation.cc View 1 1 chunk +45 lines, -0 lines 0 comments Download
M src/compiler/pipeline.cc View 1 9 chunks +14 lines, -0 lines 0 comments Download
M tools/gyp/v8.gyp View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (1 generated)
danno
I should add tests, but it's unclear if they will be anything other than a ...
5 years, 5 months ago (2015-07-01 09:11:49 UTC) #1
Michael Starzinger
LGTM. https://codereview.chromium.org/1220823004/diff/1/src/compiler/context-relaxation.cc File src/compiler/context-relaxation.cc (right): https://codereview.chromium.org/1220823004/diff/1/src/compiler/context-relaxation.cc#newcode14 src/compiler/context-relaxation.cc:14: Reduction ContextRelaxation::Reduce(Node* node) { I think it would ...
5 years, 5 months ago (2015-07-02 10:29:27 UTC) #2
titzer
On 2015/07/01 09:11:49, danno wrote: > I should add tests, but it's unclear if they ...
5 years, 5 months ago (2015-07-02 14:48:58 UTC) #3
titzer
5 years, 5 months ago (2015-07-02 14:52:07 UTC) #5
https://codereview.chromium.org/1220823004/diff/20001/src/compiler/ast-graph-...
File src/compiler/ast-graph-builder.h (right):

https://codereview.chromium.org/1220823004/diff/20001/src/compiler/ast-graph-...
src/compiler/ast-graph-builder.h:55: Node* relaxed_context() const { return
relaxed_context_; }
Can we just call this the outer_context_param() ?

Powered by Google App Engine
This is Rietveld 408576698