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

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

Issue 1407953004: [turbofan] Use ReturnId for lazy bailout of JSCallFunction. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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 | no next file » | 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 2448 matching lines...) Expand 10 before | Expand all | Expand 10 after
2459 2459
2460 // Patch callee on the environment. 2460 // Patch callee on the environment.
2461 environment()->Poke(arg_count + 1, new_callee); 2461 environment()->Poke(arg_count + 1, new_callee);
2462 } 2462 }
2463 2463
2464 // Create node to perform the function call. 2464 // Create node to perform the function call.
2465 VectorSlotPair feedback = CreateVectorSlotPair(expr->CallFeedbackICSlot()); 2465 VectorSlotPair feedback = CreateVectorSlotPair(expr->CallFeedbackICSlot());
2466 const Operator* call = javascript()->CallFunction(args->length() + 2, flags, 2466 const Operator* call = javascript()->CallFunction(args->length() + 2, flags,
2467 language_mode(), feedback); 2467 language_mode(), feedback);
2468 Node* value = ProcessArguments(call, args->length() + 2); 2468 Node* value = ProcessArguments(call, args->length() + 2);
2469 PrepareFrameState(value, expr->id(), ast_context()->GetStateCombine()); 2469 environment()->Push(callee_value);
2470 PrepareFrameState(value, expr->ReturnId(), OutputFrameStateCombine::Push());
2471 environment()->Drop(1);
2470 ast_context()->ProduceValue(value); 2472 ast_context()->ProduceValue(value);
2471 } 2473 }
2472 2474
2473 2475
2474 void AstGraphBuilder::VisitCallSuper(Call* expr) { 2476 void AstGraphBuilder::VisitCallSuper(Call* expr) {
2475 SuperCallReference* super = expr->expression()->AsSuperCallReference(); 2477 SuperCallReference* super = expr->expression()->AsSuperCallReference();
2476 DCHECK_NOT_NULL(super); 2478 DCHECK_NOT_NULL(super);
2477 2479
2478 // Prepare the callee to the super call. The super constructor is stored as 2480 // Prepare the callee to the super call. The super constructor is stored as
2479 // the prototype of the constructor we are currently executing. 2481 // the prototype of the constructor we are currently executing.
(...skipping 1805 matching lines...) Expand 10 before | Expand all | Expand 10 after
4285 // Phi does not exist yet, introduce one. 4287 // Phi does not exist yet, introduce one.
4286 value = NewPhi(inputs, value, control); 4288 value = NewPhi(inputs, value, control);
4287 value->ReplaceInput(inputs - 1, other); 4289 value->ReplaceInput(inputs - 1, other);
4288 } 4290 }
4289 return value; 4291 return value;
4290 } 4292 }
4291 4293
4292 } // namespace compiler 4294 } // namespace compiler
4293 } // namespace internal 4295 } // namespace internal
4294 } // namespace v8 4296 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698