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

Side by Side Diff: test/cctest/compiler/test-run-native-calls.cc

Issue 1653913002: X87: Change num_double_registers() to num_allocatable_double_registers() for TestStackSlot. (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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/assembler.h" 5 #include "src/assembler.h"
6 #include "src/codegen.h" 6 #include "src/codegen.h"
7 #include "src/compiler/linkage.h" 7 #include "src/compiler/linkage.h"
8 #include "src/compiler/raw-machine-assembler.h" 8 #include "src/compiler/raw-machine-assembler.h"
9 #include "src/machine-type.h" 9 #include "src/machine-type.h"
10 #include "src/register-configuration.h" 10 #include "src/register-configuration.h"
(...skipping 1145 matching lines...) Expand 10 before | Expand all | Expand 10 after
1156 TEST(MixedParams_1) { MixedParamTest(1); } 1156 TEST(MixedParams_1) { MixedParamTest(1); }
1157 TEST(MixedParams_2) { MixedParamTest(2); } 1157 TEST(MixedParams_2) { MixedParamTest(2); }
1158 TEST(MixedParams_3) { MixedParamTest(3); } 1158 TEST(MixedParams_3) { MixedParamTest(3); }
1159 1159
1160 template <typename T> 1160 template <typename T>
1161 void TestStackSlot(MachineType slot_type, T expected) { 1161 void TestStackSlot(MachineType slot_type, T expected) {
1162 // Test: Generate with a function f which reserves a stack slot, call an inner 1162 // Test: Generate with a function f which reserves a stack slot, call an inner
1163 // function g from f which writes into the stack slot of f. 1163 // function g from f which writes into the stack slot of f.
1164 1164
1165 if (RegisterConfiguration::ArchDefault(RegisterConfiguration::TURBOFAN) 1165 if (RegisterConfiguration::ArchDefault(RegisterConfiguration::TURBOFAN)
1166 ->num_double_registers() < 2) 1166 ->num_allocatable_double_registers() < 2)
1167 return; 1167 return;
1168 1168
1169 Isolate* isolate = CcTest::InitIsolateOnce(); 1169 Isolate* isolate = CcTest::InitIsolateOnce();
1170 1170
1171 // Lots of code to generate the build descriptor for the inner function. 1171 // Lots of code to generate the build descriptor for the inner function.
1172 int parray_gp[] = { 1172 int parray_gp[] = {
1173 RegisterConfiguration::ArchDefault(RegisterConfiguration::TURBOFAN) 1173 RegisterConfiguration::ArchDefault(RegisterConfiguration::TURBOFAN)
1174 ->GetAllocatableGeneralCode(0), 1174 ->GetAllocatableGeneralCode(0),
1175 RegisterConfiguration::ArchDefault(RegisterConfiguration::TURBOFAN) 1175 RegisterConfiguration::ArchDefault(RegisterConfiguration::TURBOFAN)
1176 ->GetAllocatableGeneralCode(1)}; 1176 ->GetAllocatableGeneralCode(1)};
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
1246 TestStackSlot(MachineType::Float32(), magic); 1246 TestStackSlot(MachineType::Float32(), magic);
1247 } 1247 }
1248 1248
1249 TEST(RunStackSlotFloat64) { 1249 TEST(RunStackSlotFloat64) {
1250 double magic = 3456.375; 1250 double magic = 3456.375;
1251 TestStackSlot(MachineType::Float64(), magic); 1251 TestStackSlot(MachineType::Float64(), magic);
1252 } 1252 }
1253 } // namespace compiler 1253 } // namespace compiler
1254 } // namespace internal 1254 } // namespace internal
1255 } // namespace v8 1255 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698