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

Unified Diff: src/compiler/machine-operator.h

Issue 470593002: Unify MachineType and RepType. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 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/linkage-impl.h ('k') | src/compiler/machine-type.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/machine-operator.h
diff --git a/src/compiler/machine-operator.h b/src/compiler/machine-operator.h
index 25bbf2955bab792dd56d040cd62036f063ea8b42..219831c0cfedd92986ed4c4d8dd84cf4f3ee5b17 100644
--- a/src/compiler/machine-operator.h
+++ b/src/compiler/machine-operator.h
@@ -21,7 +21,7 @@ enum WriteBarrierKind { kNoWriteBarrier, kFullWriteBarrier };
// A Store needs a MachineType and a WriteBarrierKind
// in order to emit the correct write barrier.
struct StoreRepresentation {
- MachineType rep;
+ MachineType machine_type;
WriteBarrierKind write_barrier_kind;
};
@@ -33,7 +33,7 @@ class MachineOperatorBuilder {
public:
explicit MachineOperatorBuilder(Zone* zone, MachineType word = pointer_rep())
: zone_(zone), word_(word) {
- CHECK(word == kMachineWord32 || word == kMachineWord64);
+ CHECK(word == kRepWord32 || word == kRepWord64);
}
#define SIMPLE(name, properties, inputs, outputs) \
@@ -146,12 +146,12 @@ class MachineOperatorBuilder {
Operator* Float64LessThan() { BINOP(Float64LessThan); }
Operator* Float64LessThanOrEqual() { BINOP(Float64LessThanOrEqual); }
- inline bool is32() const { return word_ == kMachineWord32; }
- inline bool is64() const { return word_ == kMachineWord64; }
+ inline bool is32() const { return word_ == kRepWord32; }
+ inline bool is64() const { return word_ == kRepWord64; }
inline MachineType word() const { return word_; }
static inline MachineType pointer_rep() {
- return kPointerSize == 8 ? kMachineWord64 : kMachineWord32;
+ return kPointerSize == 8 ? kRepWord64 : kRepWord32;
}
#undef WORD_SIZE
« no previous file with comments | « src/compiler/linkage-impl.h ('k') | src/compiler/machine-type.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698