Index: src/macro-assembler-ia32.cc |
=================================================================== |
--- src/macro-assembler-ia32.cc (revision 1355) |
+++ src/macro-assembler-ia32.cc (working copy) |
@@ -39,7 +39,8 @@ |
: Assembler(buffer, size), |
unresolved_(0), |
generating_stub_(false), |
- allow_stub_calls_(true) { |
+ allow_stub_calls_(true), |
+ code_object_(Heap::undefined_value()) { |
} |
@@ -317,7 +318,11 @@ |
mov(ebp, Operand(esp)); |
push(esi); |
push(Immediate(Smi::FromInt(type))); |
- push(Immediate(0)); // Push an empty code cache slot. |
+ push(Immediate(CodeObject())); |
+ if (FLAG_debug_code) { |
+ cmp(Operand(esp, 0), Immediate(Factory::undefined_value())); |
+ Check(not_equal, "code object not properly patched"); |
+ } |
} |