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

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

Issue 8414018: Version 3.7.3 (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 9 years, 2 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 | « ChangeLog ('k') | src/ia32/full-codegen-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
===================================================================
--- src/ia32/codegen-ia32.cc (revision 9809)
+++ src/ia32/codegen-ia32.cc (working copy)
@@ -355,9 +355,7 @@
// Convert and copy elements
// esi: source FixedArray
- // edi: number of elements to convert/copy
__ bind(&loop);
- __ sub(edi, Immediate(Smi::FromInt(1)));
__ mov(ebx, FieldOperand(esi, edi, times_2, FixedArray::kHeaderSize));
// ebx: current element from source
// edi: index of current element
@@ -390,8 +388,8 @@
}
__ bind(&entry);
- __ test(edi, edi);
- __ j(not_zero, &loop);
+ __ sub(edi, Immediate(Smi::FromInt(1)));
+ __ j(not_sign, &loop);
__ pop(ebx);
__ pop(eax);
@@ -454,7 +452,6 @@
// edi: source FixedDoubleArray
// eax: destination FixedArray
__ bind(&loop);
- __ sub(ebx, Immediate(Smi::FromInt(1)));
// ebx: index of current element (smi-tagged)
uint32_t offset = FixedDoubleArray::kHeaderSize + sizeof(kHoleNanLower32);
__ cmp(FieldOperand(edi, ebx, times_4, offset), Immediate(kHoleNanUpper32));
@@ -490,8 +487,8 @@
masm->isolate()->factory()->the_hole_value());
__ bind(&entry);
- __ test(ebx, ebx);
- __ j(not_zero, &loop);
+ __ sub(ebx, Immediate(Smi::FromInt(1)));
+ __ j(not_sign, &loop);
__ pop(ebx);
__ pop(edx);
« no previous file with comments | « ChangeLog ('k') | src/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698