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

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

Issue 1240993002: [turbofan] Support handling of default super calls. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Always install internal functions. 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/bootstrapper.cc ('k') | src/compiler/linkage.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 2565 matching lines...) Expand 10 before | Expand all | Expand 10 after
2576 2576
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) {
2588 ast_context()->ProduceValue(jsgraph()->TheHoleConstant()); 2587 ast_context()->ProduceValue(jsgraph()->TheHoleConstant());
2589 return SetStackOverflow(); 2588 return SetStackOverflow();
2590 } 2589 }
2591 2590
2592 // Evaluate all arguments to the runtime call. 2591 // Evaluate all arguments to the runtime call.
2593 ZoneList<Expression*>* args = expr->arguments(); 2592 ZoneList<Expression*>* args = expr->arguments();
2594 VisitForValues(args); 2593 VisitForValues(args);
2595 2594
2596 // Create node to perform the runtime call. 2595 // Create node to perform the runtime call.
2597 Runtime::FunctionId functionId = function->function_id; 2596 Runtime::FunctionId functionId = function->function_id;
(...skipping 1715 matching lines...) Expand 10 before | Expand all | Expand 10 after
4313 // Phi does not exist yet, introduce one. 4312 // Phi does not exist yet, introduce one.
4314 value = NewPhi(inputs, value, control); 4313 value = NewPhi(inputs, value, control);
4315 value->ReplaceInput(inputs - 1, other); 4314 value->ReplaceInput(inputs - 1, other);
4316 } 4315 }
4317 return value; 4316 return value;
4318 } 4317 }
4319 4318
4320 } // namespace compiler 4319 } // namespace compiler
4321 } // namespace internal 4320 } // namespace internal
4322 } // namespace v8 4321 } // namespace v8
OLDNEW
« no previous file with comments | « src/bootstrapper.cc ('k') | src/compiler/linkage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698