| 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/access-builder.h" | 5 #include "src/compiler/access-builder.h" | 
| 6 #include "src/compiler/ast-graph-builder.h" | 6 #include "src/compiler/ast-graph-builder.h" | 
| 7 #include "src/compiler/common-operator.h" | 7 #include "src/compiler/common-operator.h" | 
| 8 #include "src/compiler/generic-node-inl.h" | 8 #include "src/compiler/generic-node-inl.h" | 
| 9 #include "src/compiler/graph-inl.h" | 9 #include "src/compiler/graph-inl.h" | 
| 10 #include "src/compiler/graph-visualizer.h" | 10 #include "src/compiler/graph-visualizer.h" | 
| (...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 341   const Operator* op = jsgraph_->common()->FrameState( | 341   const Operator* op = jsgraph_->common()->FrameState( | 
| 342       FrameStateType::JS_FRAME, call_info.bailout_id(), | 342       FrameStateType::JS_FRAME, call_info.bailout_id(), | 
| 343       call_info.state_combine(), jsfunction); | 343       call_info.state_combine(), jsfunction); | 
| 344   frame_state->set_op(op); | 344   frame_state->set_op(op); | 
| 345 } | 345 } | 
| 346 | 346 | 
| 347 | 347 | 
| 348 Node* JSInliner::CreateArgumentsAdaptorFrameState(JSCallFunctionAccessor* call, | 348 Node* JSInliner::CreateArgumentsAdaptorFrameState(JSCallFunctionAccessor* call, | 
| 349                                                   Handle<JSFunction> jsfunction, | 349                                                   Handle<JSFunction> jsfunction, | 
| 350                                                   Zone* temp_zone) { | 350                                                   Zone* temp_zone) { | 
| 351   const Operator* op = | 351   const Operator* op = jsgraph_->common()->FrameState( | 
| 352       jsgraph_->common()->FrameState(FrameStateType::ARGUMENTS_ADAPTOR, | 352       FrameStateType::ARGUMENTS_ADAPTOR, BailoutId(-1), | 
| 353                                      BailoutId(-1), kIgnoreOutput, jsfunction); | 353       OutputFrameStateCombine::Ignore(), jsfunction); | 
| 354   const Operator* op0 = jsgraph_->common()->StateValues(0); | 354   const Operator* op0 = jsgraph_->common()->StateValues(0); | 
| 355   Node* node0 = jsgraph_->graph()->NewNode(op0); | 355   Node* node0 = jsgraph_->graph()->NewNode(op0); | 
| 356   NodeVector params(temp_zone); | 356   NodeVector params(temp_zone); | 
| 357   params.push_back(call->receiver()); | 357   params.push_back(call->receiver()); | 
| 358   for (size_t argument = 0; argument != call->formal_arguments(); ++argument) { | 358   for (size_t argument = 0; argument != call->formal_arguments(); ++argument) { | 
| 359     params.push_back(call->formal_argument(argument)); | 359     params.push_back(call->formal_argument(argument)); | 
| 360   } | 360   } | 
| 361   const Operator* op_param = | 361   const Operator* op_param = | 
| 362       jsgraph_->common()->StateValues(static_cast<int>(params.size())); | 362       jsgraph_->common()->StateValues(static_cast<int>(params.size())); | 
| 363   Node* params_node = jsgraph_->graph()->NewNode( | 363   Node* params_node = jsgraph_->graph()->NewNode( | 
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 437       AddClosureToFrameState(node, function); | 437       AddClosureToFrameState(node, function); | 
| 438       NodeProperties::ReplaceFrameStateInput(node, outer_frame_state); | 438       NodeProperties::ReplaceFrameStateInput(node, outer_frame_state); | 
| 439     } | 439     } | 
| 440   } | 440   } | 
| 441 | 441 | 
| 442   inlinee.InlineAtCall(jsgraph_, call_node); | 442   inlinee.InlineAtCall(jsgraph_, call_node); | 
| 443 } | 443 } | 
| 444 } | 444 } | 
| 445 } | 445 } | 
| 446 }  // namespace v8::internal::compiler | 446 }  // namespace v8::internal::compiler | 
| OLD | NEW | 
|---|