Commit 6a2169c0 authored by jgruber's avatar jgruber Committed by Commit bot

[stubs] Fix label names in StringCharCodeAt

The label names were reversed - an external string is a short external
string if (instance_type | kShortExternalStringMask) != 0.

R=ishell@chromium.org
BUG=

Review-Url: https://codereview.chromium.org/2380073002
Cr-Commit-Position: refs/heads/master@{#39880}
parent 3c52ac79
......@@ -2336,14 +2336,14 @@ Node* CodeStubAssembler::StringCharCodeAt(Node* string, Node* index) {
Bind(&if_stringisexternal);
{
// Check if the {string} is a short external string.
Label if_stringisshort(this),
if_stringisnotshort(this, Label::kDeferred);
Label if_stringisnotshort(this),
if_stringisshort(this, Label::kDeferred);
Branch(Word32Equal(Word32And(string_instance_type,
Int32Constant(kShortExternalStringMask)),
Int32Constant(0)),
&if_stringisshort, &if_stringisnotshort);
&if_stringisnotshort, &if_stringisshort);
Bind(&if_stringisshort);
Bind(&if_stringisnotshort);
{
// Load the actual resource data from the {string}.
Node* string_resource_data =
......@@ -2373,7 +2373,7 @@ Node* CodeStubAssembler::StringCharCodeAt(Node* string, Node* index) {
}
}
Bind(&if_stringisnotshort);
Bind(&if_stringisshort);
{
// The {string} might be compressed, call the runtime.
var_result.Bind(SmiToWord32(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment