Index: src/compiler/js-builtin-reducer.cc |
diff --git a/src/compiler/js-builtin-reducer.cc b/src/compiler/js-builtin-reducer.cc |
index 70b8c400f18710a097e49bdb5578d5b762b3aa45..96a8ae79704006fc06ff9959b362be89d7222727 100644 |
--- a/src/compiler/js-builtin-reducer.cc |
+++ b/src/compiler/js-builtin-reducer.cc |
@@ -1535,16 +1535,10 @@ Reduction JSBuiltinReducer::ReduceStringCharAt(Node* node) { |
Node* branch = graph()->NewNode(common()->Branch(BranchHint::kTrue), |
check, control); |
+ // Return the character from the {receiver} as single character string. |
Node* if_true = graph()->NewNode(common()->IfTrue(), branch); |
- Node* vtrue; |
- { |
- // Load the character from the {receiver}. |
- vtrue = graph()->NewNode(simplified()->StringCharCodeAt(), receiver, |
- index, if_true); |
- |
- // Return it as single character string. |
- vtrue = graph()->NewNode(simplified()->StringFromCharCode(), vtrue); |
- } |
+ Node* vtrue = graph()->NewNode(simplified()->StringCharAt(), receiver, |
+ index, if_true); |
// Return the empty string otherwise. |
Node* if_false = graph()->NewNode(common()->IfFalse(), branch); |