Chromium Code Reviews| Index: src/hydrogen.cc |
| diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
| index 8e9fe00034964da47b342582dec75cea8cedc16a..ff363e461569983d1791ddc5ab9112f5620a5f3b 100644 |
| --- a/src/hydrogen.cc |
| +++ b/src/hydrogen.cc |
| @@ -3567,7 +3567,8 @@ class BoundsCheckBbData: public ZoneObject { |
| HConstant(new_offset, Representation::Integer32()); |
| if (*add == NULL) { |
| new_constant->InsertBefore(check); |
| - *add = new(BasicBlock()->zone()) HAdd(NULL, |
| + HValue* context = HBinaryOperation::cast(check->index())->context(); |
|
Jakob Kummerow
2012/10/09 13:49:22
I'd appreciate a comment here why check->index() i
|
| + *add = new(BasicBlock()->zone()) HAdd(context, |
| original_value, |
| new_constant); |
| (*add)->AssumeRepresentation(representation); |