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

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

Issue 8437092: Adding assertions to fast elements conversion. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Removing changes to runtime.cc 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 | src/ia32/codegen-ia32.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 508d830bdfdca006e05ca8928d11ad551e1b5ea4..3570ebaac17bb1bd9ce7bb0499a6f552793ee0b1 100644
--- a/src/arm/codegen-arm.cc
+++ b/src/arm/codegen-arm.cc
@@ -180,6 +180,15 @@ void ElementsTransitionGenerator::GenerateSmiOnlyToDouble(
// Hole found, store the-hole NaN.
__ bind(&convert_hole);
+
+ if (FLAG_debug_code) {
+ Label is_really_the_hole;
+ __ CompareRoot(r9, Heap::kTheHoleValueRootIndex);
+ __ b(eq, &is_really_the_hole);
+ __ Abort("object found in smi-only array");
+ __ bind(&is_really_the_hole);
+ }
+
__ Strd(r4, r5, MemOperand(r7, 8, PostIndex));
__ bind(&entry);
« no previous file with comments | « no previous file | src/ia32/codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698