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