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

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

Issue 1234383002: Remove obsolete %CallSuperWithSpread intrinsic. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_turbofan-super-4
Patch Set: Ported to all architectures. Created 5 years, 5 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 | « src/arm64/full-codegen-arm64.cc ('k') | src/full-codegen.h » ('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 2566 matching lines...) Expand 10 before | Expand all | Expand 10 after
2577 // Handle calls to runtime functions implemented in JavaScript separately as 2577 // Handle calls to runtime functions implemented in JavaScript separately as
2578 // the call follows JavaScript ABI and the callee is statically unknown. 2578 // the call follows JavaScript ABI and the callee is statically unknown.
2579 if (expr->is_jsruntime()) { 2579 if (expr->is_jsruntime()) {
2580 DCHECK(function == NULL && expr->name()->length() > 0); 2580 DCHECK(function == NULL && expr->name()->length() > 0);
2581 return VisitCallJSRuntime(expr); 2581 return VisitCallJSRuntime(expr);
2582 } 2582 }
2583 2583
2584 // TODO(mstarzinger): This bailout is a gigantic hack, the owner is ashamed. 2584 // TODO(mstarzinger): This bailout is a gigantic hack, the owner is ashamed.
2585 if (function->function_id == Runtime::kInlineGeneratorNext || 2585 if (function->function_id == Runtime::kInlineGeneratorNext ||
2586 function->function_id == Runtime::kInlineGeneratorThrow || 2586 function->function_id == Runtime::kInlineGeneratorThrow ||
2587 function->function_id == Runtime::kInlineDefaultConstructorCallSuper || 2587 function->function_id == Runtime::kInlineDefaultConstructorCallSuper) {
2588 function->function_id == Runtime::kInlineCallSuperWithSpread) {
2589 ast_context()->ProduceValue(jsgraph()->TheHoleConstant()); 2588 ast_context()->ProduceValue(jsgraph()->TheHoleConstant());
2590 return SetStackOverflow(); 2589 return SetStackOverflow();
2591 } 2590 }
2592 2591
2593 // Evaluate all arguments to the runtime call. 2592 // Evaluate all arguments to the runtime call.
2594 ZoneList<Expression*>* args = expr->arguments(); 2593 ZoneList<Expression*>* args = expr->arguments();
2595 VisitForValues(args); 2594 VisitForValues(args);
2596 2595
2597 // Create node to perform the runtime call. 2596 // Create node to perform the runtime call.
2598 Runtime::FunctionId functionId = function->function_id; 2597 Runtime::FunctionId functionId = function->function_id;
(...skipping 1715 matching lines...) Expand 10 before | Expand all | Expand 10 after
4314 // Phi does not exist yet, introduce one. 4313 // Phi does not exist yet, introduce one.
4315 value = NewPhi(inputs, value, control); 4314 value = NewPhi(inputs, value, control);
4316 value->ReplaceInput(inputs - 1, other); 4315 value->ReplaceInput(inputs - 1, other);
4317 } 4316 }
4318 return value; 4317 return value;
4319 } 4318 }
4320 4319
4321 } // namespace compiler 4320 } // namespace compiler
4322 } // namespace internal 4321 } // namespace internal
4323 } // namespace v8 4322 } // namespace v8
OLDNEW
« no previous file with comments | « src/arm64/full-codegen-arm64.cc ('k') | src/full-codegen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698