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 662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
673 ExternalReference::address_of_pending_message_obj(isolate()); | 673 ExternalReference::address_of_pending_message_obj(isolate()); |
674 node->RemoveInput(NodeProperties::FirstContextIndex(node)); | 674 node->RemoveInput(NodeProperties::FirstContextIndex(node)); |
675 node->InsertInput(zone(), 0, jsgraph()->ExternalConstant(message_address)); | 675 node->InsertInput(zone(), 0, jsgraph()->ExternalConstant(message_address)); |
676 node->InsertInput(zone(), 1, jsgraph()->IntPtrConstant(0)); | 676 node->InsertInput(zone(), 1, jsgraph()->IntPtrConstant(0)); |
677 StoreRepresentation representation(MachineRepresentation::kTagged, | 677 StoreRepresentation representation(MachineRepresentation::kTagged, |
678 kNoWriteBarrier); | 678 kNoWriteBarrier); |
679 NodeProperties::ChangeOp(node, machine()->Store(representation)); | 679 NodeProperties::ChangeOp(node, machine()->Store(representation)); |
680 } | 680 } |
681 | 681 |
682 | 682 |
683 void JSGenericLowering::LowerJSYield(Node* node) { UNIMPLEMENTED(); } | |
684 | |
685 | |
686 void JSGenericLowering::LowerJSStackCheck(Node* node) { | 683 void JSGenericLowering::LowerJSStackCheck(Node* node) { |
687 Node* effect = NodeProperties::GetEffectInput(node); | 684 Node* effect = NodeProperties::GetEffectInput(node); |
688 Node* control = NodeProperties::GetControlInput(node); | 685 Node* control = NodeProperties::GetControlInput(node); |
689 | 686 |
690 Node* limit = graph()->NewNode( | 687 Node* limit = graph()->NewNode( |
691 machine()->Load(MachineType::Pointer()), | 688 machine()->Load(MachineType::Pointer()), |
692 jsgraph()->ExternalConstant( | 689 jsgraph()->ExternalConstant( |
693 ExternalReference::address_of_stack_limit(isolate())), | 690 ExternalReference::address_of_stack_limit(isolate())), |
694 jsgraph()->IntPtrConstant(0), effect, control); | 691 jsgraph()->IntPtrConstant(0), effect, control); |
695 Node* pointer = graph()->NewNode(machine()->LoadStackPointer()); | 692 Node* pointer = graph()->NewNode(machine()->LoadStackPointer()); |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
740 } | 737 } |
741 | 738 |
742 | 739 |
743 MachineOperatorBuilder* JSGenericLowering::machine() const { | 740 MachineOperatorBuilder* JSGenericLowering::machine() const { |
744 return jsgraph()->machine(); | 741 return jsgraph()->machine(); |
745 } | 742 } |
746 | 743 |
747 } // namespace compiler | 744 } // namespace compiler |
748 } // namespace internal | 745 } // namespace internal |
749 } // namespace v8 | 746 } // namespace v8 |
OLD | NEW |