Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(439)

Unified Diff: test/cctest/expression-type-collector.cc

Issue 2146853004: [wasm] Drop old typing-asm and its tests. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/cctest/expression-type-collector.h ('k') | test/cctest/test-ast-expression-visitor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/expression-type-collector.cc
diff --git a/test/cctest/expression-type-collector.cc b/test/cctest/expression-type-collector.cc
deleted file mode 100644
index f1289a77653ba74250371f78f36e7833028b0892..0000000000000000000000000000000000000000
--- a/test/cctest/expression-type-collector.cc
+++ /dev/null
@@ -1,62 +0,0 @@
-// 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 "test/cctest/expression-type-collector.h"
-
-#include "src/ast/ast-type-bounds.h"
-#include "src/ast/ast.h"
-#include "src/ast/scopes.h"
-#include "src/codegen.h"
-
-namespace v8 {
-namespace internal {
-namespace {
-
-struct {
- AstNode::NodeType type;
- const char* name;
-} NodeTypeNameList[] = {
-#define DECLARE_VISIT(type) \
- { AstNode::k##type, #type } \
- ,
- AST_NODE_LIST(DECLARE_VISIT)
-#undef DECLARE_VISIT
-};
-
-} // namespace
-
-ExpressionTypeCollector::ExpressionTypeCollector(
- Isolate* isolate, FunctionLiteral* root, const AstTypeBounds* bounds,
- ZoneVector<ExpressionTypeEntry>* dst)
- : AstExpressionVisitor(isolate, root), bounds_(bounds), result_(dst) {}
-
-void ExpressionTypeCollector::Run() {
- result_->clear();
- AstExpressionVisitor::Run();
-}
-
-
-void ExpressionTypeCollector::VisitExpression(Expression* expression) {
- ExpressionTypeEntry e;
- e.depth = depth();
- VariableProxy* proxy = expression->AsVariableProxy();
- if (proxy) {
- e.name = proxy->raw_name();
- }
- e.bounds = bounds_->get(expression);
- AstNode::NodeType type = expression->node_type();
- e.kind = "unknown";
- for (size_t i = 0; i < arraysize(NodeTypeNameList); ++i) {
- if (NodeTypeNameList[i].type == type) {
- e.kind = NodeTypeNameList[i].name;
- break;
- }
- }
- result_->push_back(e);
-}
-
-} // namespace internal
-} // namespace v8
« no previous file with comments | « test/cctest/expression-type-collector.h ('k') | test/cctest/test-ast-expression-visitor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698