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

Unified Diff: src/compiler/operator.h

Issue 547233003: [turbofan] Machine operators are globally shared singletons. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Next windows fix. 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
« no previous file with comments | « src/compiler/machine-type.h ('k') | src/compiler/pipeline.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/operator.h
diff --git a/src/compiler/operator.h b/src/compiler/operator.h
index 395cac8fd4d5b0ed9f83a08c76d5393d5324030b..8d17bc4d4d903e60925d6bfde6e7db5c57aadb07 100644
--- a/src/compiler/operator.h
+++ b/src/compiler/operator.h
@@ -110,21 +110,21 @@ OStream& operator<<(OStream& os, const Operator& op);
// An implementation of Operator that has no static parameters. Such operators
// have just a name, an opcode, and a fixed number of inputs and outputs.
// They can represented by singletons and shared globally.
-class SimpleOperator FINAL : public Operator {
+class SimpleOperator : public Operator {
public:
SimpleOperator(Opcode opcode, Properties properties, int input_count,
int output_count, const char* mnemonic);
~SimpleOperator();
- virtual bool Equals(const Operator* that) const OVERRIDE {
+ virtual bool Equals(const Operator* that) const FINAL {
return opcode() == that->opcode();
}
- virtual int HashCode() const OVERRIDE { return opcode(); }
- virtual int InputCount() const OVERRIDE { return input_count_; }
- virtual int OutputCount() const OVERRIDE { return output_count_; }
+ virtual int HashCode() const FINAL { return opcode(); }
+ virtual int InputCount() const FINAL { return input_count_; }
+ virtual int OutputCount() const FINAL { return output_count_; }
private:
- virtual OStream& PrintTo(OStream& os) const OVERRIDE { // NOLINT
+ virtual OStream& PrintTo(OStream& os) const FINAL { // NOLINT
return os << mnemonic();
}
@@ -260,9 +260,6 @@ class Operator1 : public Operator {
T parameter_;
};
-// Type definitions for operators with specific types of parameters.
-typedef Operator1<Unique<Name> > NameOperator;
-
// Helper to extract parameters from Operator1<*> operator.
template <typename T>
« no previous file with comments | « src/compiler/machine-type.h ('k') | src/compiler/pipeline.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698