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

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

Issue 1498833002: Move machine-type.h from src/compiler to src/. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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
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 // TODO(jochen): Remove this after the setting is turned on globally. 5 // TODO(jochen): Remove this after the setting is turned on globally.
6 #define V8_IMMINENT_DEPRECATION_WARNINGS 6 #define V8_IMMINENT_DEPRECATION_WARNINGS
7 7
8 #include "src/assembler.h" 8 #include "src/assembler.h"
9 #include "src/codegen.h" 9 #include "src/codegen.h"
10 #include "src/compiler/linkage.h" 10 #include "src/compiler/linkage.h"
11 #include "src/compiler/machine-type.h"
12 #include "src/compiler/raw-machine-assembler.h" 11 #include "src/compiler/raw-machine-assembler.h"
12 #include "src/machine-type.h"
13 #include "src/register-configuration.h" 13 #include "src/register-configuration.h"
14 14
15 #include "test/cctest/cctest.h" 15 #include "test/cctest/cctest.h"
16 #include "test/cctest/compiler/codegen-tester.h" 16 #include "test/cctest/compiler/codegen-tester.h"
17 #include "test/cctest/compiler/graph-builder-tester.h" 17 #include "test/cctest/compiler/graph-builder-tester.h"
18 #include "test/cctest/compiler/value-helper.h" 18 #include "test/cctest/compiler/value-helper.h"
19 19
20 namespace v8 { 20 namespace v8 {
21 namespace internal { 21 namespace internal {
22 namespace compiler { 22 namespace compiler {
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 201
202 // Add register and/or stack parameter(s). 202 // Add register and/or stack parameter(s).
203 const int parameter_count = static_cast<int>(msig->parameter_count()); 203 const int parameter_count = static_cast<int>(msig->parameter_count());
204 for (int i = 0; i < parameter_count; i++) { 204 for (int i = 0; i < parameter_count; i++) {
205 locations.AddParam(params.Next(msig->GetParam(i))); 205 locations.AddParam(params.Next(msig->GetParam(i)));
206 } 206 }
207 207
208 const RegList kCalleeSaveRegisters = 0; 208 const RegList kCalleeSaveRegisters = 0;
209 const RegList kCalleeSaveFPRegisters = 0; 209 const RegList kCalleeSaveFPRegisters = 0;
210 210
211 MachineType target_type = compiler::kMachAnyTagged; 211 MachineType target_type = kMachAnyTagged;
212 LinkageLocation target_loc = LinkageLocation::ForAnyRegister(); 212 LinkageLocation target_loc = LinkageLocation::ForAnyRegister();
213 int stack_param_count = params.stack_offset; 213 int stack_param_count = params.stack_offset;
214 return new (zone) CallDescriptor( // -- 214 return new (zone) CallDescriptor( // --
215 CallDescriptor::kCallCodeObject, // kind 215 CallDescriptor::kCallCodeObject, // kind
216 target_type, // target MachineType 216 target_type, // target MachineType
217 target_loc, // target location 217 target_loc, // target location
218 msig, // machine_sig 218 msig, // machine_sig
219 locations.Build(), // location_sig 219 locations.Build(), // location_sig
220 stack_param_count, // stack_parameter_count 220 stack_param_count, // stack_parameter_count
221 compiler::Operator::kNoProperties, // properties 221 compiler::Operator::kNoProperties, // properties
(...skipping 940 matching lines...) Expand 10 before | Expand all | Expand 10 after
1162 1162
1163 1163
1164 TEST(MixedParams_0) { MixedParamTest(0); } 1164 TEST(MixedParams_0) { MixedParamTest(0); }
1165 TEST(MixedParams_1) { MixedParamTest(1); } 1165 TEST(MixedParams_1) { MixedParamTest(1); }
1166 TEST(MixedParams_2) { MixedParamTest(2); } 1166 TEST(MixedParams_2) { MixedParamTest(2); }
1167 TEST(MixedParams_3) { MixedParamTest(3); } 1167 TEST(MixedParams_3) { MixedParamTest(3); }
1168 1168
1169 } // namespace compiler 1169 } // namespace compiler
1170 } // namespace internal 1170 } // namespace internal
1171 } // namespace v8 1171 } // namespace v8
OLDNEW
« no previous file with comments | « test/cctest/compiler/test-multiple-return.cc ('k') | test/unittests/compiler/common-operator-reducer-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698