Revision: 24171
Author: [email protected]
Date: Wed Sep 24 08:49:32 2014 UTC
Log: Translate NumberDivide/NumberModulus operators to Int32Div,
Int32Mod in representation-change.h.
[email protected]
BUG=
Review URL: https://codereview.chromium.org/597083002
https://code.google.com/p/v8/source/detail?r=24171
Modified:
/branches/bleeding_edge/src/compiler/change-lowering.h
/branches/bleeding_edge/src/compiler/machine-operator-reducer.cc
/branches/bleeding_edge/src/compiler/representation-change.h
/branches/bleeding_edge/src/globals.h
=======================================
--- /branches/bleeding_edge/src/compiler/change-lowering.h Tue Sep 16
16:20:10 2014 UTC
+++ /branches/bleeding_edge/src/compiler/change-lowering.h Wed Sep 24
08:49:32 2014 UTC
@@ -26,8 +26,6 @@
virtual Reduction Reduce(Node* node) OVERRIDE;
private:
- enum Signedness { kSigned, kUnsigned };
-
Node* HeapNumberValueIndexConstant();
Node* SmiMaxValueConstant();
Node* SmiShiftBitsConstant();
=======================================
--- /branches/bleeding_edge/src/compiler/machine-operator-reducer.cc Mon
Sep 22 11:42:10 2014 UTC
+++ /branches/bleeding_edge/src/compiler/machine-operator-reducer.cc Wed
Sep 24 08:49:32 2014 UTC
@@ -443,7 +443,6 @@
if (m.IsChangeFloat32ToFloat64()) return
Replace(m.node()->InputAt(0));
break;
}
- // TODO(turbofan): strength-reduce and fold floating point operations.
default:
break;
}
=======================================
--- /branches/bleeding_edge/src/compiler/representation-change.h Fri Sep 19
09:56:12 2014 UTC
+++ /branches/bleeding_edge/src/compiler/representation-change.h Wed Sep 24
08:49:32 2014 UTC
@@ -235,6 +235,12 @@
return machine()->Int32Add();
case IrOpcode::kNumberSubtract:
return machine()->Int32Sub();
+ case IrOpcode::kNumberMultiply:
+ return machine()->Int32Mul();
+ case IrOpcode::kNumberDivide:
+ return machine()->Int32Div();
+ case IrOpcode::kNumberModulus:
+ return machine()->Int32Mod();
case IrOpcode::kNumberEqual:
return machine()->Word32Equal();
case IrOpcode::kNumberLessThan:
@@ -253,6 +259,12 @@
return machine()->Int32Add();
case IrOpcode::kNumberSubtract:
return machine()->Int32Sub();
+ case IrOpcode::kNumberMultiply:
+ return machine()->Int32Mul();
+ case IrOpcode::kNumberDivide:
+ return machine()->Int32UDiv();
+ case IrOpcode::kNumberModulus:
+ return machine()->Int32UMod();
case IrOpcode::kNumberEqual:
return machine()->Word32Equal();
case IrOpcode::kNumberLessThan:
=======================================
--- /branches/bleeding_edge/src/globals.h Fri Sep 19 11:26:36 2014 UTC
+++ /branches/bleeding_edge/src/globals.h Wed Sep 24 08:49:32 2014 UTC
@@ -769,6 +769,9 @@
};
+enum Signedness { kSigned, kUnsigned };
+
+
enum FunctionKind {
kNormalFunction = 0,
kArrowFunction = 1,
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.