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/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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 explicit Int32Signature(int param_count) | 235 explicit Int32Signature(int param_count) |
236 : MachineSignature(1, param_count, kIntTypes) { | 236 : MachineSignature(1, param_count, kIntTypes) { |
237 CHECK(param_count <= kMaxParamCount); | 237 CHECK(param_count <= kMaxParamCount); |
238 } | 238 } |
239 }; | 239 }; |
240 | 240 |
241 | 241 |
242 Handle<Code> CompileGraph(const char* name, CallDescriptor* desc, Graph* graph, | 242 Handle<Code> CompileGraph(const char* name, CallDescriptor* desc, Graph* graph, |
243 Schedule* schedule = nullptr) { | 243 Schedule* schedule = nullptr) { |
244 Isolate* isolate = CcTest::InitIsolateOnce(); | 244 Isolate* isolate = CcTest::InitIsolateOnce(); |
245 CompilationInfo info(ArrayVector("testing"), isolate, graph->zone()); | 245 CompilationInfo info(ArrayVector("testing"), isolate, graph->zone(), |
| 246 Code::ComputeFlags(Code::STUB)); |
246 Handle<Code> code = | 247 Handle<Code> code = |
247 Pipeline::GenerateCodeForTesting(&info, desc, graph, schedule); | 248 Pipeline::GenerateCodeForTesting(&info, desc, graph, schedule); |
248 CHECK(!code.is_null()); | 249 CHECK(!code.is_null()); |
249 #ifdef ENABLE_DISASSEMBLER | 250 #ifdef ENABLE_DISASSEMBLER |
250 if (FLAG_print_opt_code) { | 251 if (FLAG_print_opt_code) { |
251 OFStream os(stdout); | 252 OFStream os(stdout); |
252 code->Disassemble(name, os); | 253 code->Disassemble(name, os); |
253 } | 254 } |
254 #endif | 255 #endif |
255 return code; | 256 return code; |
(...skipping 935 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1191 TestStackSlot(MachineType::Float32(), magic); | 1192 TestStackSlot(MachineType::Float32(), magic); |
1192 } | 1193 } |
1193 | 1194 |
1194 TEST(RunStackSlotFloat64) { | 1195 TEST(RunStackSlotFloat64) { |
1195 double magic = 3456.375; | 1196 double magic = 3456.375; |
1196 TestStackSlot(MachineType::Float64(), magic); | 1197 TestStackSlot(MachineType::Float64(), magic); |
1197 } | 1198 } |
1198 } // namespace compiler | 1199 } // namespace compiler |
1199 } // namespace internal | 1200 } // namespace internal |
1200 } // namespace v8 | 1201 } // namespace v8 |
OLD | NEW |