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

Side by Side Diff: src/compiler/node-properties.h

Issue 1108563002: Detect simple tail calls (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixed index type Created 5 years, 7 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/mips64/instruction-selector-mips64.cc ('k') | src/compiler/node-properties.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 #ifndef V8_COMPILER_NODE_PROPERTIES_H_ 5 #ifndef V8_COMPILER_NODE_PROPERTIES_H_
6 #define V8_COMPILER_NODE_PROPERTIES_H_ 6 #define V8_COMPILER_NODE_PROPERTIES_H_
7 7
8 #include "src/compiler/node.h" 8 #include "src/compiler/node.h"
9 #include "src/types.h" 9 #include "src/types.h"
10 10
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 static bool IsControl(Node* node) { 65 static bool IsControl(Node* node) {
66 return IrOpcode::IsControlOpcode(node->opcode()); 66 return IrOpcode::IsControlOpcode(node->opcode());
67 } 67 }
68 static bool IsConstant(Node* node) { 68 static bool IsConstant(Node* node) {
69 return IrOpcode::IsConstantOpcode(node->opcode()); 69 return IrOpcode::IsConstantOpcode(node->opcode());
70 } 70 }
71 static bool IsPhi(Node* node) { 71 static bool IsPhi(Node* node) {
72 return IrOpcode::IsPhiOpcode(node->opcode()); 72 return IrOpcode::IsPhiOpcode(node->opcode());
73 } 73 }
74 74
75 static bool IsExceptionalCall(Node* node);
75 76
76 // --------------------------------------------------------------------------- 77 // ---------------------------------------------------------------------------
77 // Miscellaneous mutators. 78 // Miscellaneous mutators.
78 79
79 static void ReplaceContextInput(Node* node, Node* context); 80 static void ReplaceContextInput(Node* node, Node* context);
80 static void ReplaceControlInput(Node* node, Node* control); 81 static void ReplaceControlInput(Node* node, Node* control);
81 static void ReplaceEffectInput(Node* node, Node* effect, int index = 0); 82 static void ReplaceEffectInput(Node* node, Node* effect, int index = 0);
82 static void ReplaceFrameStateInput(Node* node, int index, Node* frame_state); 83 static void ReplaceFrameStateInput(Node* node, int index, Node* frame_state);
83 static void RemoveNonValueInputs(Node* node); 84 static void RemoveNonValueInputs(Node* node);
84 85
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 129
129 private: 130 private:
130 static inline bool IsInputRange(Edge edge, int first, int count); 131 static inline bool IsInputRange(Edge edge, int first, int count);
131 }; 132 };
132 133
133 } // namespace compiler 134 } // namespace compiler
134 } // namespace internal 135 } // namespace internal
135 } // namespace v8 136 } // namespace v8
136 137
137 #endif // V8_COMPILER_NODE_PROPERTIES_H_ 138 #endif // V8_COMPILER_NODE_PROPERTIES_H_
OLDNEW
« no previous file with comments | « src/compiler/mips64/instruction-selector-mips64.cc ('k') | src/compiler/node-properties.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698