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/common-operator.h" | 5 #include "src/compiler/common-operator.h" |
6 | 6 |
7 #include "src/assembler.h" | 7 #include "src/assembler.h" |
8 #include "src/base/lazy-instance.h" | 8 #include "src/base/lazy-instance.h" |
9 #include "src/compiler/linkage.h" | 9 #include "src/compiler/linkage.h" |
10 #include "src/compiler/opcodes.h" | 10 #include "src/compiler/opcodes.h" |
(...skipping 605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
616 | 616 |
617 | 617 |
618 const Operator* CommonOperatorBuilder::Call(const CallDescriptor* descriptor) { | 618 const Operator* CommonOperatorBuilder::Call(const CallDescriptor* descriptor) { |
619 class CallOperator FINAL : public Operator1<const CallDescriptor*> { | 619 class CallOperator FINAL : public Operator1<const CallDescriptor*> { |
620 public: | 620 public: |
621 CallOperator(const CallDescriptor* descriptor, const char* mnemonic) | 621 CallOperator(const CallDescriptor* descriptor, const char* mnemonic) |
622 : Operator1<const CallDescriptor*>( | 622 : Operator1<const CallDescriptor*>( |
623 IrOpcode::kCall, descriptor->properties(), mnemonic, | 623 IrOpcode::kCall, descriptor->properties(), mnemonic, |
624 descriptor->InputCount() + descriptor->FrameStateCount(), | 624 descriptor->InputCount() + descriptor->FrameStateCount(), |
625 Operator::ZeroIfPure(descriptor->properties()), | 625 Operator::ZeroIfPure(descriptor->properties()), |
626 Operator::ZeroIfPure(descriptor->properties()), | 626 Operator::ZeroIfEliminatable(descriptor->properties()), |
627 descriptor->ReturnCount(), | 627 descriptor->ReturnCount(), |
628 Operator::ZeroIfPure(descriptor->properties()), | 628 Operator::ZeroIfPure(descriptor->properties()), |
629 Operator::ZeroIfNoThrow(descriptor->properties()), descriptor) {} | 629 Operator::ZeroIfNoThrow(descriptor->properties()), descriptor) {} |
630 | 630 |
631 void PrintParameter(std::ostream& os) const OVERRIDE { | 631 void PrintParameter(std::ostream& os) const OVERRIDE { |
632 os << "[" << *parameter() << "]"; | 632 os << "[" << *parameter() << "]"; |
633 } | 633 } |
634 }; | 634 }; |
635 return new (zone()) CallOperator(descriptor, "Call"); | 635 return new (zone()) CallOperator(descriptor, "Call"); |
636 } | 636 } |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
669 } else { | 669 } else { |
670 UNREACHABLE(); | 670 UNREACHABLE(); |
671 return nullptr; | 671 return nullptr; |
672 } | 672 } |
673 } | 673 } |
674 | 674 |
675 | 675 |
676 } // namespace compiler | 676 } // namespace compiler |
677 } // namespace internal | 677 } // namespace internal |
678 } // namespace v8 | 678 } // namespace v8 |
OLD | NEW |