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

Side by Side Diff: src/compiler/ppc/instruction-selector-ppc.cc

Issue 2682143002: [compiler] Pass deoptimization_kind through DeoptimizeParameters and FlagsContinuation (Closed)
Patch Set: fix Created 3 years, 10 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 | « src/compiler/ppc/code-generator-ppc.cc ('k') | src/compiler/s390/code-generator-s390.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/base/adapters.h" 5 #include "src/base/adapters.h"
6 #include "src/compiler/instruction-selector-impl.h" 6 #include "src/compiler/instruction-selector-impl.h"
7 #include "src/compiler/node-matchers.h" 7 #include "src/compiler/node-matchers.h"
8 #include "src/compiler/node-properties.h" 8 #include "src/compiler/node-properties.h"
9 #include "src/ppc/frames-ppc.h" 9 #include "src/ppc/frames-ppc.h"
10 10
(...skipping 1764 matching lines...) Expand 10 before | Expand all | Expand 10 after
1775 } // namespace 1775 } // namespace
1776 1776
1777 1777
1778 void InstructionSelector::VisitBranch(Node* branch, BasicBlock* tbranch, 1778 void InstructionSelector::VisitBranch(Node* branch, BasicBlock* tbranch,
1779 BasicBlock* fbranch) { 1779 BasicBlock* fbranch) {
1780 FlagsContinuation cont(kNotEqual, tbranch, fbranch); 1780 FlagsContinuation cont(kNotEqual, tbranch, fbranch);
1781 VisitWord32CompareZero(this, branch, branch->InputAt(0), &cont); 1781 VisitWord32CompareZero(this, branch, branch->InputAt(0), &cont);
1782 } 1782 }
1783 1783
1784 void InstructionSelector::VisitDeoptimizeIf(Node* node) { 1784 void InstructionSelector::VisitDeoptimizeIf(Node* node) {
1785 DeoptimizeParameters p = DeoptimizeParametersOf(node->op());
1785 FlagsContinuation cont = FlagsContinuation::ForDeoptimize( 1786 FlagsContinuation cont = FlagsContinuation::ForDeoptimize(
1786 kNotEqual, DeoptimizeReasonOf(node->op()), node->InputAt(1)); 1787 kNotEqual, p.kind(), p.reason(), node->InputAt(1));
1787 VisitWord32CompareZero(this, node, node->InputAt(0), &cont); 1788 VisitWordCompareZero(this, node, node->InputAt(0), &cont);
1788 } 1789 }
1789 1790
1790 void InstructionSelector::VisitDeoptimizeUnless(Node* node) { 1791 void InstructionSelector::VisitDeoptimizeUnless(Node* node) {
1792 DeoptimizeParameters p = DeoptimizeParametersOf(node->op());
1791 FlagsContinuation cont = FlagsContinuation::ForDeoptimize( 1793 FlagsContinuation cont = FlagsContinuation::ForDeoptimize(
1792 kEqual, DeoptimizeReasonOf(node->op()), node->InputAt(1)); 1794 kEqual, p.kind(), p.reason(), node->InputAt(1));
1793 VisitWord32CompareZero(this, node, node->InputAt(0), &cont); 1795 VisitWordCompareZero(this, node, node->InputAt(0), &cont);
1794 } 1796 }
1795 1797
1796 void InstructionSelector::VisitTrapIf(Node* node, Runtime::FunctionId func_id) { 1798 void InstructionSelector::VisitTrapIf(Node* node, Runtime::FunctionId func_id) {
1797 FlagsContinuation cont = 1799 FlagsContinuation cont =
1798 FlagsContinuation::ForTrap(kNotEqual, func_id, node->InputAt(1)); 1800 FlagsContinuation::ForTrap(kNotEqual, func_id, node->InputAt(1));
1799 VisitWord32CompareZero(this, node, node->InputAt(0), &cont); 1801 VisitWord32CompareZero(this, node, node->InputAt(0), &cont);
1800 } 1802 }
1801 1803
1802 void InstructionSelector::VisitTrapUnless(Node* node, 1804 void InstructionSelector::VisitTrapUnless(Node* node,
1803 Runtime::FunctionId func_id) { 1805 Runtime::FunctionId func_id) {
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
2117 // static 2119 // static
2118 MachineOperatorBuilder::AlignmentRequirements 2120 MachineOperatorBuilder::AlignmentRequirements
2119 InstructionSelector::AlignmentRequirements() { 2121 InstructionSelector::AlignmentRequirements() {
2120 return MachineOperatorBuilder::AlignmentRequirements:: 2122 return MachineOperatorBuilder::AlignmentRequirements::
2121 FullUnalignedAccessSupport(); 2123 FullUnalignedAccessSupport();
2122 } 2124 }
2123 2125
2124 } // namespace compiler 2126 } // namespace compiler
2125 } // namespace internal 2127 } // namespace internal
2126 } // namespace v8 2128 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/ppc/code-generator-ppc.cc ('k') | src/compiler/s390/code-generator-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698