Home | History | Annotate | Download | only in ia32

Lines Matching full:frame

44   // Live non-frame registers are not allowed at unconditional jumps
50 // Backward jump. There is an expected frame to merge to.
52 cgen()->frame()->PrepareMergeTo(entry_frame_);
53 cgen()->frame()->MergeTo(entry_frame_);
57 // Forward jump with a preconfigured entry frame. Assert the
58 // current frame matches the expected one and jump to the block.
59 ASSERT(cgen()->frame()->Equals(entry_frame_));
63 // Forward jump. Remember the current frame and emit a jump to
65 AddReachingFrame(cgen()->frame());
79 // Backward branch. We have an expected frame to merge to on the
82 // Swap the current frame for a copy (we do the swapping to get
83 // the off-frame registers off the fall through) to use for the
85 VirtualFrame* fall_through_frame = cgen()->frame();
91 cgen()->frame()->PrepareMergeTo(entry_frame_);
92 if (cgen()->frame()->Equals(entry_frame_)) {
103 cgen()->frame()->Equals(reaching_frames_[i])) {
116 cgen()->frame()->MergeTo(entry_frame_);
123 // Forward branch with a preconfigured entry frame. Assert the
124 // current frame matches the expected one and branch to the block.
125 ASSERT(cgen()->frame()->Equals(entry_frame_));
133 // Forward branch. A copy of the current frame is remembered and
138 AddReachingFrame(new VirtualFrame(cgen()->frame()));
147 // fully spill the frame before making the call. The expected frame
149 // frame plus an in-memory return address. The "fall-through" frame
150 // at the return site is the spilled current frame.
153 // There are no non-frame references across the call.
157 cgen()->frame()->SpillAll();
158 VirtualFrame* target_frame = new VirtualFrame(cgen()->frame());
160 // We do not expect a call with a preconfigured entry frame.
171 // Live non-frame registers are not allowed at the start of a basic
176 // frame to use.
184 // Copy the entry frame so the original can be used for a
188 // Take ownership of the entry frame.
201 // virtual frame before the bind. Afterward, it should not.
202 VirtualFrame* frame = cgen()->frame();
203 int difference = frame->stack_pointer_ - (frame->element_count() - 1);
205 frame->stack_pointer_ -= difference;
212 // frame and use it as the entry frame.
213 cgen()->frame()->MakeMergable();
214 entry_frame_ = new VirtualFrame(cgen()->frame());
224 // possible backward jumps. Pick up the only reaching frame, take
226 VirtualFrame* frame = reaching_frames_[0];
228 cgen()->SetFrame(frame, &empty);
233 // virtual frame before the bind. Afterward, it should not.
234 int difference = frame->stack_pointer_ - (frame->element_count() - 1);
236 frame->stack_pointer_ -= difference;
244 // If there is a current frame, record it as the fall-through. It
249 AddReachingFrame(cgen()->frame()); // Return value ignored.
254 // Compute the frame to use for entry to the block.
257 // Some moves required to merge to an expected frame require purely
258 // frame state changes, and do not require any code generation.
269 // to the entry frame.
273 // the fall-through frame first. Set frames that will be
277 VirtualFrame* frame = reaching_frames_[i];
279 if (frame != NULL) {
280 // Does the frame (probably) need merge code?
281 if (!frame->Equals(entry_frame_)) {
282 // We could have a valid frame as the fall through to the
290 // Pick up the frame for this block. Assume ownership if
294 cgen()->SetFrame(new VirtualFrame(frame), &empty);
296 cgen()->SetFrame(frame, &empty);
305 if (other != NULL && other->Equals(cgen()->frame())) {
306 // Set the reaching frame element to null to avoid
314 cgen()->frame()->MergeTo(entry_frame_);
316 // If this is the fall through frame, and it didn't need
317 // merge code, we need to pick up the frame so we can jump
320 cgen()->SetFrame(frame, &empty);
326 // The code generator may not have a current frame if there was no
328 // In that case, clone the entry frame as the current frame.
348 // There were no forward jumps. There must be a current frame and
354 // Use a copy of the reaching frame so the original can be saved
359 cgen()->frame()->MergeTo(entry_frame_);
367 // Drop leftover statement state from the frame before merging, without
370 int count = cgen()->frame()->height() - expected_height_;
371 cgen()->frame()->ForgetElements(count);
377 // Drop leftover statement state from the frame before merging, without
380 int count = cgen()->frame()->height() - expected_height_;
381 cgen()->frame()->ForgetElements(count);
382 cgen()->frame()->Push(arg);
396 // Drop leftover statement state from the frame before merging, even on
398 // on the frame.
400 int count = cgen()->frame()->height() - expected_height_;
401 cgen()->frame()->ForgetElements(count);
416 // Drop leftover statement state from the frame before merging, even on
418 // on the frame.
420 int count = cgen()->frame()->height() - expected_height_;
421 cgen()->frame()->ForgetElements(count);
422 cgen()->frame()->Push(arg);
425 *arg = cgen()->frame()->Pop();