OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 716 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
727 | 727 |
728 PrepareForBailoutForId(stmt->EntryId(), NO_REGISTERS); | 728 PrepareForBailoutForId(stmt->EntryId(), NO_REGISTERS); |
729 | 729 |
730 ZoneList<CaseClause*>* clauses = stmt->cases(); | 730 ZoneList<CaseClause*>* clauses = stmt->cases(); |
731 CaseClause* default_clause = NULL; // Can occur anywhere in the list. | 731 CaseClause* default_clause = NULL; // Can occur anywhere in the list. |
732 | 732 |
733 Label next_test; // Recycled for each test. | 733 Label next_test; // Recycled for each test. |
734 // Compile all the tests with branches to their bodies. | 734 // Compile all the tests with branches to their bodies. |
735 for (int i = 0; i < clauses->length(); i++) { | 735 for (int i = 0; i < clauses->length(); i++) { |
736 CaseClause* clause = clauses->at(i); | 736 CaseClause* clause = clauses->at(i); |
| 737 clause->body_target()->entry_label()->Unuse(); |
| 738 |
737 // The default is not a test, but remember it as final fall through. | 739 // The default is not a test, but remember it as final fall through. |
738 if (clause->is_default()) { | 740 if (clause->is_default()) { |
739 default_clause = clause; | 741 default_clause = clause; |
740 continue; | 742 continue; |
741 } | 743 } |
742 | 744 |
743 Comment cmnt(masm_, "[ Case comparison"); | 745 Comment cmnt(masm_, "[ Case comparison"); |
744 __ bind(&next_test); | 746 __ bind(&next_test); |
745 next_test.Unuse(); | 747 next_test.Unuse(); |
746 | 748 |
(...skipping 2869 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3616 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value. | 3618 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value. |
3617 __ add(pc, r1, Operand(masm_->CodeObject())); | 3619 __ add(pc, r1, Operand(masm_->CodeObject())); |
3618 } | 3620 } |
3619 | 3621 |
3620 | 3622 |
3621 #undef __ | 3623 #undef __ |
3622 | 3624 |
3623 } } // namespace v8::internal | 3625 } } // namespace v8::internal |
3624 | 3626 |
3625 #endif // V8_TARGET_ARCH_ARM | 3627 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |