typing-reset.cc 609 Bytes
Newer Older
1 2 3 4 5 6 7 8
// 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"

9 10
#include "src/ast/ast.h"
#include "src/ast/scopes.h"
11 12 13 14 15 16
#include "src/codegen.h"

namespace v8 {
namespace internal {


17 18
TypingReseter::TypingReseter(Isolate* isolate, FunctionLiteral* root)
    : AstExpressionVisitor(isolate, root) {}
19 20 21


void TypingReseter::VisitExpression(Expression* expression) {
22
  expression->set_bounds(Bounds::Unbounded());
23
}
24 25
}  // namespace internal
}  // namespace v8