Index: src/ia32/macro-assembler-ia32.cc |
diff --git a/src/ia32/macro-assembler-ia32.cc b/src/ia32/macro-assembler-ia32.cc |
index b08ee92b1bf556a6a4d6d295f2443ab5d6d1ff3e..f6b92692cc56754df88090ee8d126d6faaedcbb2 100644 |
--- a/src/ia32/macro-assembler-ia32.cc |
+++ b/src/ia32/macro-assembler-ia32.cc |
@@ -1248,6 +1248,7 @@ void MacroAssembler::Allocate(int object_size, |
Label* gc_required, |
AllocationFlags flags) { |
ASSERT((flags & (RESULT_CONTAINS_TOP | SIZE_IN_WORDS)) == 0); |
+ ASSERT(object_size < Page::kMaxNonCodeHeapObjectSize); |
Michael Starzinger
2013/07/22 19:27:50
This should actually be less-or-equal (i.e. "<=")
Hannes Payer (out of office)
2013/07/23 20:00:51
Done.
|
if (!FLAG_inline_new) { |
if (emit_debug_code()) { |
// Trash the registers to simulate an allocation failure. |