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

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

Issue 938443002: [es6] implement spread calls (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add more variations to evaluation order tests Created 5 years, 9 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
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/compiler.h" 7 #include "src/compiler.h"
8 #include "src/compiler/ast-loop-assignment-analyzer.h" 8 #include "src/compiler/ast-loop-assignment-analyzer.h"
9 #include "src/compiler/control-builders.h" 9 #include "src/compiler/control-builders.h"
10 #include "src/compiler/linkage.h" 10 #include "src/compiler/linkage.h"
(...skipping 2244 matching lines...) Expand 10 before | Expand all | Expand 10 after
2255 VisitForValue(expr->left()); 2255 VisitForValue(expr->left());
2256 VisitForValue(expr->right()); 2256 VisitForValue(expr->right());
2257 Node* right = environment()->Pop(); 2257 Node* right = environment()->Pop();
2258 Node* left = environment()->Pop(); 2258 Node* left = environment()->Pop();
2259 Node* value = NewNode(op, left, right); 2259 Node* value = NewNode(op, left, right);
2260 PrepareFrameState(value, expr->id(), ast_context()->GetStateCombine()); 2260 PrepareFrameState(value, expr->id(), ast_context()->GetStateCombine());
2261 ast_context()->ProduceValue(value); 2261 ast_context()->ProduceValue(value);
2262 } 2262 }
2263 2263
2264 2264
2265 void AstGraphBuilder::VisitSpreadOperation(SpreadOperation* expr) {
2266 Visit(expr->expression());
2267 }
2268
2269
2265 void AstGraphBuilder::VisitThisFunction(ThisFunction* expr) { 2270 void AstGraphBuilder::VisitThisFunction(ThisFunction* expr) {
2266 Node* value = GetFunctionClosure(); 2271 Node* value = GetFunctionClosure();
2267 ast_context()->ProduceValue(value); 2272 ast_context()->ProduceValue(value);
2268 } 2273 }
2269 2274
2270 2275
2271 void AstGraphBuilder::VisitSuperReference(SuperReference* expr) { 2276 void AstGraphBuilder::VisitSuperReference(SuperReference* expr) {
2272 // TODO(turbofan): Implement super here. 2277 // TODO(turbofan): Implement super here.
2273 SetStackOverflow(); 2278 SetStackOverflow();
2274 ast_context()->ProduceValue(jsgraph()->UndefinedConstant()); 2279 ast_context()->ProduceValue(jsgraph()->UndefinedConstant());
(...skipping 958 matching lines...) Expand 10 before | Expand all | Expand 10 after
3233 // Phi does not exist yet, introduce one. 3238 // Phi does not exist yet, introduce one.
3234 value = NewPhi(inputs, value, control); 3239 value = NewPhi(inputs, value, control);
3235 value->ReplaceInput(inputs - 1, other); 3240 value->ReplaceInput(inputs - 1, other);
3236 } 3241 }
3237 return value; 3242 return value;
3238 } 3243 }
3239 3244
3240 } // namespace compiler 3245 } // namespace compiler
3241 } // namespace internal 3246 } // namespace internal
3242 } // namespace v8 3247 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698