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 544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
555 switch (top_of_stack_state_) { | 555 switch (top_of_stack_state_) { |
556 case NO_TOS_REGISTERS: | 556 case NO_TOS_REGISTERS: |
557 case R0_TOS: | 557 case R0_TOS: |
558 case R0_R1_TOS: | 558 case R0_R1_TOS: |
559 MergeTOSTo(R0_R1_TOS); | 559 MergeTOSTo(R0_R1_TOS); |
560 return r1; | 560 return r1; |
561 case R1_TOS: | 561 case R1_TOS: |
562 case R1_R0_TOS: | 562 case R1_R0_TOS: |
563 MergeTOSTo(R1_R0_TOS); | 563 MergeTOSTo(R1_R0_TOS); |
564 return r0; | 564 return r0; |
| 565 default: |
| 566 UNREACHABLE(); |
| 567 return no_reg; |
565 } | 568 } |
566 UNREACHABLE(); | |
567 return no_reg; | |
568 } | 569 } |
569 | 570 |
570 | 571 |
571 void VirtualFrame::Dup() { | 572 void VirtualFrame::Dup() { |
572 if (SpilledScope::is_spilled()) { | 573 if (SpilledScope::is_spilled()) { |
573 __ ldr(ip, MemOperand(sp, 0)); | 574 __ ldr(ip, MemOperand(sp, 0)); |
574 __ push(ip); | 575 __ push(ip); |
575 } else { | 576 } else { |
576 switch (top_of_stack_state_) { | 577 switch (top_of_stack_state_) { |
577 case NO_TOS_REGISTERS: | 578 case NO_TOS_REGISTERS: |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
825 break; | 826 break; |
826 } | 827 } |
827 ASSERT(register_allocation_map_ == 0); // Not yet implemented. | 828 ASSERT(register_allocation_map_ == 0); // Not yet implemented. |
828 } | 829 } |
829 | 830 |
830 #undef __ | 831 #undef __ |
831 | 832 |
832 } } // namespace v8::internal | 833 } } // namespace v8::internal |
833 | 834 |
834 #endif // V8_TARGET_ARCH_ARM | 835 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |