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_FUNCTION_TESTER_H_ | 5 #ifndef V8_CCTEST_COMPILER_FUNCTION_TESTER_H_ |
6 #define V8_CCTEST_COMPILER_FUNCTION_TESTER_H_ | 6 #define V8_CCTEST_COMPILER_FUNCTION_TESTER_H_ |
7 | 7 |
8 #include "src/ast-numbering.h" | 8 #include "src/ast/ast-numbering.h" |
| 9 #include "src/ast/scopes.h" |
9 #include "src/compiler.h" | 10 #include "src/compiler.h" |
10 #include "src/compiler/linkage.h" | 11 #include "src/compiler/linkage.h" |
11 #include "src/compiler/pipeline.h" | 12 #include "src/compiler/pipeline.h" |
12 #include "src/execution.h" | 13 #include "src/execution.h" |
13 #include "src/full-codegen/full-codegen.h" | 14 #include "src/full-codegen/full-codegen.h" |
14 #include "src/handles.h" | 15 #include "src/handles.h" |
15 #include "src/objects-inl.h" | 16 #include "src/objects-inl.h" |
16 #include "src/parser.h" | 17 #include "src/parsing/parser.h" |
17 #include "src/rewriter.h" | 18 #include "src/parsing/rewriter.h" |
18 #include "src/scopes.h" | |
19 #include "test/cctest/cctest.h" | 19 #include "test/cctest/cctest.h" |
20 | 20 |
21 namespace v8 { | 21 namespace v8 { |
22 namespace internal { | 22 namespace internal { |
23 namespace compiler { | 23 namespace compiler { |
24 | 24 |
25 class FunctionTester : public InitializedHandleScope { | 25 class FunctionTester : public InitializedHandleScope { |
26 public: | 26 public: |
27 explicit FunctionTester(const char* source, uint32_t flags = 0) | 27 explicit FunctionTester(const char* source, uint32_t flags = 0) |
28 : isolate(main_isolate()), | 28 : isolate(main_isolate()), |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 CHECK(!code.is_null()); | 209 CHECK(!code.is_null()); |
210 function->ReplaceCode(*code); | 210 function->ReplaceCode(*code); |
211 return function; | 211 return function; |
212 } | 212 } |
213 }; | 213 }; |
214 } // namespace compiler | 214 } // namespace compiler |
215 } // namespace internal | 215 } // namespace internal |
216 } // namespace v8 | 216 } // namespace v8 |
217 | 217 |
218 #endif // V8_CCTEST_COMPILER_FUNCTION_TESTER_H_ | 218 #endif // V8_CCTEST_COMPILER_FUNCTION_TESTER_H_ |
OLD | NEW |