Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(895)

Side by Side Diff: test/cctest/expression-type-collector.cc

Issue 1481613002: Create ast/ and parsing/ subdirectories and move appropriate files (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « test/cctest/expression-type-collector.h ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « test/cctest/expression-type-collector.h ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698