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 #include "src/v8.h" | 5 #include "src/v8.h" |
6 #include "test/cctest/cctest.h" | 6 #include "test/cctest/cctest.h" |
7 | 7 |
8 #include "src/compiler/code-generator.h" | 8 #include "src/compiler/code-generator.h" |
9 #include "src/compiler/common-operator.h" | 9 #include "src/compiler/common-operator.h" |
10 #include "src/compiler/graph.h" | 10 #include "src/compiler/graph.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 explicit InstructionTester() | 28 explicit InstructionTester() |
29 : isolate(main_isolate()), | 29 : isolate(main_isolate()), |
30 graph(zone()), | 30 graph(zone()), |
31 schedule(zone()), | 31 schedule(zone()), |
32 info(static_cast<HydrogenCodeStub*>(NULL), main_isolate()), | 32 info(static_cast<HydrogenCodeStub*>(NULL), main_isolate()), |
33 linkage(&info), | 33 linkage(&info), |
34 common(zone()), | 34 common(zone()), |
35 machine(zone(), kMachineWord32), | 35 machine(zone(), kMachineWord32), |
36 code(NULL) {} | 36 code(NULL) {} |
37 | 37 |
| 38 ~InstructionTester() { delete code; } |
| 39 |
38 Isolate* isolate; | 40 Isolate* isolate; |
39 Graph graph; | 41 Graph graph; |
40 Schedule schedule; | 42 Schedule schedule; |
41 CompilationInfoWithZone info; | 43 CompilationInfoWithZone info; |
42 Linkage linkage; | 44 Linkage linkage; |
43 CommonOperatorBuilder common; | 45 CommonOperatorBuilder common; |
44 MachineOperatorBuilder machine; | 46 MachineOperatorBuilder machine; |
45 TestInstrSeq* code; | 47 TestInstrSeq* code; |
46 | 48 |
47 Zone* zone() { return main_zone(); } | 49 Zone* zone() { return main_zone(); } |
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
340 CHECK_EQ(inputs[z], m->InputAt(z)); | 342 CHECK_EQ(inputs[z], m->InputAt(z)); |
341 } | 343 } |
342 | 344 |
343 for (size_t z = 0; z < k; z++) { | 345 for (size_t z = 0; z < k; z++) { |
344 CHECK_EQ(temps[z], m->TempAt(z)); | 346 CHECK_EQ(temps[z], m->TempAt(z)); |
345 } | 347 } |
346 } | 348 } |
347 } | 349 } |
348 } | 350 } |
349 } | 351 } |
OLD | NEW |