OLD | NEW |
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 1569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1580 } | 1580 } |
1581 | 1581 |
1582 // Grab the context from the {function}. | 1582 // Grab the context from the {function}. |
1583 Node* context = | 1583 Node* context = |
1584 jsgraph()->Constant(handle(function->context(), isolate())); | 1584 jsgraph()->Constant(handle(function->context(), isolate())); |
1585 NodeProperties::ReplaceContextInput(node, context); | 1585 NodeProperties::ReplaceContextInput(node, context); |
1586 CallDescriptor::Flags flags = CallDescriptor::kNeedsFrameState; | 1586 CallDescriptor::Flags flags = CallDescriptor::kNeedsFrameState; |
1587 if (p.AllowTailCalls()) { | 1587 if (p.AllowTailCalls()) { |
1588 flags |= CallDescriptor::kSupportsTailCalls; | 1588 flags |= CallDescriptor::kSupportsTailCalls; |
1589 } | 1589 } |
| 1590 NodeProperties::RemoveFrameStateInput(node, 1); |
1590 NodeProperties::ChangeOp(node, | 1591 NodeProperties::ChangeOp(node, |
1591 common()->Call(Linkage::GetJSCallDescriptor( | 1592 common()->Call(Linkage::GetJSCallDescriptor( |
1592 graph()->zone(), false, 1 + arity, flags))); | 1593 graph()->zone(), false, 1 + arity, flags))); |
1593 return Changed(node); | 1594 return Changed(node); |
1594 } | 1595 } |
1595 } | 1596 } |
1596 | 1597 |
1597 return NoChange(); | 1598 return NoChange(); |
1598 } | 1599 } |
1599 | 1600 |
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2095 } | 2096 } |
2096 | 2097 |
2097 | 2098 |
2098 MachineOperatorBuilder* JSTypedLowering::machine() const { | 2099 MachineOperatorBuilder* JSTypedLowering::machine() const { |
2099 return jsgraph()->machine(); | 2100 return jsgraph()->machine(); |
2100 } | 2101 } |
2101 | 2102 |
2102 } // namespace compiler | 2103 } // namespace compiler |
2103 } // namespace internal | 2104 } // namespace internal |
2104 } // namespace v8 | 2105 } // namespace v8 |
OLD | NEW |