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

Side by Side Diff: src/compiler/js-typed-lowering.cc

Issue 1410853007: [turbofan] Remove use of CallFunctionStub from TurboFan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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/compiler/js-operator.cc ('k') | test/unittests/compiler/js-builtin-reducer-unittest.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/code-factory.h" 5 #include "src/code-factory.h"
6 #include "src/compiler/access-builder.h" 6 #include "src/compiler/access-builder.h"
7 #include "src/compiler/js-graph.h" 7 #include "src/compiler/js-graph.h"
8 #include "src/compiler/js-typed-lowering.h" 8 #include "src/compiler/js-typed-lowering.h"
9 #include "src/compiler/linkage.h" 9 #include "src/compiler/linkage.h"
10 #include "src/compiler/node-matchers.h" 10 #include "src/compiler/node-matchers.h"
(...skipping 1595 matching lines...) Expand 10 before | Expand all | Expand 10 after
1606 receiver, context, frame_state, effect, control); 1606 receiver, context, frame_state, effect, control);
1607 NodeProperties::ReplaceEffectInput(node, effect); 1607 NodeProperties::ReplaceEffectInput(node, effect);
1608 NodeProperties::ReplaceValueInput(node, receiver, 1); 1608 NodeProperties::ReplaceValueInput(node, receiver, 1);
1609 } 1609 }
1610 1610
1611 // Remove the eager bailout frame state. 1611 // Remove the eager bailout frame state.
1612 NodeProperties::RemoveFrameStateInput(node, 1); 1612 NodeProperties::RemoveFrameStateInput(node, 1);
1613 1613
1614 // Compute flags for the call. 1614 // Compute flags for the call.
1615 CallDescriptor::Flags flags = CallDescriptor::kNeedsFrameState; 1615 CallDescriptor::Flags flags = CallDescriptor::kNeedsFrameState;
1616 if (p.AllowTailCalls()) flags |= CallDescriptor::kSupportsTailCalls; 1616 if (p.tail_call_mode() == TailCallMode::kAllow) {
1617 flags |= CallDescriptor::kSupportsTailCalls;
1618 }
1617 1619
1618 if (shared->internal_formal_parameter_count() == arity || 1620 if (shared->internal_formal_parameter_count() == arity ||
1619 shared->internal_formal_parameter_count() == 1621 shared->internal_formal_parameter_count() ==
1620 SharedFunctionInfo::kDontAdaptArgumentsSentinel) { 1622 SharedFunctionInfo::kDontAdaptArgumentsSentinel) {
1621 // Patch {node} to a direct call. 1623 // Patch {node} to a direct call.
1622 node->InsertInput(graph()->zone(), arity + 2, 1624 node->InsertInput(graph()->zone(), arity + 2,
1623 jsgraph()->Int32Constant(arity)); 1625 jsgraph()->Int32Constant(arity));
1624 NodeProperties::ChangeOp(node, 1626 NodeProperties::ChangeOp(node,
1625 common()->Call(Linkage::GetJSCallDescriptor( 1627 common()->Call(Linkage::GetJSCallDescriptor(
1626 graph()->zone(), false, 1 + arity, flags))); 1628 graph()->zone(), false, 1 + arity, flags)));
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after
2140 } 2142 }
2141 2143
2142 2144
2143 MachineOperatorBuilder* JSTypedLowering::machine() const { 2145 MachineOperatorBuilder* JSTypedLowering::machine() const {
2144 return jsgraph()->machine(); 2146 return jsgraph()->machine();
2145 } 2147 }
2146 2148
2147 } // namespace compiler 2149 } // namespace compiler
2148 } // namespace internal 2150 } // namespace internal
2149 } // namespace v8 2151 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-operator.cc ('k') | test/unittests/compiler/js-builtin-reducer-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698