Index: src/code-stubs-hydrogen.cc |
diff --git a/src/code-stubs-hydrogen.cc b/src/code-stubs-hydrogen.cc |
index 43752cbf84160c4e40e36e37a7a970990e82fe1e..b4c0e34d016179d14eac3a2540b6df8006bfefc2 100644 |
--- a/src/code-stubs-hydrogen.cc |
+++ b/src/code-stubs-hydrogen.cc |
@@ -2087,9 +2087,11 @@ HValue* CodeStubGraphBuilder<KeyedLoadGenericStub>::BuildCodeStub() { |
} |
kind_if.Else(); |
- // The SLOPPY_ARGUMENTS_ELEMENTS check generates a "kind_if.Then" |
+ // The SLOW_SLOPPY_ARGUMENTS_ELEMENTS check generates a "kind_if.Then" |
+ STATIC_ASSERT(FAST_SLOPPY_ARGUMENTS_ELEMENTS < |
+ SLOW_SLOPPY_ARGUMENTS_ELEMENTS); |
BuildElementsKindLimitCheck(&kind_if, bit_field2, |
- SLOPPY_ARGUMENTS_ELEMENTS); |
+ SLOW_SLOPPY_ARGUMENTS_ELEMENTS); |
// Non-strict elements are not handled. |
Add<HDeoptimize>(Deoptimizer::kNonStrictElementsInKeyedLoadGenericStub, |
Deoptimizer::EAGER); |