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

Unified Diff: src/compiler/operator.cc

Issue 565753004: [turbofan] Some common operators are globally shared singletons. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fixes2 Created 6 years, 3 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
Index: src/compiler/operator.cc
diff --git a/src/compiler/operator.cc b/src/compiler/operator.cc
index f37f3aacdaabbce077f8e54c72134603836d990e..35f9c889be314d3f94f91ea5b9186bacacb9d8ff 100644
--- a/src/compiler/operator.cc
+++ b/src/compiler/operator.cc
@@ -4,8 +4,6 @@
#include "src/compiler/operator.h"
-#include "src/assembler.h"
-
namespace v8 {
namespace internal {
namespace compiler {
@@ -23,34 +21,6 @@ SimpleOperator::SimpleOperator(Opcode opcode, Properties properties,
SimpleOperator::~SimpleOperator() {}
-
-// static
-OStream& StaticParameterTraits<ExternalReference>::PrintTo(
- OStream& os, ExternalReference reference) {
- os << reference.address();
- // TODO(bmeurer): Move to operator<<(os, ExternalReference)
- const Runtime::Function* function =
- Runtime::FunctionForEntry(reference.address());
- if (function) {
- os << " <" << function->name << ".entry>";
- }
- return os;
-}
-
-
-// static
-int StaticParameterTraits<ExternalReference>::HashCode(
- ExternalReference reference) {
- return reinterpret_cast<intptr_t>(reference.address()) & 0xFFFFFFFF;
-}
-
-
-// static
-bool StaticParameterTraits<ExternalReference>::Equals(ExternalReference lhs,
- ExternalReference rhs) {
- return lhs == rhs;
-}
-
} // namespace compiler
} // namespace internal
} // namespace v8

Powered by Google App Engine
This is Rietveld 408576698