| OLD | NEW |
| 1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 415 FrameElement dropped = elements_.RemoveLast(); | 415 FrameElement dropped = elements_.RemoveLast(); |
| 416 if (dropped.is_register()) { | 416 if (dropped.is_register()) { |
| 417 Unuse(dropped.reg()); | 417 Unuse(dropped.reg()); |
| 418 } | 418 } |
| 419 } | 419 } |
| 420 } | 420 } |
| 421 | 421 |
| 422 | 422 |
| 423 Result VirtualFrame::Pop() { | 423 Result VirtualFrame::Pop() { |
| 424 UNIMPLEMENTED(); | 424 UNIMPLEMENTED(); |
| 425 Result invalid(cgen_); | 425 return Result(); |
| 426 return invalid; | |
| 427 } | 426 } |
| 428 | 427 |
| 429 | 428 |
| 430 void VirtualFrame::EmitPop(Register reg) { | 429 void VirtualFrame::EmitPop(Register reg) { |
| 431 ASSERT(stack_pointer_ == elements_.length() - 1); | 430 ASSERT(stack_pointer_ == elements_.length() - 1); |
| 432 stack_pointer_--; | 431 stack_pointer_--; |
| 433 elements_.RemoveLast(); | 432 elements_.RemoveLast(); |
| 434 __ pop(reg); | 433 __ pop(reg); |
| 435 } | 434 } |
| 436 | 435 |
| 437 | 436 |
| 438 void VirtualFrame::EmitPush(Register reg) { | 437 void VirtualFrame::EmitPush(Register reg) { |
| 439 ASSERT(stack_pointer_ == elements_.length() - 1); | 438 ASSERT(stack_pointer_ == elements_.length() - 1); |
| 440 elements_.Add(FrameElement::MemoryElement()); | 439 elements_.Add(FrameElement::MemoryElement()); |
| 441 stack_pointer_++; | 440 stack_pointer_++; |
| 442 __ push(reg); | 441 __ push(reg); |
| 443 } | 442 } |
| 444 | 443 |
| 445 | 444 |
| 446 #undef __ | 445 #undef __ |
| 447 | 446 |
| 448 } } // namespace v8::internal | 447 } } // namespace v8::internal |
| OLD | NEW |