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

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

Issue 2330883002: [turbofan] Call frequencies for JSCallFunction and JSCallConstruct. (Closed)
Patch Set: Rebase onto the correct CL. Created 4 years, 3 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/compiler/js-operator.cc ('k') | no next file » | 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/js-typed-lowering.h" 5 #include "src/compiler/js-typed-lowering.h"
6 6
7 #include "src/builtins/builtins-utils.h" 7 #include "src/builtins/builtins-utils.h"
8 #include "src/code-factory.h" 8 #include "src/code-factory.h"
9 #include "src/compilation-dependencies.h" 9 #include "src/compilation-dependencies.h"
10 #include "src/compiler/access-builder.h" 10 #include "src/compiler/access-builder.h"
(...skipping 1736 matching lines...) Expand 10 before | Expand all | Expand 10 after
1747 NodeProperties::ChangeOp( 1747 NodeProperties::ChangeOp(
1748 node, common()->Call(Linkage::GetStubCallDescriptor( 1748 node, common()->Call(Linkage::GetStubCallDescriptor(
1749 isolate(), graph()->zone(), callable.descriptor(), 1 + arity, 1749 isolate(), graph()->zone(), callable.descriptor(), 1 + arity,
1750 flags))); 1750 flags)));
1751 return Changed(node); 1751 return Changed(node);
1752 } 1752 }
1753 1753
1754 // Maybe we did at least learn something about the {receiver}. 1754 // Maybe we did at least learn something about the {receiver}.
1755 if (p.convert_mode() != convert_mode) { 1755 if (p.convert_mode() != convert_mode) {
1756 NodeProperties::ChangeOp( 1756 NodeProperties::ChangeOp(
1757 node, javascript()->CallFunction(p.arity(), p.feedback(), convert_mode, 1757 node, javascript()->CallFunction(p.arity(), p.frequency(), p.feedback(),
1758 p.tail_call_mode())); 1758 convert_mode, p.tail_call_mode()));
1759 return Changed(node); 1759 return Changed(node);
1760 } 1760 }
1761 1761
1762 return NoChange(); 1762 return NoChange();
1763 } 1763 }
1764 1764
1765 1765
1766 Reduction JSTypedLowering::ReduceJSForInNext(Node* node) { 1766 Reduction JSTypedLowering::ReduceJSForInNext(Node* node) {
1767 DCHECK_EQ(IrOpcode::kJSForInNext, node->opcode()); 1767 DCHECK_EQ(IrOpcode::kJSForInNext, node->opcode());
1768 Node* receiver = NodeProperties::GetValueInput(node, 0); 1768 Node* receiver = NodeProperties::GetValueInput(node, 0);
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
2006 } 2006 }
2007 2007
2008 2008
2009 CompilationDependencies* JSTypedLowering::dependencies() const { 2009 CompilationDependencies* JSTypedLowering::dependencies() const {
2010 return dependencies_; 2010 return dependencies_;
2011 } 2011 }
2012 2012
2013 } // namespace compiler 2013 } // namespace compiler
2014 } // namespace internal 2014 } // namespace internal
2015 } // namespace v8 2015 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-operator.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698