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

Side by Side Diff: src/x64/virtual-frame-x64.h

Issue 2815028: X64: Remove more fpu code. Unroll more local initialization loops. (Closed)
Patch Set: Addressed review comments. Created 10 years, 6 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 unified diff | Download patch
« no previous file with comments | « src/x64/ic-x64.cc ('k') | src/x64/virtual-frame-x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 // the physical frame for storing frame-allocated locals. 193 // the physical frame for storing frame-allocated locals.
194 void Enter(); 194 void Enter();
195 void Exit(); 195 void Exit();
196 196
197 // Prepare for returning from the frame by spilling locals. This 197 // Prepare for returning from the frame by spilling locals. This
198 // avoids generating unnecessary merge code when jumping to the 198 // avoids generating unnecessary merge code when jumping to the
199 // shared return site. Emits code for spills. 199 // shared return site. Emits code for spills.
200 inline void PrepareForReturn(); 200 inline void PrepareForReturn();
201 201
202 // Number of local variables after when we use a loop for allocating. 202 // Number of local variables after when we use a loop for allocating.
203 static const int kLocalVarBound = 7; 203 static const int kLocalVarBound = 14;
204 204
205 // Allocate and initialize the frame-allocated locals. 205 // Allocate and initialize the frame-allocated locals.
206 void AllocateStackSlots(); 206 void AllocateStackSlots();
207 207
208 // An element of the expression stack as an assembly operand. 208 // An element of the expression stack as an assembly operand.
209 Operand ElementAt(int index) const { 209 Operand ElementAt(int index) const {
210 return Operand(rsp, index * kPointerSize); 210 return Operand(rsp, index * kPointerSize);
211 } 211 }
212 212
213 // Random-access store to a frame-top relative frame element. The result 213 // Random-access store to a frame-top relative frame element. The result
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
593 593
594 // Classes that need raw access to the elements_ array. 594 // Classes that need raw access to the elements_ array.
595 friend class FrameRegisterState; 595 friend class FrameRegisterState;
596 friend class JumpTarget; 596 friend class JumpTarget;
597 }; 597 };
598 598
599 599
600 } } // namespace v8::internal 600 } } // namespace v8::internal
601 601
602 #endif // V8_X64_VIRTUAL_FRAME_X64_H_ 602 #endif // V8_X64_VIRTUAL_FRAME_X64_H_
OLDNEW
« no previous file with comments | « src/x64/ic-x64.cc ('k') | src/x64/virtual-frame-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698