Index: src/crankshaft/hydrogen.cc |
diff --git a/src/crankshaft/hydrogen.cc b/src/crankshaft/hydrogen.cc |
index 62d730d10a51d4b145f8c0a4a4fb0ac6dabe9168..d8bbd5736d96670cf94fe7283da9dd1ac10e049b 100644 |
--- a/src/crankshaft/hydrogen.cc |
+++ b/src/crankshaft/hydrogen.cc |
@@ -8351,7 +8351,7 @@ bool HOptimizedGraphBuilder::TryInlineBuiltinMethodCall( |
} |
case kStringCharCodeAt: |
case kStringCharAt: |
- if (argument_count == 2) { |
+ if (argument_count == 2 && isolate()->IsStringBoundsCheckIntact()) { |
HValue* index = Pop(); |
HValue* string = Pop(); |
Drop(1); // Function. |