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

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

Issue 841443004: [turbofan] Allow deoptimization for JSToNumber operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 5 years, 11 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/node-properties.h ('k') | src/compiler/operator-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_INL_H_ 5 #ifndef V8_COMPILER_NODE_PROPERTIES_INL_H_
6 #define V8_COMPILER_NODE_PROPERTIES_INL_H_ 6 #define V8_COMPILER_NODE_PROPERTIES_INL_H_
7 7
8 #include "src/v8.h" 8 #include "src/v8.h"
9 9
10 #include "src/compiler/common-operator.h" 10 #include "src/compiler/common-operator.h"
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 // Miscellaneous predicates. 137 // Miscellaneous predicates.
138 138
139 inline bool NodeProperties::IsControl(Node* node) { 139 inline bool NodeProperties::IsControl(Node* node) {
140 return IrOpcode::IsControlOpcode(node->opcode()); 140 return IrOpcode::IsControlOpcode(node->opcode());
141 } 141 }
142 142
143 143
144 // ----------------------------------------------------------------------------- 144 // -----------------------------------------------------------------------------
145 // Miscellaneous mutators. 145 // Miscellaneous mutators.
146 146
147 inline void NodeProperties::ReplaceContextInput(Node* node, Node* context) {
148 node->ReplaceInput(FirstContextIndex(node), context);
149 }
150
147 inline void NodeProperties::ReplaceControlInput(Node* node, Node* control) { 151 inline void NodeProperties::ReplaceControlInput(Node* node, Node* control) {
148 node->ReplaceInput(FirstControlIndex(node), control); 152 node->ReplaceInput(FirstControlIndex(node), control);
149 } 153 }
150 154
151 inline void NodeProperties::ReplaceEffectInput(Node* node, Node* effect, 155 inline void NodeProperties::ReplaceEffectInput(Node* node, Node* effect,
152 int index) { 156 int index) {
153 DCHECK(index < node->op()->EffectInputCount()); 157 DCHECK(index < node->op()->EffectInputCount());
154 return node->ReplaceInput(FirstEffectIndex(node) + index, effect); 158 return node->ReplaceInput(FirstEffectIndex(node) + index, effect);
155 } 159 }
156 160
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 } 221 }
218 return true; 222 return true;
219 } 223 }
220 224
221 225
222 } 226 }
223 } 227 }
224 } // namespace v8::internal::compiler 228 } // namespace v8::internal::compiler
225 229
226 #endif // V8_COMPILER_NODE_PROPERTIES_INL_H_ 230 #endif // V8_COMPILER_NODE_PROPERTIES_INL_H_
OLDNEW
« no previous file with comments | « src/compiler/node-properties.h ('k') | src/compiler/operator-properties.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698