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

Side by Side Diff: test/unittests/compiler/instruction-selector-unittest.cc

Issue 1715633002: [turbofan] Remove the JSContextRelaxation reducer. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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/pipeline.cc ('k') | test/unittests/compiler/js-context-relaxation-unittest.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 "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
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
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
OLDNEW
« no previous file with comments | « src/compiler/pipeline.cc ('k') | test/unittests/compiler/js-context-relaxation-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698