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

Side by Side Diff: src/compiler/ast-graph-builder.cc

Issue 1712203002: Revert of Non-pattern rewriting revisited (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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 unified diff | Download patch
« no previous file with comments | « src/ast/prettyprinter.cc ('k') | src/compiler/ast-loop-assignment-analyzer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/compiler/ast-graph-builder.h" 5 #include "src/compiler/ast-graph-builder.h"
6 6
7 #include "src/ast/scopes.h" 7 #include "src/ast/scopes.h"
8 #include "src/compiler.h" 8 #include "src/compiler.h"
9 #include "src/compiler/ast-loop-assignment-analyzer.h" 9 #include "src/compiler/ast-loop-assignment-analyzer.h"
10 #include "src/compiler/control-builders.h" 10 #include "src/compiler/control-builders.h"
(...skipping 3044 matching lines...) Expand 10 before | Expand all | Expand 10 after
3055 return info()->language_mode(); 3055 return info()->language_mode();
3056 } 3056 }
3057 3057
3058 3058
3059 VectorSlotPair AstGraphBuilder::CreateVectorSlotPair( 3059 VectorSlotPair AstGraphBuilder::CreateVectorSlotPair(
3060 FeedbackVectorSlot slot) const { 3060 FeedbackVectorSlot slot) const {
3061 return VectorSlotPair(handle(info()->shared_info()->feedback_vector()), slot); 3061 return VectorSlotPair(handle(info()->shared_info()->feedback_vector()), slot);
3062 } 3062 }
3063 3063
3064 3064
3065 void AstGraphBuilder::VisitRewritableExpression(RewritableExpression* node) { 3065 void AstGraphBuilder::VisitRewritableAssignmentExpression(
3066 RewritableAssignmentExpression* node) {
3066 Visit(node->expression()); 3067 Visit(node->expression());
3067 } 3068 }
3068 3069
3069 3070
3070 namespace { 3071 namespace {
3071 3072
3072 // Limit of context chain length to which inline check is possible. 3073 // Limit of context chain length to which inline check is possible.
3073 const int kMaxCheckDepth = 30; 3074 const int kMaxCheckDepth = 30;
3074 3075
3075 // Sentinel for {TryLoadDynamicVariable} disabling inline checks. 3076 // Sentinel for {TryLoadDynamicVariable} disabling inline checks.
(...skipping 1267 matching lines...) Expand 10 before | Expand all | Expand 10 after
4343 // Phi does not exist yet, introduce one. 4344 // Phi does not exist yet, introduce one.
4344 value = NewPhi(inputs, value, control); 4345 value = NewPhi(inputs, value, control);
4345 value->ReplaceInput(inputs - 1, other); 4346 value->ReplaceInput(inputs - 1, other);
4346 } 4347 }
4347 return value; 4348 return value;
4348 } 4349 }
4349 4350
4350 } // namespace compiler 4351 } // namespace compiler
4351 } // namespace internal 4352 } // namespace internal
4352 } // namespace v8 4353 } // namespace v8
OLDNEW
« no previous file with comments | « src/ast/prettyprinter.cc ('k') | src/compiler/ast-loop-assignment-analyzer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698