| Index: src/hydrogen-bce.cc
|
| diff --git a/src/hydrogen-bce.cc b/src/hydrogen-bce.cc
|
| index ff0b072ce0e1a9440a49f3b231ddc4337e096ea5..b03590e1151f2c38d485534852d10207e3662729 100644
|
| --- a/src/hydrogen-bce.cc
|
| +++ b/src/hydrogen-bce.cc
|
| @@ -260,12 +260,12 @@ class BoundsCheckBbData: public ZoneObject {
|
| HValue* index_context = IndexContext(*add, check);
|
| if (index_context == NULL) return false;
|
|
|
| - HConstant* new_constant = new(BasicBlock()->zone()) HConstant(
|
| - new_offset, representation);
|
| + Zone* zone = BasicBlock()->zone();
|
| + HConstant* new_constant = HConstant::New(
|
| + zone, index_context, new_offset);
|
| if (*add == NULL) {
|
| new_constant->InsertBefore(check);
|
| - (*add) = HAdd::New(
|
| - BasicBlock()->zone(), index_context, original_value, new_constant);
|
| + (*add) = HAdd::New(zone, index_context, original_value, new_constant);
|
| (*add)->AssumeRepresentation(representation);
|
| (*add)->InsertBefore(check);
|
| } else {
|
|
|