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_GRAPH_BUILDER_TESTER_H_ | 5 #ifndef V8_CCTEST_COMPILER_GRAPH_BUILDER_TESTER_H_ |
6 #define V8_CCTEST_COMPILER_GRAPH_BUILDER_TESTER_H_ | 6 #define V8_CCTEST_COMPILER_GRAPH_BUILDER_TESTER_H_ |
7 | 7 |
8 #include "src/v8.h" | 8 #include "src/v8.h" |
9 #include "test/cctest/cctest.h" | 9 #include "test/cctest/cctest.h" |
10 | 10 |
(...skipping 23 matching lines...) Expand all Loading... |
34 } | 34 } |
35 }; | 35 }; |
36 | 36 |
37 | 37 |
38 class MachineCallHelper : public CallHelper { | 38 class MachineCallHelper : public CallHelper { |
39 public: | 39 public: |
40 MachineCallHelper(Zone* zone, MachineCallDescriptorBuilder* builder); | 40 MachineCallHelper(Zone* zone, MachineCallDescriptorBuilder* builder); |
41 | 41 |
42 Node* Parameter(int offset); | 42 Node* Parameter(int offset); |
43 | 43 |
| 44 void GenerateCode() { Generate(); } |
| 45 |
44 protected: | 46 protected: |
45 virtual byte* Generate(); | 47 virtual byte* Generate(); |
46 virtual void VerifyParameters(int parameter_count, | 48 virtual void VerifyParameters(int parameter_count, |
47 MachineRepresentation* parameters); | 49 MachineRepresentation* parameters); |
48 void InitParameters(GraphBuilder* builder, CommonOperatorBuilder* common); | 50 void InitParameters(GraphBuilder* builder, CommonOperatorBuilder* common); |
49 | 51 |
50 private: | 52 private: |
51 int parameter_count() const { | 53 int parameter_count() const { |
52 return call_descriptor_builder_->parameter_count(); | 54 return call_descriptor_builder_->parameter_count(); |
53 } | 55 } |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 } | 104 } |
103 virtual ~GraphBuilderTester() {} | 105 virtual ~GraphBuilderTester() {} |
104 | 106 |
105 Factory* factory() const { return isolate()->factory(); } | 107 Factory* factory() const { return isolate()->factory(); } |
106 }; | 108 }; |
107 } // namespace compiler | 109 } // namespace compiler |
108 } // namespace internal | 110 } // namespace internal |
109 } // namespace v8 | 111 } // namespace v8 |
110 | 112 |
111 #endif // V8_CCTEST_COMPILER_GRAPH_BUILDER_TESTER_H_ | 113 #endif // V8_CCTEST_COMPILER_GRAPH_BUILDER_TESTER_H_ |
OLD | NEW |