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

Unified Diff: runtime/vm/kernel.cc

Issue 2931773005: [kernel] Delete most of the AST (Closed)
Patch Set: Review Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/kernel.h ('k') | runtime/vm/kernel_binary.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/kernel.cc
diff --git a/runtime/vm/kernel.cc b/runtime/vm/kernel.cc
index 8367985738411cb016607599c388c877f02ea14b..47defed9f4d890be361e3ac342b9a30393a27991 100644
--- a/runtime/vm/kernel.cc
+++ b/runtime/vm/kernel.cc
@@ -10,336 +10,6 @@ namespace dart {
namespace kernel {
-Source::~Source() {
- delete[] uri_;
- delete[] source_code_;
- delete[] line_starts_;
-}
-
-
-SourceTable::~SourceTable() {
- delete[] sources_;
-}
-
-
-Node::~Node() {}
-
-
-TreeNode::~TreeNode() {}
-
-
-LinkedNode::~LinkedNode() {}
-
-
-Library::~Library() {}
-
-
-LibraryDependency::~LibraryDependency() {}
-
-
-Combinator::~Combinator() {}
-
-
-Typedef::~Typedef() {}
-
-
-Class::~Class() {}
-
-
-NormalClass::~NormalClass() {}
-
-
-Member::~Member() {}
-
-
-Field::~Field() {}
-
-
-Constructor::~Constructor() {}
-
-
-Procedure::~Procedure() {}
-
-
-Initializer::~Initializer() {}
-
-
-InvalidInitializer::~InvalidInitializer() {}
-
-
-FieldInitializer::~FieldInitializer() {}
-
-
-SuperInitializer::~SuperInitializer() {}
-
-
-RedirectingInitializer::~RedirectingInitializer() {}
-
-
-LocalInitializer::~LocalInitializer() {}
-
-
-FunctionNode::~FunctionNode() {}
-
-
-void FunctionNode::ReplaceBody(Statement* body) {
- delete body_;
- // Use static_cast to invoke the conversion function and so avoid triggering
- // ASSERT(pointer_ == NULL) in operator= when overwriting a non-NULL body.
- static_cast<Statement*&>(body_) = body;
-}
-
-
-Expression::~Expression() {}
-
-
-InvalidExpression::~InvalidExpression() {}
-
-
-VariableGet::~VariableGet() {}
-
-
-VariableSet::~VariableSet() {}
-
-
-PropertyGet::~PropertyGet() {}
-
-
-PropertySet::~PropertySet() {}
-
-
-DirectPropertyGet::~DirectPropertyGet() {}
-
-
-DirectPropertySet::~DirectPropertySet() {}
-
-
-StaticGet::~StaticGet() {}
-
-
-StaticSet::~StaticSet() {}
-
-
-Arguments::~Arguments() {}
-
-
-NamedExpression::~NamedExpression() {}
-
-
-MethodInvocation::~MethodInvocation() {}
-
-
-DirectMethodInvocation::~DirectMethodInvocation() {}
-
-
-StaticInvocation::~StaticInvocation() {}
-
-
-ConstructorInvocation::~ConstructorInvocation() {}
-
-
-Not::~Not() {}
-
-
-LogicalExpression::~LogicalExpression() {}
-
-
-ConditionalExpression::~ConditionalExpression() {}
-
-
-StringConcatenation::~StringConcatenation() {}
-
-
-IsExpression::~IsExpression() {}
-
-
-AsExpression::~AsExpression() {}
-
-
-BasicLiteral::~BasicLiteral() {}
-
-
-StringLiteral::~StringLiteral() {}
-
-
-BigintLiteral::~BigintLiteral() {}
-
-
-IntLiteral::~IntLiteral() {}
-
-
-DoubleLiteral::~DoubleLiteral() {}
-
-
-BoolLiteral::~BoolLiteral() {}
-
-
-NullLiteral::~NullLiteral() {}
-
-
-SymbolLiteral::~SymbolLiteral() {}
-
-
-TypeLiteral::~TypeLiteral() {}
-
-
-ThisExpression::~ThisExpression() {}
-
-
-Rethrow::~Rethrow() {}
-
-
-Throw::~Throw() {}
-
-
-ListLiteral::~ListLiteral() {}
-
-
-MapLiteral::~MapLiteral() {}
-
-
-MapEntry::~MapEntry() {}
-
-
-AwaitExpression::~AwaitExpression() {}
-
-
-FunctionExpression::~FunctionExpression() {}
-
-
-Let::~Let() {}
-
-
-VectorCreation::~VectorCreation() {}
-
-
-VectorGet::~VectorGet() {}
-
-
-VectorSet::~VectorSet() {}
-
-
-VectorCopy::~VectorCopy() {}
-
-
-ClosureCreation::~ClosureCreation() {}
-
-
-Statement::~Statement() {}
-
-
-InvalidStatement::~InvalidStatement() {}
-
-
-ExpressionStatement::~ExpressionStatement() {}
-
-
-Block::~Block() {}
-
-
-EmptyStatement::~EmptyStatement() {}
-
-
-AssertStatement::~AssertStatement() {}
-
-
-LabeledStatement::~LabeledStatement() {}
-
-
-BreakStatement::~BreakStatement() {}
-
-
-WhileStatement::~WhileStatement() {}
-
-
-DoStatement::~DoStatement() {}
-
-
-ForStatement::~ForStatement() {}
-
-
-ForInStatement::~ForInStatement() {}
-
-
-SwitchStatement::~SwitchStatement() {}
-
-
-SwitchCase::~SwitchCase() {}
-
-
-ContinueSwitchStatement::~ContinueSwitchStatement() {}
-
-
-IfStatement::~IfStatement() {}
-
-
-ReturnStatement::~ReturnStatement() {}
-
-
-TryCatch::~TryCatch() {}
-
-
-Catch::~Catch() {}
-
-
-TryFinally::~TryFinally() {}
-
-
-YieldStatement::~YieldStatement() {}
-
-
-VariableDeclaration::~VariableDeclaration() {}
-
-
-FunctionDeclaration::~FunctionDeclaration() {}
-
-
-Name::~Name() {}
-
-
-DartType::~DartType() {}
-
-
-InvalidType::~InvalidType() {}
-
-
-DynamicType::~DynamicType() {}
-
-
-VoidType::~VoidType() {}
-
-
-BottomType::~BottomType() {}
-
-
-InterfaceType::~InterfaceType() {}
-
-
-TypedefType::~TypedefType() {}
-
-
-FunctionType::~FunctionType() {}
-
-
-TypeParameterType::~TypeParameterType() {}
-
-
-VectorType::~VectorType() {}
-
-
-TypeParameter::~TypeParameter() {}
-
-
-Program::~Program() {
- while (valid_token_positions.length() > 0) {
- delete valid_token_positions.RemoveLast();
- }
- while (yield_token_positions.length() > 0) {
- delete yield_token_positions.RemoveLast();
- }
-}
-
-
} // namespace kernel
} // namespace dart
« 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