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

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

Issue 1172773003: [turbofan] Deprecate NodeProperties::ReplaceWithValue. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « no previous file | src/compiler/change-lowering.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/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/js-type-feedback.h" 10 #include "src/compiler/js-type-feedback.h"
(...skipping 2511 matching lines...) Expand 10 before | Expand all | Expand 10 after
2522 DCHECK(function == NULL && expr->name()->length() > 0); 2522 DCHECK(function == NULL && expr->name()->length() > 0);
2523 return VisitCallJSRuntime(expr); 2523 return VisitCallJSRuntime(expr);
2524 } 2524 }
2525 2525
2526 // Evaluate all arguments to the runtime call. 2526 // Evaluate all arguments to the runtime call.
2527 ZoneList<Expression*>* args = expr->arguments(); 2527 ZoneList<Expression*>* args = expr->arguments();
2528 VisitForValues(args); 2528 VisitForValues(args);
2529 2529
2530 // Create node to perform the runtime call. 2530 // Create node to perform the runtime call.
2531 Runtime::FunctionId functionId = function->function_id; 2531 Runtime::FunctionId functionId = function->function_id;
2532 // TODO(mstarzinger): This bailout is a gigantic hack, the owner is ashamed.
2533 if (functionId == Runtime::kInlineGeneratorNext) SetStackOverflow();
2534 if (functionId == Runtime::kInlineGeneratorThrow) SetStackOverflow();
2532 const Operator* call = javascript()->CallRuntime(functionId, args->length()); 2535 const Operator* call = javascript()->CallRuntime(functionId, args->length());
2533 Node* value = ProcessArguments(call, args->length()); 2536 Node* value = ProcessArguments(call, args->length());
2534 PrepareFrameState(value, expr->id(), ast_context()->GetStateCombine()); 2537 PrepareFrameState(value, expr->id(), ast_context()->GetStateCombine());
2535 ast_context()->ProduceValue(value); 2538 ast_context()->ProduceValue(value);
2536 } 2539 }
2537 2540
2538 2541
2539 void AstGraphBuilder::VisitUnaryOperation(UnaryOperation* expr) { 2542 void AstGraphBuilder::VisitUnaryOperation(UnaryOperation* expr) {
2540 switch (expr->op()) { 2543 switch (expr->op()) {
2541 case Token::DELETE: 2544 case Token::DELETE:
(...skipping 1530 matching lines...) Expand 10 before | Expand all | Expand 10 after
4072 // Phi does not exist yet, introduce one. 4075 // Phi does not exist yet, introduce one.
4073 value = NewPhi(inputs, value, control); 4076 value = NewPhi(inputs, value, control);
4074 value->ReplaceInput(inputs - 1, other); 4077 value->ReplaceInput(inputs - 1, other);
4075 } 4078 }
4076 return value; 4079 return value;
4077 } 4080 }
4078 4081
4079 } // namespace compiler 4082 } // namespace compiler
4080 } // namespace internal 4083 } // namespace internal
4081 } // namespace v8 4084 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/compiler/change-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698