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

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

Issue 1317113004: Reduce the number of entrypoints to the compiler pipeline by one. Always require caller to provide … (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 3 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 | « test/cctest/compiler/graph-builder-tester.h ('k') | 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/machine-type.h" 8 #include "src/compiler/machine-type.h"
9 #include "src/compiler/raw-machine-assembler.h" 9 #include "src/compiler/raw-machine-assembler.h"
10 10
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 explicit Int32Signature(int param_count) 237 explicit Int32Signature(int param_count)
238 : MachineSignature(1, param_count, kIntTypes) { 238 : MachineSignature(1, param_count, kIntTypes) {
239 CHECK(param_count <= kMaxParamCount); 239 CHECK(param_count <= kMaxParamCount);
240 } 240 }
241 }; 241 };
242 242
243 243
244 Handle<Code> CompileGraph(const char* name, CallDescriptor* desc, Graph* graph, 244 Handle<Code> CompileGraph(const char* name, CallDescriptor* desc, Graph* graph,
245 Schedule* schedule = nullptr) { 245 Schedule* schedule = nullptr) {
246 Isolate* isolate = CcTest::InitIsolateOnce(); 246 Isolate* isolate = CcTest::InitIsolateOnce();
247 CompilationInfo info("testing", isolate, graph->zone());
247 Handle<Code> code = 248 Handle<Code> code =
248 Pipeline::GenerateCodeForTesting(isolate, desc, graph, schedule); 249 Pipeline::GenerateCodeForTesting(&info, desc, graph, schedule);
249 CHECK(!code.is_null()); 250 CHECK(!code.is_null());
250 #ifdef ENABLE_DISASSEMBLER 251 #ifdef ENABLE_DISASSEMBLER
251 if (FLAG_print_opt_code) { 252 if (FLAG_print_opt_code) {
252 OFStream os(stdout); 253 OFStream os(stdout);
253 code->Disassemble(name, os); 254 code->Disassemble(name, os);
254 } 255 }
255 #endif 256 #endif
256 return code; 257 return code;
257 } 258 }
258 259
(...skipping 717 matching lines...) Expand 10 before | Expand all | Expand 10 after
976 ArgsBuffer<float64>::Sig sig(2); 977 ArgsBuffer<float64>::Sig sig(2);
977 RegisterConfig config(params, rets); 978 RegisterConfig config(params, rets);
978 CallDescriptor* desc = config.Create(&zone, &sig); 979 CallDescriptor* desc = config.Create(&zone, &sig);
979 980
980 Run_Computation<float64>(desc, Build_Select_With_Call<float64, 0>, 981 Run_Computation<float64>(desc, Build_Select_With_Call<float64, 0>,
981 Compute_Select<float64, 0>, 1098); 982 Compute_Select<float64, 0>, 1098);
982 983
983 Run_Computation<float64>(desc, Build_Select_With_Call<float64, 1>, 984 Run_Computation<float64>(desc, Build_Select_With_Call<float64, 1>,
984 Compute_Select<float64, 1>, 1099); 985 Compute_Select<float64, 1>, 1099);
985 } 986 }
OLDNEW
« no previous file with comments | « test/cctest/compiler/graph-builder-tester.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698