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

Side by Side Diff: runtime/vm/kernel.cc

Issue 2931773005: [kernel] Delete most of the AST (Closed)
Patch Set: Review Created 3 years, 5 months 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 | « runtime/vm/kernel.h ('k') | runtime/vm/kernel_binary.h » ('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 (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/kernel.h" 5 #include "vm/kernel.h"
6 6
7 #if !defined(DART_PRECOMPILED_RUNTIME) 7 #if !defined(DART_PRECOMPILED_RUNTIME)
8 namespace dart { 8 namespace dart {
9 9
10 namespace kernel { 10 namespace kernel {
11 11
12 12
13 Source::~Source() {
14 delete[] uri_;
15 delete[] source_code_;
16 delete[] line_starts_;
17 }
18
19
20 SourceTable::~SourceTable() {
21 delete[] sources_;
22 }
23
24
25 Node::~Node() {}
26
27
28 TreeNode::~TreeNode() {}
29
30
31 LinkedNode::~LinkedNode() {}
32
33
34 Library::~Library() {}
35
36
37 LibraryDependency::~LibraryDependency() {}
38
39
40 Combinator::~Combinator() {}
41
42
43 Typedef::~Typedef() {}
44
45
46 Class::~Class() {}
47
48
49 NormalClass::~NormalClass() {}
50
51
52 Member::~Member() {}
53
54
55 Field::~Field() {}
56
57
58 Constructor::~Constructor() {}
59
60
61 Procedure::~Procedure() {}
62
63
64 Initializer::~Initializer() {}
65
66
67 InvalidInitializer::~InvalidInitializer() {}
68
69
70 FieldInitializer::~FieldInitializer() {}
71
72
73 SuperInitializer::~SuperInitializer() {}
74
75
76 RedirectingInitializer::~RedirectingInitializer() {}
77
78
79 LocalInitializer::~LocalInitializer() {}
80
81
82 FunctionNode::~FunctionNode() {}
83
84
85 void FunctionNode::ReplaceBody(Statement* body) {
86 delete body_;
87 // Use static_cast to invoke the conversion function and so avoid triggering
88 // ASSERT(pointer_ == NULL) in operator= when overwriting a non-NULL body.
89 static_cast<Statement*&>(body_) = body;
90 }
91
92
93 Expression::~Expression() {}
94
95
96 InvalidExpression::~InvalidExpression() {}
97
98
99 VariableGet::~VariableGet() {}
100
101
102 VariableSet::~VariableSet() {}
103
104
105 PropertyGet::~PropertyGet() {}
106
107
108 PropertySet::~PropertySet() {}
109
110
111 DirectPropertyGet::~DirectPropertyGet() {}
112
113
114 DirectPropertySet::~DirectPropertySet() {}
115
116
117 StaticGet::~StaticGet() {}
118
119
120 StaticSet::~StaticSet() {}
121
122
123 Arguments::~Arguments() {}
124
125
126 NamedExpression::~NamedExpression() {}
127
128
129 MethodInvocation::~MethodInvocation() {}
130
131
132 DirectMethodInvocation::~DirectMethodInvocation() {}
133
134
135 StaticInvocation::~StaticInvocation() {}
136
137
138 ConstructorInvocation::~ConstructorInvocation() {}
139
140
141 Not::~Not() {}
142
143
144 LogicalExpression::~LogicalExpression() {}
145
146
147 ConditionalExpression::~ConditionalExpression() {}
148
149
150 StringConcatenation::~StringConcatenation() {}
151
152
153 IsExpression::~IsExpression() {}
154
155
156 AsExpression::~AsExpression() {}
157
158
159 BasicLiteral::~BasicLiteral() {}
160
161
162 StringLiteral::~StringLiteral() {}
163
164
165 BigintLiteral::~BigintLiteral() {}
166
167
168 IntLiteral::~IntLiteral() {}
169
170
171 DoubleLiteral::~DoubleLiteral() {}
172
173
174 BoolLiteral::~BoolLiteral() {}
175
176
177 NullLiteral::~NullLiteral() {}
178
179
180 SymbolLiteral::~SymbolLiteral() {}
181
182
183 TypeLiteral::~TypeLiteral() {}
184
185
186 ThisExpression::~ThisExpression() {}
187
188
189 Rethrow::~Rethrow() {}
190
191
192 Throw::~Throw() {}
193
194
195 ListLiteral::~ListLiteral() {}
196
197
198 MapLiteral::~MapLiteral() {}
199
200
201 MapEntry::~MapEntry() {}
202
203
204 AwaitExpression::~AwaitExpression() {}
205
206
207 FunctionExpression::~FunctionExpression() {}
208
209
210 Let::~Let() {}
211
212
213 VectorCreation::~VectorCreation() {}
214
215
216 VectorGet::~VectorGet() {}
217
218
219 VectorSet::~VectorSet() {}
220
221
222 VectorCopy::~VectorCopy() {}
223
224
225 ClosureCreation::~ClosureCreation() {}
226
227
228 Statement::~Statement() {}
229
230
231 InvalidStatement::~InvalidStatement() {}
232
233
234 ExpressionStatement::~ExpressionStatement() {}
235
236
237 Block::~Block() {}
238
239
240 EmptyStatement::~EmptyStatement() {}
241
242
243 AssertStatement::~AssertStatement() {}
244
245
246 LabeledStatement::~LabeledStatement() {}
247
248
249 BreakStatement::~BreakStatement() {}
250
251
252 WhileStatement::~WhileStatement() {}
253
254
255 DoStatement::~DoStatement() {}
256
257
258 ForStatement::~ForStatement() {}
259
260
261 ForInStatement::~ForInStatement() {}
262
263
264 SwitchStatement::~SwitchStatement() {}
265
266
267 SwitchCase::~SwitchCase() {}
268
269
270 ContinueSwitchStatement::~ContinueSwitchStatement() {}
271
272
273 IfStatement::~IfStatement() {}
274
275
276 ReturnStatement::~ReturnStatement() {}
277
278
279 TryCatch::~TryCatch() {}
280
281
282 Catch::~Catch() {}
283
284
285 TryFinally::~TryFinally() {}
286
287
288 YieldStatement::~YieldStatement() {}
289
290
291 VariableDeclaration::~VariableDeclaration() {}
292
293
294 FunctionDeclaration::~FunctionDeclaration() {}
295
296
297 Name::~Name() {}
298
299
300 DartType::~DartType() {}
301
302
303 InvalidType::~InvalidType() {}
304
305
306 DynamicType::~DynamicType() {}
307
308
309 VoidType::~VoidType() {}
310
311
312 BottomType::~BottomType() {}
313
314
315 InterfaceType::~InterfaceType() {}
316
317
318 TypedefType::~TypedefType() {}
319
320
321 FunctionType::~FunctionType() {}
322
323
324 TypeParameterType::~TypeParameterType() {}
325
326
327 VectorType::~VectorType() {}
328
329
330 TypeParameter::~TypeParameter() {}
331
332
333 Program::~Program() {
334 while (valid_token_positions.length() > 0) {
335 delete valid_token_positions.RemoveLast();
336 }
337 while (yield_token_positions.length() > 0) {
338 delete yield_token_positions.RemoveLast();
339 }
340 }
341
342
343 } // namespace kernel 13 } // namespace kernel
344 14
345 } // namespace dart 15 } // namespace dart
346 #endif // !defined(DART_PRECOMPILED_RUNTIME) 16 #endif // !defined(DART_PRECOMPILED_RUNTIME)
OLDNEW
« no previous file with comments | « runtime/vm/kernel.h ('k') | runtime/vm/kernel_binary.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698