Revision: 19480
Author: [email protected]
Date: Wed Feb 19 12:30:10 2014 UTC
Log: Fix cornercase in r19475
[email protected]
Review URL: https://codereview.chromium.org/169353003
http://code.google.com/p/v8/source/detail?r=19480
Modified:
/branches/bleeding_edge/src/hydrogen-bce.cc
=======================================
--- /branches/bleeding_edge/src/hydrogen-bce.cc Wed Feb 19 10:30:39 2014 UTC
+++ /branches/bleeding_edge/src/hydrogen-bce.cc Wed Feb 19 12:30:10 2014 UTC
@@ -216,7 +216,11 @@
void MoveIndexIfNecessary(HValue* index_raw,
HBoundsCheck* insert_before,
HInstruction* end_of_scan_range) {
- ASSERT(index_raw->IsAdd() || index_raw->IsSub());
+ if (!index_raw->IsAdd() && !index_raw->IsSub()) {
+ // index_raw can be HAdd(index_base, offset), HSub(index_base,
offset),
+ // or index_base directly. In the latter case, no need to move
anything.
+ return;
+ }
HArithmeticBinaryOperation* index =
HArithmeticBinaryOperation::cast(index_raw);
HValue* left_input = index->left();
--
--
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/groups/opt_out.