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

Unified Diff: src/ia32/codegen-ia32.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/ia32/code-stubs-ia32.cc ('k') | src/ia32/macro-assembler-ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ia32/codegen-ia32.cc
diff --git a/src/ia32/codegen-ia32.cc b/src/ia32/codegen-ia32.cc
index 339aa716f35afa616e5b8544c42eb512706766c6..ccd159e2991658a55b3f3381a954d824f0a238d5 100644
--- a/src/ia32/codegen-ia32.cc
+++ b/src/ia32/codegen-ia32.cc
@@ -501,12 +501,9 @@ void StringCharLoadGenerator::Generate(MacroAssembler* masm,
__ j(zero, &check_sequential, Label::kNear);
// Dispatch on the indirect string shape: slice or cons.
- Label cons_string, thin_string;
- __ and_(result, Immediate(kStringRepresentationMask));
- __ cmp(result, Immediate(kConsStringTag));
- __ j(equal, &cons_string, Label::kNear);
- __ cmp(result, Immediate(kThinStringTag));
- __ j(equal, &thin_string, Label::kNear);
+ Label cons_string;
+ __ test(result, Immediate(kSlicedNotConsMask));
+ __ j(zero, &cons_string, Label::kNear);
// Handle slices.
Label indirect_string_loaded;
@@ -516,11 +513,6 @@ void StringCharLoadGenerator::Generate(MacroAssembler* masm,
__ mov(string, FieldOperand(string, SlicedString::kParentOffset));
__ jmp(&indirect_string_loaded, Label::kNear);
- // Handle thin strings.
- __ bind(&thin_string);
- __ mov(string, FieldOperand(string, ThinString::kActualOffset));
- __ jmp(&indirect_string_loaded, Label::kNear);
-
// 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/ia32/code-stubs-ia32.cc ('k') | src/ia32/macro-assembler-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698