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

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

Issue 18616: Remove spilled frame from some function entry code.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/toiger/
Patch Set: '' Created 11 years, 11 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 | 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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 286
287 // Store the top value on the virtual frame into a local frame slot. The 287 // Store the top value on the virtual frame into a local frame slot. The
288 // value is left in place on top of the frame. 288 // value is left in place on top of the frame.
289 void StoreToLocalAt(int index) { 289 void StoreToLocalAt(int index) {
290 StoreToFrameSlotAt(local0_index() + index); 290 StoreToFrameSlotAt(local0_index() + index);
291 } 291 }
292 292
293 // The function frame slot. 293 // The function frame slot.
294 Operand Function() const { return Operand(ebp, kFunctionOffset); } 294 Operand Function() const { return Operand(ebp, kFunctionOffset); }
295 295
296 // Push the address of the receiver slot on the frame.
297 void PushReceiverSlotAddress();
298
299 // Push the function on top of the frame.
300 void PushFunction() { LoadFrameSlotAt(function_index()); }
301
296 // Lazily save the value of the esi register to the context frame slot. 302 // Lazily save the value of the esi register to the context frame slot.
297 void SaveContextRegister(); 303 void SaveContextRegister();
298 304
299 // Eagerly restore the esi register from the value of the frame context 305 // Eagerly restore the esi register from the value of the frame context
300 // slot. 306 // slot.
301 void RestoreContextRegister(); 307 void RestoreContextRegister();
302 308
303 // A parameter as an assembly operand. 309 // A parameter as an assembly operand.
304 Operand ParameterAt(int index) const { 310 Operand ParameterAt(int index) const {
305 ASSERT(-1 <= index); // -1 is the receiver. 311 ASSERT(-1 <= index); // -1 is the receiver.
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 385
380 // Push an element on top of the expression stack and emit a corresponding 386 // Push an element on top of the expression stack and emit a corresponding
381 // push instruction. 387 // push instruction.
382 void EmitPush(Register reg); 388 void EmitPush(Register reg);
383 void EmitPush(Operand operand); 389 void EmitPush(Operand operand);
384 void EmitPush(Immediate immediate); 390 void EmitPush(Immediate immediate);
385 391
386 // Push an element on the virtual frame. 392 // Push an element on the virtual frame.
387 void Push(Register reg); 393 void Push(Register reg);
388 void Push(Handle<Object> value); 394 void Push(Handle<Object> value);
395 void Push(Smi* value) { Push(Handle<Object>(value)); }
389 396
390 // Pushing a result invalidates it (its contents become owned by the 397 // Pushing a result invalidates it (its contents become owned by the
391 // frame). 398 // frame).
392 void Push(Result* result); 399 void Push(Result* result);
393 400
394 // Nip removes zero or more elements from immediately below the top 401 // Nip removes zero or more elements from immediately below the top
395 // of the frame, leaving the previous top-of-frame value on top of 402 // of the frame, leaving the previous top-of-frame value on top of
396 // the frame. Nip(k) is equivalent to x = Pop(), Drop(k), Push(x). 403 // the frame. Nip(k) is equivalent to x = Pop(), Drop(k), Push(x).
397 void Nip(int num_dropped); 404 void Nip(int num_dropped);
398 405
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 // Called after all register-to-memory and register-to-register 535 // Called after all register-to-memory and register-to-register
529 // moves have been made. After this function returns, the frames 536 // moves have been made. After this function returns, the frames
530 // should be equal. 537 // should be equal.
531 void MergeMoveMemoryToRegisters(VirtualFrame* expected); 538 void MergeMoveMemoryToRegisters(VirtualFrame* expected);
532 }; 539 };
533 540
534 541
535 } } // namespace v8::internal 542 } } // namespace v8::internal
536 543
537 #endif // V8_VIRTUAL_FRAME_IA32_H_ 544 #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