Index: src/codegen.cc |
=================================================================== |
--- src/codegen.cc (revision 4259) |
+++ src/codegen.cc (working copy) |
@@ -66,38 +66,6 @@ |
CodeGenerator* CodeGeneratorScope::top_ = NULL; |
-DeferredCode::DeferredCode() |
- : masm_(CodeGeneratorScope::Current()->masm()), |
- statement_position_(masm_->current_statement_position()), |
- position_(masm_->current_position()) { |
- ASSERT(statement_position_ != RelocInfo::kNoPosition); |
- ASSERT(position_ != RelocInfo::kNoPosition); |
- |
- CodeGeneratorScope::Current()->AddDeferred(this); |
-#ifdef DEBUG |
- comment_ = ""; |
-#endif |
- |
- // Copy the register locations from the code generator's frame. |
- // These are the registers that will be spilled on entry to the |
- // deferred code and restored on exit. |
- VirtualFrame* frame = CodeGeneratorScope::Current()->frame(); |
- int sp_offset = frame->fp_relative(frame->stack_pointer_); |
- for (int i = 0; i < RegisterAllocator::kNumRegisters; i++) { |
- int loc = frame->register_location(i); |
- if (loc == VirtualFrame::kIllegalIndex) { |
- registers_[i] = kIgnore; |
- } else if (frame->elements_[loc].is_synced()) { |
- // Needs to be restored on exit but not saved on entry. |
- registers_[i] = frame->fp_relative(loc) | kSyncedFlag; |
- } else { |
- int offset = frame->fp_relative(loc); |
- registers_[i] = (offset < sp_offset) ? kPush : offset; |
- } |
- } |
-} |
- |
- |
void CodeGenerator::ProcessDeferred() { |
while (!deferred_.is_empty()) { |
DeferredCode* code = deferred_.RemoveLast(); |