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

Unified Diff: src/compiler/ast-graph-builder.cc

Issue 1220823004: [turbofan]: Add a context relaxation Reducer (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Review feedback Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/compiler/ast-graph-builder.cc
diff --git a/src/compiler/ast-graph-builder.cc b/src/compiler/ast-graph-builder.cc
index 0abc9918df6595454e83f095732f71049ddc4088..1c8456d11e961e6091f14040c9011c5dcc94fbdb 100644
--- a/src/compiler/ast-graph-builder.cc
+++ b/src/compiler/ast-graph-builder.cc
@@ -452,7 +452,8 @@ AstGraphBuilder::AstGraphBuilder(Zone* local_zone, CompilationInfo* info,
FrameStateType::kJavaScriptFunction,
info->num_parameters_including_this(),
info->scope()->num_stack_slots(), info->shared_info())),
- js_type_feedback_(js_type_feedback) {
+ js_type_feedback_(js_type_feedback),
+ relaxed_context_(nullptr) {
InitializeAstVisitor(info->isolate(), local_zone);
}
@@ -484,9 +485,10 @@ Node* AstGraphBuilder::GetFunctionClosure() {
void AstGraphBuilder::CreateFunctionContext(bool constant_context) {
+ relaxed_context_ = NewOuterContextParam();
function_context_.set(constant_context
? jsgraph()->HeapConstant(info()->context())
- : NewOuterContextParam());
+ : relaxed_context_);
}

Powered by Google App Engine
This is Rietveld 408576698