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

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

Issue 27133: - Pass the knowledge whether the old GC is compacting to the GC prologue and ... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 10 months 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
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");
+ }
}

Powered by Google App Engine
This is Rietveld 408576698