| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |