2015-08-24 17:16:38 +00:00
|
|
|
// Copyright 2015 the V8 project authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
|
|
// found in the LICENSE file.
|
|
|
|
|
|
|
|
#include "src/v8.h"
|
|
|
|
|
|
|
|
#include "src/typing-reset.h"
|
|
|
|
|
|
|
|
#include "src/ast.h"
|
|
|
|
#include "src/codegen.h"
|
|
|
|
#include "src/scopes.h"
|
|
|
|
|
|
|
|
namespace v8 {
|
|
|
|
namespace internal {
|
|
|
|
|
|
|
|
|
2015-10-15 10:34:10 +00:00
|
|
|
TypingReseter::TypingReseter(Isolate* isolate, FunctionLiteral* root)
|
|
|
|
: AstExpressionVisitor(isolate, root) {}
|
2015-08-24 17:16:38 +00:00
|
|
|
|
|
|
|
|
|
|
|
void TypingReseter::VisitExpression(Expression* expression) {
|
2015-08-31 17:36:54 +00:00
|
|
|
expression->set_bounds(Bounds::Unbounded());
|
2015-08-24 17:16:38 +00:00
|
|
|
}
|
2015-09-30 13:46:56 +00:00
|
|
|
} // namespace internal
|
|
|
|
} // namespace v8
|