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

Unified Diff: src/compiler/frame.h

Issue 1369303002: Fix Frame::AlignSavedCalleeRegisterSlots (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/frame.h
diff --git a/src/compiler/frame.h b/src/compiler/frame.h
index aa823b6ba8ad0f885c68ed6dfe91f460a48e11c2..0b066783c362d0da0628aaf00b99bbfad2da715b 100644
--- a/src/compiler/frame.h
+++ b/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) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698