OLD | NEW |
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-stubs.h" | 5 #include "src/code-stubs.h" |
6 #include "src/compiler/js-graph.h" | 6 #include "src/compiler/js-graph.h" |
7 #include "src/compiler/node-properties.h" | 7 #include "src/compiler/node-properties.h" |
8 #include "src/compiler/typer.h" | 8 #include "src/compiler/typer.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 *loc = graph()->NewNode(common()->ExternalConstant(reference)); | 197 *loc = graph()->NewNode(common()->ExternalConstant(reference)); |
198 } | 198 } |
199 return *loc; | 199 return *loc; |
200 } | 200 } |
201 | 201 |
202 | 202 |
203 Node* JSGraph::EmptyFrameState() { | 203 Node* JSGraph::EmptyFrameState() { |
204 if (!empty_frame_state_.is_set()) { | 204 if (!empty_frame_state_.is_set()) { |
205 Node* values = graph()->NewNode(common()->StateValues(0)); | 205 Node* values = graph()->NewNode(common()->StateValues(0)); |
206 Node* state_node = graph()->NewNode( | 206 Node* state_node = graph()->NewNode( |
207 common()->FrameState(JS_FRAME, BailoutId(0), | 207 common()->FrameState(JS_FRAME, BailoutId::None(), |
208 OutputFrameStateCombine::Ignore()), | 208 OutputFrameStateCombine::Ignore()), |
209 values, values, values, NoContextConstant(), UndefinedConstant()); | 209 values, values, values, NoContextConstant(), UndefinedConstant()); |
210 empty_frame_state_.set(state_node); | 210 empty_frame_state_.set(state_node); |
211 } | 211 } |
212 return empty_frame_state_.get(); | 212 return empty_frame_state_.get(); |
213 } | 213 } |
214 | 214 |
215 | 215 |
216 Node* JSGraph::DeadControl() { | 216 Node* JSGraph::DeadControl() { |
217 if (!dead_control_.is_set()) { | 217 if (!dead_control_.is_set()) { |
(...skipping 11 matching lines...) Expand all Loading... |
229 &true_constant_, &false_constant_, &null_constant_, | 229 &true_constant_, &false_constant_, &null_constant_, |
230 &zero_constant_, &one_constant_, &nan_constant_}; | 230 &zero_constant_, &one_constant_, &nan_constant_}; |
231 for (size_t i = 0; i < arraysize(ptrs); i++) { | 231 for (size_t i = 0; i < arraysize(ptrs); i++) { |
232 if (ptrs[i]->is_set()) nodes->push_back(ptrs[i]->get()); | 232 if (ptrs[i]->is_set()) nodes->push_back(ptrs[i]->get()); |
233 } | 233 } |
234 } | 234 } |
235 | 235 |
236 } // namespace compiler | 236 } // namespace compiler |
237 } // namespace internal | 237 } // namespace internal |
238 } // namespace v8 | 238 } // namespace v8 |
OLD | NEW |