Revision: 24956
Author: [email protected]
Date: Tue Oct 28 16:54:35 2014 UTC
Log: MIPS: [turbofan] Complete support for integer division/modulus in
simplified lowering.
Port r24942 (c5055ce)
Original commit message:
Also add backend flags that tell whether integer division/modulus is
generally safe, i.e. does not trap on overflow or divide by zero.
TEST=unittests
BUG=
[email protected]
Review URL: https://codereview.chromium.org/679393003
https://code.google.com/p/v8/source/detail?r=24956
Modified:
/branches/bleeding_edge/src/compiler/mips/instruction-selector-mips.cc
=======================================
--- /branches/bleeding_edge/src/compiler/mips/instruction-selector-mips.cc
Fri Oct 24 13:06:48 2014 UTC
+++ /branches/bleeding_edge/src/compiler/mips/instruction-selector-mips.cc
Tue Oct 28 16:54:35 2014 UTC
@@ -651,8 +651,12 @@
// static
MachineOperatorBuilder::Flags
InstructionSelector::SupportedMachineOperatorFlags() {
- return MachineOperatorBuilder::Flag::kNoFlags;
+ return MachineOperatorBuilder::kInt32DivIsSafe |
+ MachineOperatorBuilder::kInt32ModIsSafe |
+ MachineOperatorBuilder::kUint32DivIsSafe |
+ MachineOperatorBuilder::kUint32ModIsSafe;
}
+
} // namespace compiler
} // namespace internal
} // namespace v8
--
--
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.