OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef V8_CCTEST_COMPILER_CODEGEN_TESTER_H_ | 5 #ifndef V8_CCTEST_COMPILER_CODEGEN_TESTER_H_ |
6 #define V8_CCTEST_COMPILER_CODEGEN_TESTER_H_ | 6 #define V8_CCTEST_COMPILER_CODEGEN_TESTER_H_ |
7 | 7 |
8 #include "src/compiler/instruction-selector.h" | 8 #include "src/compiler/instruction-selector.h" |
9 #include "src/compiler/pipeline.h" | 9 #include "src/compiler/pipeline.h" |
10 #include "src/compiler/raw-machine-assembler.h" | 10 #include "src/compiler/raw-machine-assembler.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 CSignature::New(main_zone(), MachineTypeForC<ReturnType>(), p0, p1, | 31 CSignature::New(main_zone(), MachineTypeForC<ReturnType>(), p0, p1, |
32 p2, p3, p4)), | 32 p2, p3, p4)), |
33 RawMachineAssembler( | 33 RawMachineAssembler( |
34 main_isolate(), new (main_zone()) Graph(main_zone()), | 34 main_isolate(), new (main_zone()) Graph(main_zone()), |
35 Linkage::GetSimplifiedCDescriptor( | 35 Linkage::GetSimplifiedCDescriptor( |
36 main_zone(), | 36 main_zone(), |
37 CSignature::New(main_zone(), MachineTypeForC<ReturnType>(), p0, | 37 CSignature::New(main_zone(), MachineTypeForC<ReturnType>(), p0, |
38 p1, p2, p3, p4), | 38 p1, p2, p3, p4), |
39 true), | 39 true), |
40 MachineType::PointerRepresentation(), | 40 MachineType::PointerRepresentation(), |
41 InstructionSelector::SupportedMachineOperatorFlags()) {} | 41 InstructionSelector::SupportedMachineOperatorFlags(), |
| 42 InstructionSelector::AlignmentRequirements()) {} |
42 | 43 |
43 virtual ~RawMachineAssemblerTester() {} | 44 virtual ~RawMachineAssemblerTester() {} |
44 | 45 |
45 void CheckNumber(double expected, Object* number) { | 46 void CheckNumber(double expected, Object* number) { |
46 CHECK(this->isolate()->factory()->NewNumber(expected)->SameValue(number)); | 47 CHECK(this->isolate()->factory()->NewNumber(expected)->SameValue(number)); |
47 } | 48 } |
48 | 49 |
49 void CheckString(const char* expected, Object* string) { | 50 void CheckString(const char* expected, Object* string) { |
50 CHECK( | 51 CHECK( |
51 this->isolate()->factory()->InternalizeUtf8String(expected)->SameValue( | 52 this->isolate()->factory()->InternalizeUtf8String(expected)->SameValue( |
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
538 | 539 |
539 void Run(RawMachineAssemblerTester<int32_t>* m); | 540 void Run(RawMachineAssemblerTester<int32_t>* m); |
540 void RunLeft(RawMachineAssemblerTester<int32_t>* m); | 541 void RunLeft(RawMachineAssemblerTester<int32_t>* m); |
541 void RunRight(RawMachineAssemblerTester<int32_t>* m); | 542 void RunRight(RawMachineAssemblerTester<int32_t>* m); |
542 }; | 543 }; |
543 } // namespace compiler | 544 } // namespace compiler |
544 } // namespace internal | 545 } // namespace internal |
545 } // namespace v8 | 546 } // namespace v8 |
546 | 547 |
547 #endif // V8_CCTEST_COMPILER_CODEGEN_TESTER_H_ | 548 #endif // V8_CCTEST_COMPILER_CODEGEN_TESTER_H_ |
OLD | NEW |