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

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

Issue 1425883004: [turbofan] Fix missing bailout point before calls. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Update unittests. 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-inlining.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/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
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
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
OLDNEW
« no previous file with comments | « src/compiler/js-inlining.cc ('k') | src/compiler/linkage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698