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

Unified Diff: test/cctest/compiler/graph-builder-tester.cc

Issue 1109853003: [test] Remove pesky MachineCallHelper from inheritance chain. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Cleanup. Created 5 years, 8 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/compiler/graph-builder-tester.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/compiler/graph-builder-tester.cc
diff --git a/test/cctest/compiler/graph-builder-tester.cc b/test/cctest/compiler/graph-builder-tester.cc
deleted file mode 100644
index 38bc6337111b7edfab14f4b631a031c6b7524a3e..0000000000000000000000000000000000000000
--- a/test/cctest/compiler/graph-builder-tester.cc
+++ /dev/null
@@ -1,56 +0,0 @@
-// Copyright 2014 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 "test/cctest/compiler/graph-builder-tester.h"
-
-#include "src/compiler/linkage.h"
-#include "src/compiler/pipeline.h"
-
-namespace v8 {
-namespace internal {
-namespace compiler {
-
-MachineCallHelper::MachineCallHelper(Isolate* isolate,
- MachineSignature* machine_sig)
- : CallHelper(isolate, machine_sig),
- parameters_(NULL),
- isolate_(isolate),
- graph_(NULL) {}
-
-
-void MachineCallHelper::InitParameters(GraphBuilder* builder,
- CommonOperatorBuilder* common) {
- DCHECK(!parameters_);
- graph_ = builder->graph();
- int param_count = static_cast<int>(parameter_count());
- if (param_count == 0) return;
- parameters_ = graph_->zone()->NewArray<Node*>(param_count);
- for (int i = 0; i < param_count; ++i) {
- parameters_[i] = builder->NewNode(common->Parameter(i), graph_->start());
- }
-}
-
-
-byte* MachineCallHelper::Generate() {
- DCHECK(parameter_count() == 0 || parameters_ != NULL);
- if (!Pipeline::SupportedBackend()) return NULL;
- if (code_.is_null()) {
- Zone* zone = graph_->zone();
- CallDescriptor* desc =
- Linkage::GetSimplifiedCDescriptor(zone, machine_sig_);
- code_ = Pipeline::GenerateCodeForTesting(isolate_, desc, graph_);
- }
- return code_.ToHandleChecked()->entry();
-}
-
-
-Node* MachineCallHelper::Parameter(size_t index) {
- DCHECK(parameters_);
- DCHECK(index < parameter_count());
- return parameters_[index];
-}
-
-} // namespace compiler
-} // namespace internal
-} // namespace v8
« no previous file with comments | « test/cctest/compiler/graph-builder-tester.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698