| 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/compiler/js-inlining.h" | 5 #include "src/compiler/js-inlining.h" |
| 6 | 6 |
| 7 #include "src/ast/ast.h" | 7 #include "src/ast/ast.h" |
| 8 #include "src/compilation-info.h" | 8 #include "src/compilation-info.h" |
| 9 #include "src/compiler.h" | 9 #include "src/compiler.h" |
| 10 #include "src/compiler/all-nodes.h" | 10 #include "src/compiler/all-nodes.h" |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 effects.push_back(control_output); | 211 effects.push_back(control_output); |
| 212 Node* value_output = graph()->NewNode( | 212 Node* value_output = graph()->NewNode( |
| 213 common()->Phi(MachineRepresentation::kTagged, input_count), | 213 common()->Phi(MachineRepresentation::kTagged, input_count), |
| 214 static_cast<int>(values.size()), &values.front()); | 214 static_cast<int>(values.size()), &values.front()); |
| 215 Node* effect_output = | 215 Node* effect_output = |
| 216 graph()->NewNode(common()->EffectPhi(input_count), | 216 graph()->NewNode(common()->EffectPhi(input_count), |
| 217 static_cast<int>(effects.size()), &effects.front()); | 217 static_cast<int>(effects.size()), &effects.front()); |
| 218 ReplaceWithValue(call, value_output, effect_output, control_output); | 218 ReplaceWithValue(call, value_output, effect_output, control_output); |
| 219 return Changed(value_output); | 219 return Changed(value_output); |
| 220 } else { | 220 } else { |
| 221 ReplaceWithValue(call, call, call, jsgraph()->Dead()); | 221 ReplaceWithValue(call, jsgraph()->Dead(), jsgraph()->Dead(), |
| 222 jsgraph()->Dead()); |
| 222 return Changed(call); | 223 return Changed(call); |
| 223 } | 224 } |
| 224 } | 225 } |
| 225 | 226 |
| 226 Node* JSInliner::CreateArtificialFrameState(Node* node, Node* outer_frame_state, | 227 Node* JSInliner::CreateArtificialFrameState(Node* node, Node* outer_frame_state, |
| 227 int parameter_count, | 228 int parameter_count, |
| 228 BailoutId bailout_id, | 229 BailoutId bailout_id, |
| 229 FrameStateType frame_state_type, | 230 FrameStateType frame_state_type, |
| 230 Handle<SharedFunctionInfo> shared) { | 231 Handle<SharedFunctionInfo> shared) { |
| 231 const FrameStateFunctionInfo* state_info = | 232 const FrameStateFunctionInfo* state_info = |
| (...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 744 | 745 |
| 745 CommonOperatorBuilder* JSInliner::common() const { return jsgraph()->common(); } | 746 CommonOperatorBuilder* JSInliner::common() const { return jsgraph()->common(); } |
| 746 | 747 |
| 747 SimplifiedOperatorBuilder* JSInliner::simplified() const { | 748 SimplifiedOperatorBuilder* JSInliner::simplified() const { |
| 748 return jsgraph()->simplified(); | 749 return jsgraph()->simplified(); |
| 749 } | 750 } |
| 750 | 751 |
| 751 } // namespace compiler | 752 } // namespace compiler |
| 752 } // namespace internal | 753 } // namespace internal |
| 753 } // namespace v8 | 754 } // namespace v8 |
| OLD | NEW |