| OLD | NEW | 
|     1 // Copyright 2015 the V8 project authors. All rights reserved. |     1 // Copyright 2015 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/s390/frames-s390.h" |     9 #include "src/s390/frames-s390.h" | 
|    10  |    10  | 
| (...skipping 1768 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1779       kNotEqual, DeoptimizeReasonOf(node->op()), node->InputAt(1)); |  1779       kNotEqual, DeoptimizeReasonOf(node->op()), node->InputAt(1)); | 
|  1780   VisitWord32CompareZero(this, node, node->InputAt(0), &cont); |  1780   VisitWord32CompareZero(this, node, node->InputAt(0), &cont); | 
|  1781 } |  1781 } | 
|  1782  |  1782  | 
|  1783 void InstructionSelector::VisitDeoptimizeUnless(Node* node) { |  1783 void InstructionSelector::VisitDeoptimizeUnless(Node* node) { | 
|  1784   FlagsContinuation cont = FlagsContinuation::ForDeoptimize( |  1784   FlagsContinuation cont = FlagsContinuation::ForDeoptimize( | 
|  1785       kEqual, DeoptimizeReasonOf(node->op()), node->InputAt(1)); |  1785       kEqual, DeoptimizeReasonOf(node->op()), node->InputAt(1)); | 
|  1786   VisitWord32CompareZero(this, node, node->InputAt(0), &cont); |  1786   VisitWord32CompareZero(this, node, node->InputAt(0), &cont); | 
|  1787 } |  1787 } | 
|  1788  |  1788  | 
|  1789 void InstructionSelector::VisitTrapIf(Node* node) { UNREACHABLE(); } |  1789 void InstructionSelector::VisitTrapIf(Node* node, Runtime::FunctionId func_id) { | 
 |  1790   UNREACHABLE(); | 
 |  1791 } | 
|  1790  |  1792  | 
|  1791 void InstructionSelector::VisitTrapUnless(Node* node) { UNREACHABLE(); } |  1793 void InstructionSelector::VisitTrapUnless(Node* node, | 
 |  1794                                           Runtime::FunctionId func_id) { | 
 |  1795   UNREACHABLE(); | 
 |  1796 } | 
|  1792  |  1797  | 
|  1793 void InstructionSelector::VisitSwitch(Node* node, const SwitchInfo& sw) { |  1798 void InstructionSelector::VisitSwitch(Node* node, const SwitchInfo& sw) { | 
|  1794   S390OperandGenerator g(this); |  1799   S390OperandGenerator g(this); | 
|  1795   InstructionOperand value_operand = g.UseRegister(node->InputAt(0)); |  1800   InstructionOperand value_operand = g.UseRegister(node->InputAt(0)); | 
|  1796  |  1801  | 
|  1797   // Emit either ArchTableSwitch or ArchLookupSwitch. |  1802   // Emit either ArchTableSwitch or ArchLookupSwitch. | 
|  1798   size_t table_space_cost = 4 + sw.value_range; |  1803   size_t table_space_cost = 4 + sw.value_range; | 
|  1799   size_t table_time_cost = 3; |  1804   size_t table_time_cost = 3; | 
|  1800   size_t lookup_space_cost = 3 + 2 * sw.case_count; |  1805   size_t lookup_space_cost = 3 + 2 * sw.case_count; | 
|  1801   size_t lookup_time_cost = sw.case_count; |  1806   size_t lookup_time_cost = sw.case_count; | 
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  2072 // static |  2077 // static | 
|  2073 MachineOperatorBuilder::AlignmentRequirements |  2078 MachineOperatorBuilder::AlignmentRequirements | 
|  2074 InstructionSelector::AlignmentRequirements() { |  2079 InstructionSelector::AlignmentRequirements() { | 
|  2075   return MachineOperatorBuilder::AlignmentRequirements:: |  2080   return MachineOperatorBuilder::AlignmentRequirements:: | 
|  2076       FullUnalignedAccessSupport(); |  2081       FullUnalignedAccessSupport(); | 
|  2077 } |  2082 } | 
|  2078  |  2083  | 
|  2079 }  // namespace compiler |  2084 }  // namespace compiler | 
|  2080 }  // namespace internal |  2085 }  // namespace internal | 
|  2081 }  // namespace v8 |  2086 }  // namespace v8 | 
| OLD | NEW |