Index: src/ia32/virtual-frame-ia32.h |
=================================================================== |
--- src/ia32/virtual-frame-ia32.h (revision 3561) |
+++ src/ia32/virtual-frame-ia32.h (working copy) |
@@ -395,6 +395,8 @@ |
// Pushing a result invalidates it (its contents become owned by the |
// frame). |
void Push(Result* result) { |
+ // This assert will trigger if you try to push the same value twice. |
+ ASSERT(result->is_valid()); |
if (result->is_register()) { |
Push(result->reg()); |
} else { |