Index: src/crankshaft/hydrogen.cc |
diff --git a/src/crankshaft/hydrogen.cc b/src/crankshaft/hydrogen.cc |
index bd7412907b68ce61f6974b19c4e1d31b64d3848d..30282387ed360c60750a1fe3d64f6c3b1fd1cb82 100644 |
--- a/src/crankshaft/hydrogen.cc |
+++ b/src/crankshaft/hydrogen.cc |
@@ -12667,20 +12667,6 @@ void HOptimizedGraphBuilder::GenerateStringCharFromCode(CallRuntime* call) { |
} |
-// Fast support for string.charAt(n) and string[n]. |
-void HOptimizedGraphBuilder::GenerateStringCharAt(CallRuntime* call) { |
- DCHECK(call->arguments()->length() == 2); |
- CHECK_ALIVE(VisitForValue(call->arguments()->at(0))); |
- CHECK_ALIVE(VisitForValue(call->arguments()->at(1))); |
- HValue* index = Pop(); |
- HValue* string = Pop(); |
- HInstruction* char_code = BuildStringCharCodeAt(string, index); |
- AddInstruction(char_code); |
- HInstruction* result = NewUncasted<HStringCharFromCode>(char_code); |
- return ast_context()->ReturnInstruction(result, call->id()); |
-} |
- |
- |
// Fast support for SubString. |
void HOptimizedGraphBuilder::GenerateSubString(CallRuntime* call) { |
DCHECK_EQ(3, call->arguments()->length()); |