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

Unified Diff: src/compiler/frame.h

Issue 2867403002: Revert of [turbofan] Add alignment parameter to StackSlot operator (Closed)
Patch Set: Created 3 years, 7 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 | « src/compiler/arm64/instruction-selector-arm64.cc ('k') | src/compiler/ia32/instruction-selector-ia32.cc » ('j') | 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 8a6c18951a5b87ed5fc0794d146341e34e0bc72c..a4d6829cfa843d8c06254cce61f6b5f0194a0fbc 100644
--- a/src/compiler/frame.h
+++ b/src/compiler/frame.h
@@ -111,18 +111,9 @@
frame_slot_count_ += count;
}
- int AllocateSpillSlot(int width, int alignment = 0) {
+ int AllocateSpillSlot(int width) {
int frame_slot_count_before = frame_slot_count_;
- if (alignment <= kPointerSize) {
- AllocateAlignedFrameSlots(width);
- } else {
- // We need to allocate more place for spill slot
- // in case we need an aligned spill slot to be
- // able to properly align start of spill slot
- // and still have enough place to hold all the
- // data
- AllocateAlignedFrameSlots(width + alignment - kPointerSize);
- }
+ AllocateAlignedFrameSlots(width);
spill_slot_count_ += frame_slot_count_ - frame_slot_count_before;
return frame_slot_count_ - 1;
}
« no previous file with comments | « src/compiler/arm64/instruction-selector-arm64.cc ('k') | src/compiler/ia32/instruction-selector-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698