| Index: src/hydrogen.cc
|
| diff --git a/src/hydrogen.cc b/src/hydrogen.cc
|
| index ccb34f9844f3c2a32a9f6b321b9f8426e1d97f07..e285fc9f5e254c9157efdbf33a97f829f9296cd8 100644
|
| --- a/src/hydrogen.cc
|
| +++ b/src/hydrogen.cc
|
| @@ -8740,7 +8740,6 @@ void HOptimizedGraphBuilder::GenerateDataViewInitialize(
|
| CallRuntime* expr) {
|
| ZoneList<Expression*>* arguments = expr->arguments();
|
|
|
| - NoObservableSideEffectsScope scope(this);
|
| ASSERT(arguments->length()== 4);
|
| CHECK_ALIVE(VisitForValue(arguments->at(0)));
|
| HValue* obj = Pop();
|
| @@ -8754,8 +8753,11 @@ void HOptimizedGraphBuilder::GenerateDataViewInitialize(
|
| CHECK_ALIVE(VisitForValue(arguments->at(3)));
|
| HValue* byte_length = Pop();
|
|
|
| - BuildArrayBufferViewInitialization<JSDataView>(
|
| - obj, buffer, byte_offset, byte_length);
|
| + {
|
| + NoObservableSideEffectsScope scope(this);
|
| + BuildArrayBufferViewInitialization<JSDataView>(
|
| + obj, buffer, byte_offset, byte_length);
|
| + }
|
| }
|
|
|
|
|
| @@ -8876,7 +8878,6 @@ void HOptimizedGraphBuilder::GenerateTypedArrayInitialize(
|
| CallRuntime* expr) {
|
| ZoneList<Expression*>* arguments = expr->arguments();
|
|
|
| - NoObservableSideEffectsScope scope(this);
|
| static const int kObjectArg = 0;
|
| static const int kArrayIdArg = 1;
|
| static const int kBufferArg = 2;
|
| @@ -8931,6 +8932,7 @@ void HOptimizedGraphBuilder::GenerateTypedArrayInitialize(
|
| CHECK_ALIVE(VisitForValue(arguments->at(kByteLengthArg)));
|
| HValue* byte_length = Pop();
|
|
|
| + NoObservableSideEffectsScope scope(this);
|
| IfBuilder byte_offset_smi(this);
|
|
|
| if (!is_zero_byte_offset) {
|
|
|