| Index: src/code-stubs-hydrogen.cc
|
| diff --git a/src/code-stubs-hydrogen.cc b/src/code-stubs-hydrogen.cc
|
| index 320799db4a79128173b5f1c657a623372e4d134b..1d451cc9a5eb82f210ff56abd5bdb33155de9b44 100644
|
| --- a/src/code-stubs-hydrogen.cc
|
| +++ b/src/code-stubs-hydrogen.cc
|
| @@ -763,18 +763,6 @@ HValue* CodeStubGraphBuilder<FastArrayPushStub>::BuildCodeStub() {
|
| check.End();
|
| }
|
|
|
| - // Disallow pushing onto observed objects.
|
| - {
|
| - HValue* bit_field =
|
| - Add<HLoadNamedField>(map, nullptr, HObjectAccess::ForMapBitField());
|
| - HValue* mask = Add<HConstant>(1 << Map::kIsObserved);
|
| - HValue* bit = AddUncasted<HBitwise>(Token::BIT_AND, bit_field, mask);
|
| - IfBuilder check(this);
|
| - check.If<HCompareNumericAndBranch>(bit, mask, Token::EQ);
|
| - check.ThenDeopt(Deoptimizer::kFastArrayPushFailed);
|
| - check.End();
|
| - }
|
| -
|
| // Disallow pushing onto arrays in dictionary named property mode. We need to
|
| // figure out whether the length property is still writable.
|
| {
|
|
|