OLD | NEW |
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 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
428 // Used in the implementation of MergeTo(). | 428 // Used in the implementation of MergeTo(). |
429 void MergeMoveRegistersToRegisters(VirtualFrame* expected); | 429 void MergeMoveRegistersToRegisters(VirtualFrame* expected); |
430 | 430 |
431 // Make the memory-to-register and constant-to-register moves | 431 // Make the memory-to-register and constant-to-register moves |
432 // needed to make this frame equal the expected frame. | 432 // needed to make this frame equal the expected frame. |
433 // Called after all register-to-memory and register-to-register | 433 // Called after all register-to-memory and register-to-register |
434 // moves have been made. After this function returns, the frames | 434 // moves have been made. After this function returns, the frames |
435 // should be equal. | 435 // should be equal. |
436 void MergeMoveMemoryToRegisters(VirtualFrame* expected); | 436 void MergeMoveMemoryToRegisters(VirtualFrame* expected); |
437 | 437 |
438 // Helper function to implement the copy-on-write semantics of an | 438 // Invalidates a frame slot (puts an invalid frame element in it). |
439 // element's copies just before writing to the element. The copies | 439 // Copies on the frame are correctly handled, and if this slot was |
440 // are updated, but the element is not changed. A copy of the new | 440 // the backing store of copies, the index of the new backing store |
441 // backing store of all the copies is returned if there were any | 441 // is returned. Otherwise, returns kIllegalIndex. |
442 // copies and in invalid frame element is returned if there were no | 442 // Register counts are correctly updated. |
443 // copies. | 443 int InvalidateFrameSlotAt(int index); |
444 FrameElement AdjustCopies(int index); | |
445 | 444 |
446 // Call a code stub that has already been prepared for calling (via | 445 // Call a code stub that has already been prepared for calling (via |
447 // PrepareForCall). | 446 // PrepareForCall). |
448 Result RawCallStub(CodeStub* stub, int frame_arg_count); | 447 Result RawCallStub(CodeStub* stub, int frame_arg_count); |
449 | 448 |
450 // Calls a code object which has already been prepared for calling | 449 // Calls a code object which has already been prepared for calling |
451 // (via PrepareForCall). | 450 // (via PrepareForCall). |
452 Result RawCallCodeObject(Handle<Code> code, RelocInfo::Mode rmode); | 451 Result RawCallCodeObject(Handle<Code> code, RelocInfo::Mode rmode); |
453 | 452 |
454 bool Equals(VirtualFrame* other); | 453 bool Equals(VirtualFrame* other); |
455 | 454 |
456 friend class JumpTarget; | 455 friend class JumpTarget; |
457 }; | 456 }; |
458 | 457 |
459 } } // namespace v8::internal | 458 } } // namespace v8::internal |
460 | 459 |
461 #endif // V8_VIRTUAL_FRAME_IA32_H_ | 460 #endif // V8_VIRTUAL_FRAME_IA32_H_ |
OLD | NEW |