Commit 0bc5bf3a authored by vogelheim's avatar vogelheim Committed by Commit bot

Remove TypingResetter.

This code was used exclusively by its own unit test and can be safely removed.

BUG=v8:4947
LOG=N

Review-Url: https://codereview.chromium.org/1965373002
Cr-Commit-Position: refs/heads/master@{#36180}
parent 73ee7943
......@@ -1445,8 +1445,6 @@ v8_source_set("v8_base") {
"src/types.h",
"src/typing-asm.cc",
"src/typing-asm.h",
"src/typing-reset.cc",
"src/typing-reset.h",
"src/unicode-cache-inl.h",
"src/unicode-cache.h",
"src/unicode-decoder.cc",
......
// 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/ast.h"
#include "src/ast/scopes.h"
#include "src/codegen.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
// 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.
#ifndef V8_TYPING_RESET_H_
#define V8_TYPING_RESET_H_
#include "src/ast/ast-expression-visitor.h"
namespace v8 {
namespace internal {
// A Visitor over a CompilationInfo's AST that resets
// typing bounds back to their default.
class TypingReseter : public AstExpressionVisitor {
public:
TypingReseter(Isolate* isolate, FunctionLiteral* root);
protected:
void VisitExpression(Expression* expression) override;
};
} // namespace internal
} // namespace v8
#endif // V8_TYPING_RESET_H_
......@@ -1115,8 +1115,6 @@
'types.h',
'typing-asm.cc',
'typing-asm.h',
'typing-reset.cc',
'typing-reset.h',
'unicode-inl.h',
'unicode.cc',
'unicode.h',
......
......@@ -176,7 +176,6 @@
'test-transitions.cc',
'test-typedarrays.cc',
'test-types.cc',
'test-typing-reset.cc',
'test-unbound-queue.cc',
'test-unboxed-doubles.cc',
'test-unique.cc',
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment