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

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

Issue 1309813007: [es6] implement destructuring assignment (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase*** oops Created 5 years 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/bootstrapper.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 3050 matching lines...) Expand 10 before | Expand all | Expand 10 after
3061 return info()->language_mode(); 3061 return info()->language_mode();
3062 } 3062 }
3063 3063
3064 3064
3065 VectorSlotPair AstGraphBuilder::CreateVectorSlotPair( 3065 VectorSlotPair AstGraphBuilder::CreateVectorSlotPair(
3066 FeedbackVectorSlot slot) const { 3066 FeedbackVectorSlot slot) const {
3067 return VectorSlotPair(handle(info()->shared_info()->feedback_vector()), slot); 3067 return VectorSlotPair(handle(info()->shared_info()->feedback_vector()), slot);
3068 } 3068 }
3069 3069
3070 3070
3071 void AstGraphBuilder::VisitRewritableAssignmentExpression(
3072 RewritableAssignmentExpression* node) {
3073 Visit(node->expression());
3074 }
3075
3076
3071 namespace { 3077 namespace {
3072 3078
3073 // Limit of context chain length to which inline check is possible. 3079 // Limit of context chain length to which inline check is possible.
3074 const int kMaxCheckDepth = 30; 3080 const int kMaxCheckDepth = 30;
3075 3081
3076 // Sentinel for {TryLoadDynamicVariable} disabling inline checks. 3082 // Sentinel for {TryLoadDynamicVariable} disabling inline checks.
3077 const uint32_t kFullCheckRequired = -1; 3083 const uint32_t kFullCheckRequired = -1;
3078 3084
3079 } // namespace 3085 } // namespace
3080 3086
(...skipping 1244 matching lines...) Expand 10 before | Expand all | Expand 10 after
4325 // Phi does not exist yet, introduce one. 4331 // Phi does not exist yet, introduce one.
4326 value = NewPhi(inputs, value, control); 4332 value = NewPhi(inputs, value, control);
4327 value->ReplaceInput(inputs - 1, other); 4333 value->ReplaceInput(inputs - 1, other);
4328 } 4334 }
4329 return value; 4335 return value;
4330 } 4336 }
4331 4337
4332 } // namespace compiler 4338 } // namespace compiler
4333 } // namespace internal 4339 } // namespace internal
4334 } // namespace v8 4340 } // namespace v8
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | src/compiler/ast-loop-assignment-analyzer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698