v8/src/typing-reset.cc
adamk 4937cc9457 Remove unused Zone argument from InitializeAstVisitor
This adds a bit of boilerplate to some AstVisitors (they now have to
declare their own zone_ member and zone() accessor), but makes it clearer
what DEFINE_AST_VISITOR_SUBCLASS_MEMBERS is for: stack limit checking.

Review URL: https://codereview.chromium.org/1394303008

Cr-Commit-Position: refs/heads/master@{#31287}
2015-10-15 10:34:28 +00:00

26 lines
601 B
C++

// 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 {
TypingReseter::TypingReseter(Isolate* isolate, FunctionLiteral* root)
: AstExpressionVisitor(isolate, root) {}
void TypingReseter::VisitExpression(Expression* expression) {
expression->set_bounds(Bounds::Unbounded());
}
} // namespace internal
} // namespace v8