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); |
| 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 |