| 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-factory.h" | 5 #include "src/code-factory.h" |
| 6 #include "src/code-stubs.h" | 6 #include "src/code-stubs.h" |
| 7 #include "src/compiler/common-operator.h" | 7 #include "src/compiler/common-operator.h" |
| 8 #include "src/compiler/js-generic-lowering.h" | 8 #include "src/compiler/js-generic-lowering.h" |
| 9 #include "src/compiler/js-graph.h" | 9 #include "src/compiler/js-graph.h" |
| 10 #include "src/compiler/machine-operator.h" | 10 #include "src/compiler/machine-operator.h" |
| (...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 562 CallDescriptor* desc = Linkage::GetStubCallDescriptor( | 562 CallDescriptor* desc = Linkage::GetStubCallDescriptor( |
| 563 isolate(), zone(), d, static_cast<int>(p.arity() - 1), flags); | 563 isolate(), zone(), d, static_cast<int>(p.arity() - 1), flags); |
| 564 Node* stub_code = jsgraph()->HeapConstant(stub.GetCode()); | 564 Node* stub_code = jsgraph()->HeapConstant(stub.GetCode()); |
| 565 node->InsertInput(zone(), 0, stub_code); | 565 node->InsertInput(zone(), 0, stub_code); |
| 566 NodeProperties::ChangeOp(node, common()->Call(desc)); | 566 NodeProperties::ChangeOp(node, common()->Call(desc)); |
| 567 } | 567 } |
| 568 | 568 |
| 569 | 569 |
| 570 void JSGenericLowering::LowerJSCallRuntime(Node* node) { | 570 void JSGenericLowering::LowerJSCallRuntime(Node* node) { |
| 571 const CallRuntimeParameters& p = CallRuntimeParametersOf(node->op()); | 571 const CallRuntimeParameters& p = CallRuntimeParametersOf(node->op()); |
| 572 AdjustFrameStatesForCall(node); |
| 572 ReplaceWithRuntimeCall(node, p.id(), static_cast<int>(p.arity())); | 573 ReplaceWithRuntimeCall(node, p.id(), static_cast<int>(p.arity())); |
| 573 } | 574 } |
| 574 | 575 |
| 575 | 576 |
| 576 void JSGenericLowering::LowerJSForInDone(Node* node) { | 577 void JSGenericLowering::LowerJSForInDone(Node* node) { |
| 577 ReplaceWithRuntimeCall(node, Runtime::kForInDone); | 578 ReplaceWithRuntimeCall(node, Runtime::kForInDone); |
| 578 } | 579 } |
| 579 | 580 |
| 580 | 581 |
| 581 void JSGenericLowering::LowerJSForInNext(Node* node) { | 582 void JSGenericLowering::LowerJSForInNext(Node* node) { |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 839 } | 840 } |
| 840 | 841 |
| 841 | 842 |
| 842 MachineOperatorBuilder* JSGenericLowering::machine() const { | 843 MachineOperatorBuilder* JSGenericLowering::machine() const { |
| 843 return jsgraph()->machine(); | 844 return jsgraph()->machine(); |
| 844 } | 845 } |
| 845 | 846 |
| 846 } // namespace compiler | 847 } // namespace compiler |
| 847 } // namespace internal | 848 } // namespace internal |
| 848 } // namespace v8 | 849 } // namespace v8 |
| OLD | NEW |