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

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: Add explicit placeholder RewritableExpression for rewriting 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
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 3039 matching lines...) Expand 10 before | Expand all | Expand 10 after
3050 return info()->language_mode(); 3050 return info()->language_mode();
3051 } 3051 }
3052 3052
3053 3053
3054 VectorSlotPair AstGraphBuilder::CreateVectorSlotPair( 3054 VectorSlotPair AstGraphBuilder::CreateVectorSlotPair(
3055 FeedbackVectorSlot slot) const { 3055 FeedbackVectorSlot slot) const {
3056 return VectorSlotPair(handle(info()->shared_info()->feedback_vector()), slot); 3056 return VectorSlotPair(handle(info()->shared_info()->feedback_vector()), slot);
3057 } 3057 }
3058 3058
3059 3059
3060 void AstGraphBuilder::VisitRewritableExpression(RewritableExpression* node) {
3061 Visit(node->expression());
3062 }
3063
3064
3060 namespace { 3065 namespace {
3061 3066
3062 // Limit of context chain length to which inline check is possible. 3067 // Limit of context chain length to which inline check is possible.
3063 const int kMaxCheckDepth = 30; 3068 const int kMaxCheckDepth = 30;
3064 3069
3065 // Sentinel for {TryLoadDynamicVariable} disabling inline checks. 3070 // Sentinel for {TryLoadDynamicVariable} disabling inline checks.
3066 const uint32_t kFullCheckRequired = -1; 3071 const uint32_t kFullCheckRequired = -1;
3067 3072
3068 } // namespace 3073 } // namespace
3069 3074
(...skipping 1234 matching lines...) Expand 10 before | Expand all | Expand 10 after
4304 // Phi does not exist yet, introduce one. 4309 // Phi does not exist yet, introduce one.
4305 value = NewPhi(inputs, value, control); 4310 value = NewPhi(inputs, value, control);
4306 value->ReplaceInput(inputs - 1, other); 4311 value->ReplaceInput(inputs - 1, other);
4307 } 4312 }
4308 return value; 4313 return value;
4309 } 4314 }
4310 4315
4311 } // namespace compiler 4316 } // namespace compiler
4312 } // namespace internal 4317 } // namespace internal
4313 } // namespace v8 4318 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698