| 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 "test/unittests/compiler/instruction-selector-unittest.h" | 5 #include "test/unittests/compiler/instruction-selector-unittest.h" |
| 6 | 6 |
| 7 #include "src/code-factory.h" | 7 #include "src/code-factory.h" |
| 8 #include "src/compiler/graph.h" | 8 #include "src/compiler/graph.h" |
| 9 #include "src/compiler/schedule.h" | 9 #include "src/compiler/schedule.h" |
| 10 #include "src/flags.h" | 10 #include "src/flags.h" |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 const UnallocatedOperand* unallocated = UnallocatedOperand::cast(operand); | 141 const UnallocatedOperand* unallocated = UnallocatedOperand::cast(operand); |
| 142 return unallocated->IsUsedAtStart(); | 142 return unallocated->IsUsedAtStart(); |
| 143 } | 143 } |
| 144 | 144 |
| 145 | 145 |
| 146 const FrameStateFunctionInfo* | 146 const FrameStateFunctionInfo* |
| 147 InstructionSelectorTest::StreamBuilder::GetFrameStateFunctionInfo( | 147 InstructionSelectorTest::StreamBuilder::GetFrameStateFunctionInfo( |
| 148 int parameter_count, int local_count) { | 148 int parameter_count, int local_count) { |
| 149 return common()->CreateFrameStateFunctionInfo( | 149 return common()->CreateFrameStateFunctionInfo( |
| 150 FrameStateType::kJavaScriptFunction, parameter_count, local_count, | 150 FrameStateType::kJavaScriptFunction, parameter_count, local_count, |
| 151 Handle<SharedFunctionInfo>(), CALL_MAINTAINS_NATIVE_CONTEXT); | 151 Handle<SharedFunctionInfo>()); |
| 152 } | 152 } |
| 153 | 153 |
| 154 | 154 |
| 155 // ----------------------------------------------------------------------------- | 155 // ----------------------------------------------------------------------------- |
| 156 // Return. | 156 // Return. |
| 157 | 157 |
| 158 | 158 |
| 159 TARGET_TEST_F(InstructionSelectorTest, ReturnFloat32Constant) { | 159 TARGET_TEST_F(InstructionSelectorTest, ReturnFloat32Constant) { |
| 160 const float kValue = 4.2f; | 160 const float kValue = 4.2f; |
| 161 StreamBuilder m(this, MachineType::Float32()); | 161 StreamBuilder m(this, MachineType::Float32()); |
| (...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 623 EXPECT_EQ(s.ToVreg(context2), s.ToVreg(call_instr->InputAt(14))); | 623 EXPECT_EQ(s.ToVreg(context2), s.ToVreg(call_instr->InputAt(14))); |
| 624 // Continuation. | 624 // Continuation. |
| 625 | 625 |
| 626 EXPECT_EQ(kArchRet, s[index++]->arch_opcode()); | 626 EXPECT_EQ(kArchRet, s[index++]->arch_opcode()); |
| 627 EXPECT_EQ(index, s.size()); | 627 EXPECT_EQ(index, s.size()); |
| 628 } | 628 } |
| 629 | 629 |
| 630 } // namespace compiler | 630 } // namespace compiler |
| 631 } // namespace internal | 631 } // namespace internal |
| 632 } // namespace v8 | 632 } // namespace v8 |
| OLD | NEW |