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

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

Issue 928213003: Model exceptional edges from call nodes in TurboFan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased. Created 5 years, 10 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-typed-lowering.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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 // --------------------------------------------------------------------------- 74 // ---------------------------------------------------------------------------
75 // Miscellaneous mutators. 75 // Miscellaneous mutators.
76 76
77 static void ReplaceContextInput(Node* node, Node* context); 77 static void ReplaceContextInput(Node* node, Node* context);
78 static void ReplaceControlInput(Node* node, Node* control); 78 static void ReplaceControlInput(Node* node, Node* control);
79 static void ReplaceEffectInput(Node* node, Node* effect, int index = 0); 79 static void ReplaceEffectInput(Node* node, Node* effect, int index = 0);
80 static void ReplaceFrameStateInput(Node* node, Node* frame_state); 80 static void ReplaceFrameStateInput(Node* node, Node* frame_state);
81 static void RemoveNonValueInputs(Node* node); 81 static void RemoveNonValueInputs(Node* node);
82 82
83 // Replace value uses of {node} with {value} and effect uses of {node} with 83 // Replace value uses of {node} with {value} and effect uses of {node} with
84 // {effect}. If {effect == NULL}, then use the effect input to {node}. 84 // {effect}. If {effect == NULL}, then use the effect input to {node}. All
85 // control uses will be relaxed assuming {node} cannot throw.
85 static void ReplaceWithValue(Node* node, Node* value, Node* effect = nullptr); 86 static void ReplaceWithValue(Node* node, Node* value, Node* effect = nullptr);
86 87
87 88
88 // --------------------------------------------------------------------------- 89 // ---------------------------------------------------------------------------
89 // Miscellaneous utilities. 90 // Miscellaneous utilities.
90 91
91 static Node* FindProjection(Node* node, size_t projection_index); 92 static Node* FindProjection(Node* node, size_t projection_index);
92 93
93 // Collect the branch-related projections from a node, such as IfTrue, 94 // Collect the branch-related projections from a node, such as IfTrue,
94 // IfFalse, IfValue and IfDefault. 95 // IfFalse, IfSuccess, IfException, IfValue and IfDefault.
95 // - Branch: [ IfTrue, IfFalse ] 96 // - Branch: [ IfTrue, IfFalse ]
97 // - Call : [ IfSuccess, IfException ]
96 // - Switch: [ IfValue, ..., IfDefault ] 98 // - Switch: [ IfValue, ..., IfDefault ]
97 static void CollectControlProjections(Node* node, Node** proj, size_t count); 99 static void CollectControlProjections(Node* node, Node** proj, size_t count);
98 100
99 101
100 // --------------------------------------------------------------------------- 102 // ---------------------------------------------------------------------------
101 // Type Bounds. 103 // Type Bounds.
102 104
103 static bool IsTyped(Node* node) { 105 static bool IsTyped(Node* node) {
104 Bounds const bounds = node->bounds(); 106 Bounds const bounds = node->bounds();
105 DCHECK(!bounds.lower == !bounds.upper); 107 DCHECK(!bounds.lower == !bounds.upper);
(...skipping 13 matching lines...) Expand all
119 121
120 private: 122 private:
121 static inline bool IsInputRange(Edge edge, int first, int count); 123 static inline bool IsInputRange(Edge edge, int first, int count);
122 }; 124 };
123 125
124 } // namespace compiler 126 } // namespace compiler
125 } // namespace internal 127 } // namespace internal
126 } // namespace v8 128 } // namespace v8
127 129
128 #endif // V8_COMPILER_NODE_PROPERTIES_H_ 130 #endif // V8_COMPILER_NODE_PROPERTIES_H_
OLDNEW
« no previous file with comments | « src/compiler/js-typed-lowering.cc ('k') | src/compiler/node-properties.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698