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

Unified Diff: src/arm/macro-assembler-arm.cc

Issue 8511052: ARM: Check that address given to __ RecordWrite is correct. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 1 month 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/macro-assembler-arm.cc
===================================================================
--- src/arm/macro-assembler-arm.cc (revision 9962)
+++ src/arm/macro-assembler-arm.cc (working copy)
@@ -483,6 +483,15 @@
// registers are cp.
ASSERT(!address.is(cp) && !value.is(cp));
+ if (FLAG_debug_code) {
Kevin Millikin (Chromium) 2011/11/11 11:28:37 We don't use FLAG_debug_code in the macro assemble
+ Label ok;
+ ldr(ip, MemOperand(address));
+ cmp(ip, value);
+ b(eq, &ok);
Kevin Millikin (Chromium) 2011/11/11 11:32:23 Also, while I think of it, is there a reason not t
+ stop("Wrong address or value passed to RecordWrite");
+ bind(&ok);
+ }
+
Label done;
if (smi_check == INLINE_SMI_CHECK) {
« 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