Index: src/x87/deoptimizer-x87.cc |
diff --git a/src/x87/deoptimizer-x87.cc b/src/x87/deoptimizer-x87.cc |
index 3b90276a933618d553b60234cab766ac5a3e616a..e0b51baf996dade4b88b3f0ac81f10c96fcb953a 100644 |
--- a/src/x87/deoptimizer-x87.cc |
+++ b/src/x87/deoptimizer-x87.cc |
@@ -187,16 +187,8 @@ void Deoptimizer::CopyDoubleRegisters(FrameDescription* output_frame) { |
} |
bool Deoptimizer::HasAlignmentPadding(SharedFunctionInfo* shared) { |
- int parameter_count = shared->internal_formal_parameter_count() + 1; |
- unsigned input_frame_size = input_->GetFrameSize(); |
- unsigned alignment_state_offset = |
- input_frame_size - parameter_count * kPointerSize - |
- StandardFrameConstants::kFixedFrameSize - |
- kPointerSize; |
- DCHECK(JavaScriptFrameConstants::kDynamicAlignmentStateOffset == |
- JavaScriptFrameConstants::kLocal0Offset); |
- int32_t alignment_state = input_->GetFrameSlot(alignment_state_offset); |
- return (alignment_state == kAlignmentPaddingPushed); |
+ // There is no dynamic alignment padding on x87 in the input frame. |
+ return false; |
} |
@@ -337,18 +329,6 @@ void Deoptimizer::TableEntryGenerator::Generate() { |
__ pop(eax); |
__ pop(edi); |
- // If frame was dynamically aligned, pop padding. |
- Label no_padding; |
- __ cmp(Operand(eax, Deoptimizer::has_alignment_padding_offset()), |
- Immediate(0)); |
- __ j(equal, &no_padding); |
- __ pop(ecx); |
- if (FLAG_debug_code) { |
- __ cmp(ecx, Immediate(kAlignmentZapValue)); |
- __ Assert(equal, kAlignmentMarkerExpected); |
- } |
- __ bind(&no_padding); |
- |
// Replace the current frame with the output frames. |
Label outer_push_loop, inner_push_loop, |
outer_loop_header, inner_loop_header; |