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/compiler/graph.h" | 7 #include "src/compiler/graph.h" |
8 #include "src/compiler/schedule.h" | 8 #include "src/compiler/schedule.h" |
9 #include "src/flags.h" | 9 #include "src/flags.h" |
10 #include "test/unittests/compiler/compiler-test-utils.h" | 10 #include "test/unittests/compiler/compiler-test-utils.h" |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 const UnallocatedOperand* unallocated = UnallocatedOperand::cast(operand); | 146 const UnallocatedOperand* unallocated = UnallocatedOperand::cast(operand); |
147 return unallocated->IsUsedAtStart(); | 147 return unallocated->IsUsedAtStart(); |
148 } | 148 } |
149 | 149 |
150 | 150 |
151 const FrameStateFunctionInfo* | 151 const FrameStateFunctionInfo* |
152 InstructionSelectorTest::StreamBuilder::GetFrameStateFunctionInfo( | 152 InstructionSelectorTest::StreamBuilder::GetFrameStateFunctionInfo( |
153 int parameter_count, int local_count) { | 153 int parameter_count, int local_count) { |
154 return common()->CreateFrameStateFunctionInfo( | 154 return common()->CreateFrameStateFunctionInfo( |
155 FrameStateType::kJavaScriptFunction, parameter_count, local_count, | 155 FrameStateType::kJavaScriptFunction, parameter_count, local_count, |
156 Handle<SharedFunctionInfo>()); | 156 Handle<SharedFunctionInfo>(), CALL_MAINTAINS_NATIVE_CONTEXT); |
157 } | 157 } |
158 | 158 |
159 | 159 |
160 // ----------------------------------------------------------------------------- | 160 // ----------------------------------------------------------------------------- |
161 // Return. | 161 // Return. |
162 | 162 |
163 | 163 |
164 TARGET_TEST_F(InstructionSelectorTest, ReturnFloat32Constant) { | 164 TARGET_TEST_F(InstructionSelectorTest, ReturnFloat32Constant) { |
165 const float kValue = 4.2f; | 165 const float kValue = 4.2f; |
166 StreamBuilder m(this, kMachFloat32); | 166 StreamBuilder m(this, kMachFloat32); |
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
606 EXPECT_EQ(s.ToVreg(context2), s.ToVreg(call_instr->InputAt(14))); | 606 EXPECT_EQ(s.ToVreg(context2), s.ToVreg(call_instr->InputAt(14))); |
607 // Continuation. | 607 // Continuation. |
608 | 608 |
609 EXPECT_EQ(kArchRet, s[index++]->arch_opcode()); | 609 EXPECT_EQ(kArchRet, s[index++]->arch_opcode()); |
610 EXPECT_EQ(index, s.size()); | 610 EXPECT_EQ(index, s.size()); |
611 } | 611 } |
612 | 612 |
613 } // namespace compiler | 613 } // namespace compiler |
614 } // namespace internal | 614 } // namespace internal |
615 } // namespace v8 | 615 } // namespace v8 |
OLD | NEW |