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

Unified Diff: src/compiler/representation-change.h

Issue 555283004: [turbofan] Next step towards shared operators. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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/raw-machine-assembler.cc ('k') | src/compiler/simplified-lowering.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/representation-change.h
diff --git a/src/compiler/representation-change.h b/src/compiler/representation-change.h
index ffc854131b05f2ce5f817dd0bda641deb63ee6a8..98bcbbfb9211bb69b4c81d5730234bf6106018b1 100644
--- a/src/compiler/representation-change.h
+++ b/src/compiler/representation-change.h
@@ -91,7 +91,7 @@ class RepresentationChanger {
break;
}
// Select the correct X -> Tagged operator.
- Operator* op;
+ const Operator* op;
if (output_type & kRepBit) {
op = simplified()->ChangeBitToBool();
} else if (output_type & rWord) {
@@ -129,7 +129,7 @@ class RepresentationChanger {
break;
}
// Select the correct X -> Float64 operator.
- Operator* op;
+ const Operator* op;
if (output_type & kRepBit) {
return TypeError(node, output_type, kRepFloat64);
} else if (output_type & rWord) {
@@ -169,7 +169,7 @@ class RepresentationChanger {
break;
}
// Select the correct X -> Word32 operator.
- Operator* op = NULL;
+ const Operator* op = NULL;
if (output_type & kRepFloat64) {
if (output_type & kTypeUint32 || use_unsigned) {
op = machine()->ChangeFloat64ToUint32();
@@ -207,7 +207,7 @@ class RepresentationChanger {
break;
}
// Select the correct X -> Bit operator.
- Operator* op;
+ const Operator* op;
if (output_type & rWord) {
return node; // No change necessary.
} else if (output_type & kRepWord64) {
@@ -228,7 +228,7 @@ class RepresentationChanger {
return TypeError(node, output_type, kRepWord64);
}
- Operator* Int32OperatorFor(IrOpcode::Value opcode) {
+ const Operator* Int32OperatorFor(IrOpcode::Value opcode) {
switch (opcode) {
case IrOpcode::kNumberAdd:
return machine()->Int32Add();
@@ -246,7 +246,7 @@ class RepresentationChanger {
}
}
- Operator* Uint32OperatorFor(IrOpcode::Value opcode) {
+ const Operator* Uint32OperatorFor(IrOpcode::Value opcode) {
switch (opcode) {
case IrOpcode::kNumberAdd:
return machine()->Int32Add();
@@ -264,7 +264,7 @@ class RepresentationChanger {
}
}
- Operator* Float64OperatorFor(IrOpcode::Value opcode) {
+ const Operator* Float64OperatorFor(IrOpcode::Value opcode) {
switch (opcode) {
case IrOpcode::kNumberAdd:
return machine()->Float64Add();
« no previous file with comments | « src/compiler/raw-machine-assembler.cc ('k') | src/compiler/simplified-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698