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

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

Issue 1244583003: [turbofan]: Add a context relaxer reducer (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Really this time Created 5 years, 5 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/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
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
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
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