| 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 558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 569 } | 569 } |
| 570 } | 570 } |
| 571 element_count_ += 2; | 571 element_count_ += 2; |
| 572 } | 572 } |
| 573 | 573 |
| 574 | 574 |
| 575 Register VirtualFrame::PopToRegister(Register but_not_to_this_one) { | 575 Register VirtualFrame::PopToRegister(Register but_not_to_this_one) { |
| 576 ASSERT(but_not_to_this_one.is(r0) || | 576 ASSERT(but_not_to_this_one.is(r0) || |
| 577 but_not_to_this_one.is(r1) || | 577 but_not_to_this_one.is(r1) || |
| 578 but_not_to_this_one.is(no_reg)); | 578 but_not_to_this_one.is(no_reg)); |
| 579 AssertIsNotSpilled(); | |
| 580 element_count_--; | 579 element_count_--; |
| 581 if (top_of_stack_state_ == NO_TOS_REGISTERS) { | 580 if (top_of_stack_state_ == NO_TOS_REGISTERS) { |
| 582 if (but_not_to_this_one.is(r0)) { | 581 if (but_not_to_this_one.is(r0)) { |
| 583 __ pop(r1); | 582 __ pop(r1); |
| 584 return r1; | 583 return r1; |
| 585 } else { | 584 } else { |
| 586 __ pop(r0); | 585 __ pop(r0); |
| 587 return r0; | 586 return r0; |
| 588 } | 587 } |
| 589 } else { | 588 } else { |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 703 default: | 702 default: |
| 704 UNREACHABLE(); | 703 UNREACHABLE(); |
| 705 break; | 704 break; |
| 706 } | 705 } |
| 707 ASSERT(register_allocation_map_ == 0); // Not yet implemented. | 706 ASSERT(register_allocation_map_ == 0); // Not yet implemented. |
| 708 } | 707 } |
| 709 | 708 |
| 710 #undef __ | 709 #undef __ |
| 711 | 710 |
| 712 } } // namespace v8::internal | 711 } } // namespace v8::internal |
| OLD | NEW |