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

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

Issue 11470: Experimental: eagerly allocate space in the actual frame for spilling... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/toiger/
Patch Set: Created 12 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « src/codegen-ia32.cc ('k') | src/virtual-frame-ia32.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 2008 the V8 project authors. All rights reserved. 1 // Copyright 2008 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 // the expected one. 130 // the expected one.
131 void MergeTo(VirtualFrame* expected); 131 void MergeTo(VirtualFrame* expected);
132 132
133 // Emit code for the physical JS entry and exit frame sequences. After 133 // Emit code for the physical JS entry and exit frame sequences. After
134 // calling Enter, the virtual frame is ready for use; and after calling 134 // calling Enter, the virtual frame is ready for use; and after calling
135 // Exit it should not be used. Note that Enter does not allocate space in 135 // Exit it should not be used. Note that Enter does not allocate space in
136 // the physical frame for storing frame-allocated locals. 136 // the physical frame for storing frame-allocated locals.
137 void Enter(); 137 void Enter();
138 void Exit(); 138 void Exit();
139 139
140 // Allocate and initialize the frame-allocated locals. The number of 140 // Allocate and initialize the frame-allocated locals. The eax register
141 // locals is known from the frame's code generator's state (specifically 141 // us clobbered.
142 // its scope). As a side effect, code may be emitted.
143 void AllocateStackSlots(int count); 142 void AllocateStackSlots(int count);
144 143
145 // The current top of the expression stack as an assembly operand. 144 // The current top of the expression stack as an assembly operand.
146 Operand Top() const { return Operand(esp, 0); } 145 Operand Top() const { return Operand(esp, 0); }
147 146
148 // An element of the expression stack as an assembly operand. 147 // An element of the expression stack as an assembly operand.
149 Operand ElementAt(int index) const { 148 Operand ElementAt(int index) const {
150 return Operand(esp, index * kPointerSize); 149 return Operand(esp, index * kPointerSize);
151 } 150 }
152 151
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 260
262 // Spill the topmost elements of the frame to memory (eg, they are the 261 // Spill the topmost elements of the frame to memory (eg, they are the
263 // arguments to a call) and all registers. 262 // arguments to a call) and all registers.
264 void PrepareForCall(int count); 263 void PrepareForCall(int count);
265 }; 264 };
266 265
267 266
268 } } // namespace v8::internal 267 } } // namespace v8::internal
269 268
270 #endif // V8_VIRTUAL_FRAME_IA32_H_ 269 #endif // V8_VIRTUAL_FRAME_IA32_H_
OLDNEW
« no previous file with comments | « src/codegen-ia32.cc ('k') | src/virtual-frame-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698