| 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/common-operator.h" | 6 #include "src/compiler/common-operator.h" | 
| 7 #include "src/compiler/graph-inl.h" | 7 #include "src/compiler/graph-inl.h" | 
| 8 #include "src/compiler/js-generic-lowering.h" | 8 #include "src/compiler/js-generic-lowering.h" | 
| 9 #include "src/compiler/machine-operator.h" | 9 #include "src/compiler/machine-operator.h" | 
| 10 #include "src/compiler/node-aux-data-inl.h" | 10 #include "src/compiler/node-aux-data-inl.h" | 
| (...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 483   for (int i = 0; i < access.depth(); ++i) { | 483   for (int i = 0; i < access.depth(); ++i) { | 
| 484     node->ReplaceInput( | 484     node->ReplaceInput( | 
| 485         0, graph()->NewNode( | 485         0, graph()->NewNode( | 
| 486                machine()->Load(kMachAnyTagged), | 486                machine()->Load(kMachAnyTagged), | 
| 487                NodeProperties::GetValueInput(node, 0), | 487                NodeProperties::GetValueInput(node, 0), | 
| 488                Int32Constant(Context::SlotOffset(Context::PREVIOUS_INDEX)), | 488                Int32Constant(Context::SlotOffset(Context::PREVIOUS_INDEX)), | 
| 489                NodeProperties::GetEffectInput(node))); | 489                NodeProperties::GetEffectInput(node))); | 
| 490   } | 490   } | 
| 491   node->ReplaceInput(2, NodeProperties::GetValueInput(node, 1)); | 491   node->ReplaceInput(2, NodeProperties::GetValueInput(node, 1)); | 
| 492   node->ReplaceInput(1, Int32Constant(Context::SlotOffset(access.index()))); | 492   node->ReplaceInput(1, Int32Constant(Context::SlotOffset(access.index()))); | 
| 493   PatchOperator(node, machine()->Store(kMachAnyTagged, kFullWriteBarrier)); | 493   PatchOperator(node, machine()->Store(StoreRepresentation(kMachAnyTagged, | 
|  | 494                                                            kFullWriteBarrier))); | 
| 494   return node; | 495   return node; | 
| 495 } | 496 } | 
| 496 | 497 | 
| 497 | 498 | 
| 498 Node* JSGenericLowering::LowerJSCallConstruct(Node* node) { | 499 Node* JSGenericLowering::LowerJSCallConstruct(Node* node) { | 
| 499   int arity = OpParameter<int>(node); | 500   int arity = OpParameter<int>(node); | 
| 500   CallConstructStub stub(isolate(), NO_CALL_CONSTRUCTOR_FLAGS); | 501   CallConstructStub stub(isolate(), NO_CALL_CONSTRUCTOR_FLAGS); | 
| 501   CallInterfaceDescriptor d = stub.GetCallInterfaceDescriptor(); | 502   CallInterfaceDescriptor d = stub.GetCallInterfaceDescriptor(); | 
| 502   CallDescriptor* desc = | 503   CallDescriptor* desc = | 
| 503       linkage()->GetStubCallDescriptor(d, arity, FlagsForNode(node)); | 504       linkage()->GetStubCallDescriptor(d, arity, FlagsForNode(node)); | 
| (...skipping 24 matching lines...) Expand all  Loading... | 
| 528 Node* JSGenericLowering::LowerJSCallRuntime(Node* node) { | 529 Node* JSGenericLowering::LowerJSCallRuntime(Node* node) { | 
| 529   Runtime::FunctionId function = OpParameter<Runtime::FunctionId>(node); | 530   Runtime::FunctionId function = OpParameter<Runtime::FunctionId>(node); | 
| 530   int arity = OperatorProperties::GetValueInputCount(node->op()); | 531   int arity = OperatorProperties::GetValueInputCount(node->op()); | 
| 531   ReplaceWithRuntimeCall(node, function, arity); | 532   ReplaceWithRuntimeCall(node, function, arity); | 
| 532   return node; | 533   return node; | 
| 533 } | 534 } | 
| 534 | 535 | 
| 535 }  // namespace compiler | 536 }  // namespace compiler | 
| 536 }  // namespace internal | 537 }  // namespace internal | 
| 537 }  // namespace v8 | 538 }  // namespace v8 | 
| OLD | NEW | 
|---|