Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(135)

Side by Side Diff: src/compiler/common-operator.cc

Issue 1015353004: [turbofan] Eliminatable JS/call nodes should not have a control input. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/compiler/js-operator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | src/compiler/js-operator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698