Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Unified Diff: src/arm/codegen-arm.cc

Issue 2627893002: Version 5.7.436.1 (cherry-pick) (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/arm64/code-stubs-arm64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/arm/codegen-arm.cc
diff --git a/src/arm/codegen-arm.cc b/src/arm/codegen-arm.cc
index 2152d6837a09dcef23c172f09baa69716082fdd1..06e92168b6f7c1a2e6966d0e8af408de9ef936a9 100644
--- a/src/arm/codegen-arm.cc
+++ b/src/arm/codegen-arm.cc
@@ -332,12 +332,9 @@ void StringCharLoadGenerator::Generate(MacroAssembler* masm,
__ b(eq, &check_sequential);
// Dispatch on the indirect string shape: slice or cons.
- Label cons_string, thin_string;
- __ and_(result, result, Operand(kStringRepresentationMask));
- __ cmp(result, Operand(kConsStringTag));
+ Label cons_string;
+ __ tst(result, Operand(kSlicedNotConsMask));
__ b(eq, &cons_string);
- __ cmp(result, Operand(kThinStringTag));
- __ b(eq, &thin_string);
// Handle slices.
Label indirect_string_loaded;
@@ -346,11 +343,6 @@ void StringCharLoadGenerator::Generate(MacroAssembler* masm,
__ add(index, index, Operand::SmiUntag(result));
__ jmp(&indirect_string_loaded);
- // Handle thin strings.
- __ bind(&thin_string);
- __ ldr(string, FieldMemOperand(string, ThinString::kActualOffset));
- __ jmp(&indirect_string_loaded);
-
// Handle cons strings.
// Check whether the right hand side is the empty string (i.e. if
// this is really a flat string in a cons string). If that is not
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/arm64/code-stubs-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698