Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "src/v8.h" | |
| 6 | |
| 7 #include "src/typing-reset.h" | |
| 8 | |
| 9 #include "src/ast.h" | |
| 10 #include "src/codegen.h" | |
| 11 #include "src/scopes.h" | |
| 12 | |
| 13 namespace v8 { | |
| 14 namespace internal { | |
| 15 | |
| 16 | |
| 17 TypingReseter::TypingReseter(CompilationInfo* info) | |
| 18 : AstExpressionVisitor(info), info_(info) {} | |
| 19 | |
| 20 | |
| 21 void TypingReseter::Run(CompilationInfo* info) { | |
| 22 TypingReseter* visitor = new (info->zone()) TypingReseter(info); | |
|
rossberg
2015/08/20 16:34:26
No need to heap-allocate the visitor, AFAICT.
bradn
2015/08/20 21:35:47
Ok, changed round.
By the way, a terminology ques
rossberg
2015/08/21 12:36:51
I was just being sloppy. Meant heap-allocated as o
| |
| 23 visitor->VisitAll(); | |
| 24 } | |
| 25 | |
| 26 | |
| 27 void TypingReseter::VisitExpression(Expression* expression) { | |
| 28 expression->set_bounds(Bounds::Unbounded(info_->zone())); | |
| 29 } | |
| 30 } | |
| 31 } // namespace v8::internal | |
| OLD | NEW |