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

Unified Diff: src/arm/code-stubs-arm.cc

Issue 6987009: Fix GC-unsafe corner case in bit-not on ARM (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/arm/code-stubs-arm.cc
===================================================================
--- src/arm/code-stubs-arm.cc (revision 8053)
+++ src/arm/code-stubs-arm.cc (working copy)
@@ -1926,11 +1926,17 @@
__ bind(&slow_allocate_heapnumber);
__ EnterInternalFrame();
- __ push(r1);
- __ CallRuntime(Runtime::kNumberAlloc, 0);
- __ pop(r1);
+ __ push(r0); // Push the heap number, not the untagged int32.
Lasse Reichstein 2011/05/25 08:44:49 Are you sure that AllocateHeapNumber above doesn't
+ __ CallRuntime(Runtime::kNumberAlloc, 0);
+ // Get the heap number into r2, now that the new heap number is in r0.
+ __ pop(r2);
__ LeaveInternalFrame();
+ // Convert the heap number in r2 to an untagged integer in r1.
+ // This can't go slow-case because it's the same number we already
+ // converted once again.
+ __ ConvertToInt32(r2, r1, r3, r4, d0, slow);
Lasse Reichstein 2011/05/25 08:44:49 Don't forget to negate the result. (If this isn't
+
__ bind(&heapnumber_allocated);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698