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

Unified Diff: src/compiler/linkage.h

Issue 456333002: Move MachineRepresentation to machine-type.h and rename to MachineType in preparation for merging i… (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/instruction-selector.cc ('k') | src/compiler/linkage.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/linkage.h
diff --git a/src/compiler/linkage.h b/src/compiler/linkage.h
index 7b19303fb04e51a3865f47404f94ff7d142e7715..9fe02183ec4bdc8448415e2793f75d3d9c56652b 100644
--- a/src/compiler/linkage.h
+++ b/src/compiler/linkage.h
@@ -22,17 +22,17 @@ namespace compiler {
// TODO(titzer): replace with Radium locations when they are ready.
class LinkageLocation {
public:
- LinkageLocation(MachineRepresentation rep, int location)
+ LinkageLocation(MachineType rep, int location)
: rep_(rep), location_(location) {}
- inline MachineRepresentation representation() const { return rep_; }
+ inline MachineType representation() const { return rep_; }
static const int16_t ANY_REGISTER = 32767;
private:
friend class CallDescriptor;
friend class OperandGenerator;
- MachineRepresentation rep_;
+ MachineType rep_;
int16_t location_; // >= 0 implies register, otherwise stack slot.
};
@@ -160,8 +160,8 @@ class Linkage : public ZoneObject {
// integers and pointers of one word size each, i.e. no floating point,
// structs, pointers to members, etc.
static CallDescriptor* GetSimplifiedCDescriptor(
- Zone* zone, int num_params, MachineRepresentation return_type,
- const MachineRepresentation* param_types);
+ Zone* zone, int num_params, MachineType return_type,
+ const MachineType* param_types);
// Get the location of an (incoming) parameter to this function.
LinkageLocation GetParameterLocation(int index) {
« no previous file with comments | « src/compiler/instruction-selector.cc ('k') | src/compiler/linkage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698