Index: src/code-stubs-hydrogen.cc |
diff --git a/src/code-stubs-hydrogen.cc b/src/code-stubs-hydrogen.cc |
index f837045eed037a9235d5cdac317dd84dde883421..f9c7167017de2f3c1fefd9985c13f29d883b6944 100644 |
--- a/src/code-stubs-hydrogen.cc |
+++ b/src/code-stubs-hydrogen.cc |
@@ -177,7 +177,8 @@ void CodeStubGraphBuilder<TransitionElementsKindStub>::BuildCodeStub() { |
HConstant* max_alloc_size = |
new(zone) HConstant(kMinFreeNewSpaceAfterGC, Representation::Integer32()); |
AddInstruction(max_alloc_size); |
- AddInstruction(new(zone) HBoundsCheck(array_length, max_alloc_size)); |
+ HBoundsCheck::AddToGraph(this, array_length, max_alloc_size, |
+ DONT_ALLOW_SMI_KEY, Representation::Integer32()); |
current_block()->UpdateEnvironment(new(zone) HEnvironment(zone)); |