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

Side by Side Diff: v8/src/virtual-frame-ia32.cc

Issue 11229: Experimental: change the name of the VirtualFrame function Push to... (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 | « v8/src/virtual-frame-ia32.h ('k') | no next file » | 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 142
143 143
144 void VirtualFrame::PushTryHandler(HandlerType type) { 144 void VirtualFrame::PushTryHandler(HandlerType type) {
145 // Grow the expression stack by handler size less two (the return address 145 // Grow the expression stack by handler size less two (the return address
146 // is already pushed by a call instruction, and PushTryHandler from the 146 // is already pushed by a call instruction, and PushTryHandler from the
147 // macro assembler will leave the top of stack in the eax register to be 147 // macro assembler will leave the top of stack in the eax register to be
148 // pushed separately). 148 // pushed separately).
149 Adjust(kHandlerSize - 2); 149 Adjust(kHandlerSize - 2);
150 __ PushTryHandler(IN_JAVASCRIPT, type); 150 __ PushTryHandler(IN_JAVASCRIPT, type);
151 // TODO(1222589): remove the reliance of PushTryHandler on a cached TOS 151 // TODO(1222589): remove the reliance of PushTryHandler on a cached TOS
152 Push(eax); 152 EmitPush(eax);
153 } 153 }
154 154
155 155
156 void VirtualFrame::CallStub(CodeStub* stub, int frame_arg_count) { 156 void VirtualFrame::CallStub(CodeStub* stub, int frame_arg_count) {
157 ASSERT(height() >= frame_arg_count); 157 ASSERT(height() >= frame_arg_count);
158 Forget(frame_arg_count); 158 Forget(frame_arg_count);
159 __ CallStub(stub); 159 __ CallStub(stub);
160 } 160 }
161 161
162 162
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 __ pop(reg); 209 __ pop(reg);
210 } 210 }
211 211
212 212
213 void VirtualFrame::Pop(Operand operand) { 213 void VirtualFrame::Pop(Operand operand) {
214 Forget(1); 214 Forget(1);
215 __ pop(operand); 215 __ pop(operand);
216 } 216 }
217 217
218 218
219 void VirtualFrame::Push(Register reg) { 219 void VirtualFrame::EmitPush(Register reg) {
220 Adjust(1); 220 Adjust(1);
221 __ push(reg); 221 __ push(reg);
222 } 222 }
223 223
224 224
225 void VirtualFrame::Push(Operand operand) { 225 void VirtualFrame::EmitPush(Operand operand) {
226 Adjust(1); 226 Adjust(1);
227 __ push(operand); 227 __ push(operand);
228 } 228 }
229 229
230 230
231 void VirtualFrame::Push(Immediate immediate) { 231 void VirtualFrame::EmitPush(Immediate immediate) {
232 Adjust(1); 232 Adjust(1);
233 __ push(immediate); 233 __ push(immediate);
234 } 234 }
235 235
236 #undef __ 236 #undef __
237 237
238 } } // namespace v8::internal 238 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « v8/src/virtual-frame-ia32.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698