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 // TODO(jochen): Remove this after the setting is turned on globally. | 5 // TODO(jochen): Remove this after the setting is turned on globally. |
6 #define V8_IMMINENT_DEPRECATION_WARNINGS | 6 #define V8_IMMINENT_DEPRECATION_WARNINGS |
7 | 7 |
8 #include "src/v8.h" | 8 #include "src/v8.h" |
9 | 9 |
10 #include "test/cctest/expression-type-collector.h" | 10 #include "test/cctest/expression-type-collector.h" |
11 | 11 |
12 #include "src/ast.h" | 12 #include "src/ast/ast.h" |
| 13 #include "src/ast/scopes.h" |
13 #include "src/codegen.h" | 14 #include "src/codegen.h" |
14 #include "src/scopes.h" | |
15 | 15 |
16 namespace v8 { | 16 namespace v8 { |
17 namespace internal { | 17 namespace internal { |
18 namespace { | 18 namespace { |
19 | 19 |
20 struct { | 20 struct { |
21 AstNode::NodeType type; | 21 AstNode::NodeType type; |
22 const char* name; | 22 const char* name; |
23 } NodeTypeNameList[] = { | 23 } NodeTypeNameList[] = { |
24 #define DECLARE_VISIT(type) \ | 24 #define DECLARE_VISIT(type) \ |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 if (NodeTypeNameList[i].type == type) { | 57 if (NodeTypeNameList[i].type == type) { |
58 e.kind = NodeTypeNameList[i].name; | 58 e.kind = NodeTypeNameList[i].name; |
59 break; | 59 break; |
60 } | 60 } |
61 } | 61 } |
62 result_->push_back(e); | 62 result_->push_back(e); |
63 } | 63 } |
64 | 64 |
65 } // namespace internal | 65 } // namespace internal |
66 } // namespace v8 | 66 } // namespace v8 |
OLD | NEW |