diff options
Diffstat (limited to 'deps/v8/src/compiler/frame.h')
-rw-r--r-- | deps/v8/src/compiler/frame.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/deps/v8/src/compiler/frame.h b/deps/v8/src/compiler/frame.h index aa823b6ba8..0b066783c3 100644 --- a/deps/v8/src/compiler/frame.h +++ b/deps/v8/src/compiler/frame.h @@ -110,9 +110,9 @@ class Frame : public ZoneObject { int AlignSavedCalleeRegisterSlots() { DCHECK_EQ(0, spilled_callee_register_slot_count_); - int frame_slot_count_before = frame_slot_count_; - frame_slot_count_ = RoundUp(frame_slot_count_, 2); - return frame_slot_count_before - frame_slot_count_; + int delta = frame_slot_count_ & 1; + frame_slot_count_ += delta; + return delta; } void AllocateSavedCalleeRegisterSlots(int count) { |